Change these: Logging
(An intermittent series on PostgreSQL parameters whose default settings you should change.)
Here’s my preferred logging configuration:
(An intermittent series on PostgreSQL parameters whose default settings you should change.)
Here’s my preferred logging configuration:
(An intermittent series on PostgreSQL parameters whose default settings you should change.)
By default archive_mode is set to off, and thus archive_command is ignored. Even if you are not going to be using WAL archiving, you should change these. You can use settings such as:
archive_mode = on
archive_command = '/bin/true'
(An intermittent series on PostgreSQL parameters whose default settings you should change.)
Introduced in PostgreSQL 9.5, wal_compression is off by default, but you should probably turn it on.
First, what does it do? The documentation helpfully explains:
When this parameter is on, the PostgreSQL server compresses a full page image written to WAL when
full_page_writesis
Ultimately, a PostgreSQL database is just files, and those files have to be stored somewhere. Absent tablespaces, they are all stored in a single directory structure, traditionally called PGDATA. While smaller instllations can just use the defaults associated with the packaging, larger databases are often installed on their own volume with its own mountpoint.
The slides from my talk at Nordic PGDay, Why PostgreSQL is Terrible, are now available.
One of the essentials of any database system is that a transaction is either in progress, committed, or rolled back. But consider what happens if…
1 BEGIN;
2 UPDATE table SET money=money+100000;
3 COMMIT;
4 -- And you get an error that the server has disconnected
We recently were asked by a client to look at a strange replication situation. Replication had simply stopped from a primary to a streaming replication secondary. Everything looked fine:
The slides for “Humans do not have a primary key” as presented at PGConf EU are available here. Three links from the presentation are:
I’ll be presenting “Humans do not have a primary key” at PGOpen SV today. Two links from the presentation are: