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:25] – z0hpvk | postgresqlextensions [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 59: | Line 59: | ||
| RELOAD; | RELOAD; | ||
| </ | </ | ||
| - | ==== PG_STAT_STATEMENTS | + | ==== pg_stat_statements |
| [[https:// | [[https:// | ||
| Line 155: | Line 155: | ||
| <code postgresql> | <code postgresql> | ||
| CREATE EXTENSION pg_repack; | 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.1709306708.txt.gz · Last modified: (external edit)
