pg_repack | Reorganize tables in PostgreSQL databases with minimal locks | Database library
kandi X-RAY | pg_repack Summary
kandi X-RAY | pg_repack Summary
Reorganize tables in PostgreSQL databases with minimal locks
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pg_repack
pg_repack Key Features
pg_repack Examples and Code Snippets
Community Discussions
Trending Discussions on pg_repack
QUESTION
I've been working on optimizing tables in database. One of our table requires monthly vacuuming because of cleaning up processes.pg_squeeze Table size can get upto 25 GB. As this table is used by production users, we can't afford downtime every month to run VACUUM FULL
.
I found that pg_squeeze and pg_repack can be used for this purpose. But I'm not able to understand the difference between those two. Can someone please explain what is the difference and which will be more suitable for me to use?
Thank you.
...ANSWER
Answered 2022-Feb-11 at 09:22The main difference is that pg_queeze operates entirely inside the database, with no need for an external binary. It also has a background worker that will schedule table rewrites automatically if certain criteria are met.
So you could say that pg_repack is less invasive (for example, installation requires no restart of the database), but pg_squeeze is more feature complete.
Disclaimer: I work for the company who wrote pg_squeeze.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pg_repack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page