Comments (7)
Is the problem that no one can access the table on which pg_squeeze is trying to acquire an exclusive lock (and that lock cannot be acquired due to the idle transactions)? If this is the case, then it's not specific to pg_squeeze: any DDL command will probably cause the same situation. Please describe your problem more in detail if I misunderstood.
from pg_squeeze.
Squeeze is waiting for the completion of transactions in the status of idle in transaction, as a result of which a huge blocking tree can be formed, I would like squeeze to be able to shoot such transactions, for example, as it does pg_repack -D
from pg_squeeze.
Now in crontab we run: select pg_terminate_backend (pid),(now() - pg_stat_activity.xact_start) as duration,query from pg_stat_activity where pid=(select pid from pg_locks where relation=(select relation from pg_locks where pid=(select pid from pg_stat_activity where backend_type ='squeeze worker') and granted='f') and granted ='t') and (now() - pg_stat_activity.xact_start)> interval '1 minutes'
from pg_squeeze.
SELECT squeeze.stop_worker();
from pg_squeeze.
Squeeze is waiting for the completion of transactions in the status of idle in transaction, as a result of which a huge blocking tree can be formed, I would like squeeze to be able to shoot such transactions, for example, as it does pg_repack -D
You still haven't explained in detail what happens. The contents of pg_locks system table at the time the problem exists might give me a clue.
from pg_squeeze.
pg_locks.log
pg_stat_activity_.log
from pg_squeeze.
I don't see any call of the squeeze.squeeze_table() function in pg_stat_activity. Only this function does the actual work, including locking and waiting for locks. I was curious about the "lock tree" that you mentioned earlier.
from pg_squeeze.
Related Issues (20)
- Replication slot not being consumed during initial table copy HOT 4
- CREATE EXTENSION pg_squeeze ERROR HOT 4
- Facing issues with writes when squeeze task is active for the table HOT 3
- Monitoring squeeze HOT 5
- Feature request: simple pattern matching for schema names HOT 3
- Probleme install pg_squezze in step make HOT 7
- PostgreSQL 14 support HOT 8
- Problem to start the backgroud worker HOT 7
- Scheduling pg_squeeze not working HOT 25
- ERROR: Failed to find target tuple HOT 5
- Question: How to estimate pg_squeeze run overhead properly? HOT 4
- Running squeeze causes continuous lag build up in logical replication architecture HOT 6
- PostgreSQL 15 support HOT 4
- Disk space requirements of pg_squeeze? HOT 2
- pg squeeze will support view and materialized view? HOT 4
- make fails with pg_squeeze.c:2629:3: error: too few arguments to function ‘NewHeapCreateToastTable’ HOT 11
- multiple launch of pg_squeeze HOT 3
- Issue while running make on RHEL 8 HOT 7
- Use squeeze during tpcc benchmark running may cause data inconsistent HOT 5
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_squeeze.