- Home
- Relational Databases
- PostgreSQL
Category: PostgreSQL
Gabriele Bartolini: Introducing CloudNativePG: A New Open Source Kubernetes Operator for Postgres
Feed: Planet PostgreSQL. Today is the culmination of years of hard work at EDB, and, hopefully, the beginning of a new phase in the multi-decade evolution of Postgres and its community.On April 21, 2022, EDB released CloudNativePG—an open source Kubernetes operator that manages highly available primary/standby cluster architectures for the Postgres database management system. CloudNativePG is distributed under the Apache License 2.0, and is now owned and governed by a newly formed community of contributors to the project, built on solid principles and values inspired by the Cloud Native Computing Foundation (CNCF). Among these are openness, fairness, inclusivity, technical excellence, ... Read More
Frits Hoogland: When are you running too much on linux?
Feed: Planet PostgreSQL. In the old days, things were simpler. Computer systems were running in the server room in the office building, hopefully the server was carefully sized, unix operating systems ran processes, and when a server was overloaded, processes waited in the runqueue. In todays world, this is different. Computer systems are running in the cloud, mostly sizing means you can scale in the cloud, and the linux operating system is running processes and (lots of) threads. Mind the absence of 'runqueue'. Linux does not have an explicit runqueue. Instead, when a process or a thread needs to run, ... Read More
Luca Ferrari: pgenv `switch`
Feed: Planet PostgreSQL. pgenv, a simple but great shell script that helps managing several PostgreSQL instances on your machine, have been improved in the last days. Thanks to the contribution of Nils Dijk @thanodnl on GitHub, there is now a new command named switch that allows you to quickly prepare the whole environment for a different PostgreSQL version without having to start it. The problem, as described in this pull request was that the use command, trying to be smart, starts a PostgreSQL instance once it has been chosen. On the other hand, switch, allows you to pre-select the PostgreSQL ... Read More
Nikhil Mohite: Query Tool vs View/Edit Data
Feed: Planet PostgreSQL. OverviewpgAdmin 4 provides 2 different ways to execute queries on the database: Query tool: You can write and execute custom queries on any table in the connected database. View/Edit data: View/Edit data can be used to view or modify a particular table's data. Query Tool The Query Tool is a powerful, feature-rich environment that allows you to execute arbitrary SQL commands and review the result set. You can access the Query Tool via the Query Tool menu option on the browser tree tools menu or through the context menu of selected nodes of the browser tree control ... Read More
Keith Fiske: The Vectors of Database Encryption
Feed: Planet PostgreSQL. One of the most requested features by Crunchy Data customers using modern enterprise database environments is some form of data encryption. However, nailing down exactly what someone means when they say "We need our data encrypted" is often a challenge due to the actual requirements not being fully clarified or even understood. So, before anyone tries to implement database encryption it is critically important to understand what needs to be encrypted and what benefit is actually gained by the methods that are employed. This blog post is not going to discuss any deep technical implementations of encryption ... Read More
Laurenz Albe: Time zone management in PostgreSQL

Feed: Planet PostgreSQL. © Laurenz Albe 2022Next to character encoding, time zones are among the least-loved topics in computing. In addition, PostgreSQL’s implementation of timestamp with time zone is somewhat surprising. So I thought it might be worth to write up an introduction to time zone management and recommendations for its practical use.Time zones and the SQL standardThe SQL standard has rather limited provisions for specifying time zones: <timestamp string> ::= <quote> <unquoted timestamp string> <quote> <unquoted time string> ::= <time value> [ <time zone interval> ] <time zone interval> ::= <sign> <hours value> <colon> <minutes value> It has the ... Read More
Christopher Winslett: Demystifying Database Performance for Developers
Feed: Planet PostgreSQL. For many developers, databases are basically magic. Like Penn & Teller, this blog post is set to break the illusion. Databases are just like any other code, they have algorithms and processes. These algorithms and processes are meant to improve performance, but can cause limitations if they are not expected.Disclaimer: it is okay to break the rules. Sometimes, you may choose to have slow database interactions, because you know they are rare events. Assuming a well-designed database infrastructure (which is what we launch at Crunchy Data), database performance is reactionary to the queries, reads, and writes sent ... Read More
Michael Banck: Moodle PostgreSQL load balancing with HAProxy and Patroni

Feed: Planet PostgreSQL. Moodle is a popular Open Source online learning platform. Especially since the beginning of the COVID-19 pandemic the importance of Moodle for schools and universities has further increased. In some states in Germany all schools had to switch to Moodle and other platforms like BigBlueButton in the course of a few days. This leads to scalability problems if suddenly several tens of thousands of pupils need to access Moodle.Besides scaling the Moodle application itself, the database needs to be considered as well. One of the database options for Moodle is PostgreSQL. In this blog post, we present ... Read More
Andreas ‘ads’ Scherbaum: Abhijit Menon-Sen
Feed: Planet PostgreSQL. Date: 09.05.2022 Tags: postgresql 2ndquadrant enterprisedb barman ansible Category: Interviews Interview conducted by: Andreas Scherbaum PostgreSQL is the World’s most advanced Open Source Relational Database. The interview series “PostgreSQL Person of the Week” presents the people who make the project what it is today. Read all interviews here. Please tell us about yourself, and where you are from. My name is Abhijit, and my family and I live in a small village in the Himalayas in India, overlooking a peaceful little valley with a small river that we can ... Read More
cary huang: Atomic Commit with 2 Phase Commit in FDW Distributed Setup

Feed: Planet PostgreSQL. 1. Introduction PostgreSQL’s 2 phase commit (2PC) feature allows a database to store the details of a transaction on disk without committing it. This is done by issuing PREPARE TRANSACTION [name] command at the end of a transaction block. When the user is ready to commit, he/she can issue COMMIT PREPARED [name] where [name] should match the [name] in PREPARE TRANSACTION command. Because the transaction details are stored on disk with 2PC, the server is able to commit this transaction at a later time even if it crashes or out of service for some time. In a ... Read More
Recent Comments