postgres‐vacume‐pg_repack‐cloudsql pg_squeeze - ghdrako/doc_snipets GitHub Wiki
- https://cloud.google.com/sql/docs/postgres/extensions#pg_repack
- https://reorg.github.io/pg_repack/
- https://medium.com/miro-engineering/sql-migrations-in-postgresql-part-1-bc38ec1cbe75
- https://github.com/cybertec-postgresql/pg_squeeze
psql -U postgres -d testdb; # connect as cloudsqlsuperuser typical postgres
GRANT testuser TO postgres;
CREATE EXTENSION pg_repack;
$> pg_repack -h <hostname> -d testdb -U csuper1 -k -t t1
REVOKE testuser FROM csuper1;