Comments (7)
Hi @pmpetit,
Have you tried setting "free_space_extra" to zero? Haven't looked into code but sounds like it...
free_space_extra int NOT NULL DEFAULT 50,
CHECK (free_space_extra >= 0 AND free_space_extra < 100),
from pg_squeeze.
i give it a try, thanks
also :
i can see there that there is fn
Schema | squeeze
Name | squeeze_table
Result data type | void
Argument data types | tabchema name, tabname name, clustering_index name, rel_tablespace name, ind_tablespaces name[]
Type | func
Do you think i can use it ?
from pg_squeeze.
if it is ok, i could not use it without setting a day in the cronjob, the table has 2To rows, i can not squeeze it every day...
from pg_squeeze.
Also, as there is an eavy insert load on the server (12), if i understand the process, you will create a logical replication slot. But i often face this msg, if i want to create a replication slot.
postgres@stock(europe)=# select * from pg_create_logical_replication_slot('slot1','pgoutput');
ERROR: cannot create logical replication slot in transaction that has performed writes
postgres@stock(europe)=#
Thanks
from pg_squeeze.
- Yes, you can call the squeeze.squeeze_table() interactively.
- Why are you trying to create the replication slot? pg_squeeze creates it automatically for its purposes and it eventually drops it. Anyway, if you are trying to create a replication slot for any reason, the error message indicates that you do so in BEGIN - END block, don't you?
from pg_squeeze.
i try to create the replication slot manually, because i try to understand what's happening:
i face this message if pg_show_plans is installed:
postgres@pgbench(silver01)=# SELECT * from squeeze.squeeze_table('public','pgbench_accounts','pgbench_accounts_pkey',null,null);
ERROR: cannot create logical replication slot in transaction that has performed writes
postgres@pgbench(silver01)=#
if i remove drop extension "pg_show_plans" AND pg_show_plans from shared_preload_libraries, then it is ok
and i do not execute squeeze.squeeze_table() between BEGIN - END block
from pg_squeeze.
Thanks for the report and for your investigation! Indeed, pg_show_plans seems to be the root cause. I've just created a report for that.
from pg_squeeze.
Related Issues (20)
- 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
- PostgreSQL 16 support HOT 3
- [HELP] use pg_squeeze in pgxl HOT 3
- Regression tests unstable HOT 2
- RE: `pg_squeeze` is known to be compatible with MS Windows HOT 8
- Regression test failed in PG 16 HOT 11
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.