How to change a Postgres parameter
Follow these steps if you need to change a Postgres parameter (a.k.a., GUC, Grand Unified Configuration) for permanent effect.
Follow these steps if you need to change a Postgres parameter (a.k.a., GUC, Grand Unified Configuration) for permanent effect.
If you need to change ownership of all database objects in the current database, use this anonymous DO block (or copy-paste from here):
The rules below are quite simple (but, often due to organizational reasons, not trivial to implement).
Diagnose and speed up slow PostgreSQL stops and restarts caused by long-running transactions, shutdown checkpoints, or lagging archive_command.
Troubleshoot slow PostgreSQL startup and crash recovery: inspect WAL REDO progress, check max_wal_size and checkpoint_timeout, and avoid unsafe restarts.
When working with metadata – data about data – in Postgres, these reference docs are worth using:
Index maintenance is inevitable in a larger project. The sooner the process is established the better for performance.