What is pgAudit? The PostgreSQL Audit Extension (pgAudit) provides detailed session and object audit logging via the standard PostgreSQL logging facility. Basic statement logging can…
View More How to Audit a PostgreSQL DatabaseTag: postgres
Postgres — Live Table Partitioning
the partitioning of 1TB of data on a live system, with zero downtime Summary A few months ago we faced an engineering challenge of having…
View More Postgres — Live Table PartitioningPartitioning Existing Tables in Postgres
So, your database is growing rapidly, as, ideally, is your business. The problem is, its performance is getting worse. You’re starting to wonder whether partitioning…
View More Partitioning Existing Tables in PostgresPostgreSQL “bind variable peeking”
custom vs. generic plans With my Oracle database background, I know how important it is to balance the pros and cons of using bind variables…
View More PostgreSQL “bind variable peeking”Postgresql PREPARE — prepare a statement for execution
Synopsis PREPARE name [ ( data_type [, …] ) ] AS statement Description PREPARE creates a prepared statement. A prepared statement is a server-side object that…
View More Postgresql PREPARE — prepare a statement for executionPartition an existing table on PostgreSQL
Release after release PostgreSQL is better and better on table partitioning, if you do run a version12 or 13 today you must have a look…
View More Partition an existing table on PostgreSQLPartitioning in Postgres, 2022 edition
Partitioned tables aren’t an everyday go to, but are invaluable in some cases, particularly when you have a high volume table that’s expected to keep…
View More Partitioning in Postgres, 2022 editionAdding postgres as SUDOERS in centos
Login as root: :wq!
View More Adding postgres as SUDOERS in centosPostgreSQL Replication Slots
Back in the days when “Replication Slots” were not yet introduced, managing the WAL segments were a challenge. In standard streaming replication, the master has…
View More PostgreSQL Replication SlotsVacuum problems solving
Why VACUUM?Whenever rows in a PostgreSQL table are updated or deleted, dead rows are left behind. VACUUM gets rid of them so that the space…
View More Vacuum problems solving