Comments (1)
I think that the looping in lock_exclusive()
with the use of SET LOCAL statement_timeout ...
was designed primarily for the case where we are underneath the wait_timeout
threshold, i.e. when we don't want to start killing off other transactions just yet, and also don't want to hold a non-granted ACCESS EXCLUSIVE lock which would block up all other incoming queries against the target table.
I suspect we could improve the situation if we moved the lock_query
call to just before the pg_terminate_backend()
or pg_cancel_backend()
calls in the case that we are over wait_timeout
-- that way, after we terminate all conflicting backends, our lock should be granted right away with no further waiting.
from pg_repack.
Related Issues (20)
- Notices in pg_repack1.4.5 logs for AWS Aurora PostgreSQL 12.8 indicate waiting for transactions to finish with specific PIDs unrelated to the table being repacked. HOT 13
- Passwords in .pgpass with spaces cause error Unable to set up worker conn #0: missing "=" HOT 2
- LOCK TABLE can only be used in transaction blocks HOT 2
- Usage without client? HOT 2
- version 1.5.0 pg_repack the pg_repack command returns an ERROR: the request was not executed: ERROR: the tablespace ""XXXX"" does not exist HOT 5
- pg_repack v.1.4.7 won't build HOT 2
- repacking partitioned table indexes failed with: Could not find index/cannot create index on partitioned table concurrently HOT 5
- Error if the table is renamed concurrently during repacking
- Validate switch_threshold parameter is not greater than or equal to APPLY_COUNT
- unable to install pg_repack-1.4.7 on centos and amazon linux HOT 2
- over-ruled default search_path breaks index usage HOT 5
- Uninstall and reinstall for upgrades HOT 16
- Silent data loss due to two vacuum running logically different tables using the same relfilenode. HOT 1
- Can I install pg-repack (make && make install) during database runtime? HOT 1
- repack error HOT 3
- PG17 compatibility HOT 2
- Segmentation fault in Postgres 16 HOT 11
- ACCESS EXCLUSIVE lock blocks queries HOT 2
- [question] safe to use on system tables? HOT 2
- Repack without trigger HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg_repack.