postgresqlextensions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| postgresqlextensions [2024/03/01 15:20] – z0hpvk | postgresqlextensions [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== PostgreSQL Extensions ===== | ===== PostgreSQL Extensions ===== | ||
| - | ==== PG_CRON | + | ==== pg_cron |
| [[https:// | [[https:// | ||
| Line 24: | Line 24: | ||
| SELECT cron.schedule_in_database(' | SELECT cron.schedule_in_database(' | ||
| SELECT cron.unschedule(< | SELECT cron.unschedule(< | ||
| + | |||
| SELECT jobid, jobname, schedule, database, active FROM cron.job; | SELECT jobid, jobname, schedule, database, active FROM cron.job; | ||
| + | |||
| SELECT jobname, | SELECT jobname, | ||
| | | ||
| Line 34: | Line 36: | ||
| </ | </ | ||
| - | ==== PGLOGICAL | + | ==== pglogical |
| [[https:// | [[https:// | ||
| Line 42: | Line 44: | ||
| </ | </ | ||
| - | ==== PGBOUNCER | + | ==== pgbouncer |
| [[https:// | [[https:// | ||
| < | < | ||
| Line 57: | Line 59: | ||
| RELOAD; | RELOAD; | ||
| </ | </ | ||
| - | ==== PG_STAT_STATEMENTS | + | ==== pg_stat_statements |
| [[https:// | [[https:// | ||
| Line 69: | Line 71: | ||
| </ | </ | ||
| - | ==== POSTGIS | + | ==== postgis |
| [[https:// | [[https:// | ||
| < | < | ||
| Line 78: | Line 80: | ||
| </ | </ | ||
| - | ==== POSTGRES_FDW | + | ==== postgres_fdw |
| [[https:// | [[https:// | ||
| - | ==== PG_BUFFERCACHE | + | ==== pg_buffercache |
| [[https:// | [[https:// | ||
| < | < | ||
| Line 104: | Line 106: | ||
| </ | </ | ||
| - | ==== PGBADGER | + | ==== pgbadger |
| [[https:// | [[https:// | ||
| Line 134: | Line 136: | ||
| </ | </ | ||
| [[PGBadgerReports| PGBadger Reports]]\\ | [[PGBadgerReports| PGBadger Reports]]\\ | ||
| + | |||
| + | ==== pg_repack ==== | ||
| + | === AWS Instructions === | ||
| + | https:// | ||
| + | === Download === | ||
| + | For PostgreSQL 14 on AWS, use version 1.4.7. \\ | ||
| + | https:// | ||
| + | === Installation === | ||
| + | https:// | ||
| + | <code bash> | ||
| + | sudo apt install postgresql-server-dev-12 gcc zlib1g-dev | ||
| + | |||
| + | unzip pg_repack-1.4.5.zip | ||
| + | cd pg_repack-1.4.5 | ||
| + | make | ||
| + | sudo make install | ||
| + | </ | ||
| + | <code postgresql> | ||
| + | CREATE EXTENSION pg_repack; | ||
| + | </ | ||
| + | |||
| + | === Usage === | ||
| + | pg_repack will attempt to get an exclusive lock on the table being re-organised. \\ | ||
| + | If it can’t then, by default, it will attempt to terminate any sessions that are blocking it. \\ | ||
| + | |||
| + | Use option '' | ||
| + | |||
| + | <code bash> | ||
| + | cd pg_repack-1.4.5/ | ||
| + | ./pg_repack -k -h localhost -U postgres -D -t football.teams doob | ||
| + | </ | ||
postgresqlextensions.1709306452.txt.gz · Last modified: (external edit)
