From: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Wells Oliver <wells.oliver@gmail.com>
Cc: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Free disk space decreasing after running Vaccum Full
Date: Fri, 28 Jun 2024 16:53:24 +0000
Message-ID: <DB4PR10MB7469FE0143DE676E98748E4F8CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <DB4PR10MB74690C4C853E8DE6E39112118CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
References: <DB4PR10MB7469EDA3FFCD73EE3C93B3E98CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
<CANzqJaB_h73x7rGKNEOCFuo8fno_-UpEeMuPRdxR3OhCFnVeXg@mail.gmail.com>
<CAOC+FBVAiULBGsNbsfyWGEXx5B8fvgBrkUMKb+s=86uBfQVG3g@mail.gmail.com>
<DB4PR10MB7469448FDC9519F990069CDA8CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
<363CFCD0-C71F-45A3-ACB3-07C0A0E3B9D3@elevated-dev.com>
<DB4PR10MB74690C4C853E8DE6E39112118CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
Or I have to find a way to fix that replication. May be you can help me with that as well -
One error is as follows
2024-06-28 18:44:38.296 CEST [10000] STATEMENT: CREATE_REPLICATION_SLOT "pg_23568_sync_22182_7319873232440752272" LOGICAL pgoutput (SNAPSHOT 'use')
2024-06-28 18:44:38.318 CEST [11428] ERROR: duplicate key value violates unique constraint "bgw_job_stat_pkey"
2024-06-28 18:44:38.318 CEST [11428] DETAIL: Key (job_id)=(1) already exists.
The second error is -
2024-06-28 18:44:38.318 CEST [11428] CONTEXT: COPY bgw_job_stat, line 1
2024-06-28 18:44:38.337 CEST [4324] LOG: logical decoding found consistent point at 9D/AE199788
2024-06-28 18:44:38.337 CEST [4324] DETAIL: There are no running transactions.
2024-06-28 18:44:38.337 CEST [4324] STATEMENT: CREATE_REPLICATION_SLOT "pg_23568_sync_22389_7319873232440752272" LOGICAL pgoutput (SNAPSHOT 'use')
2024-06-28 18:44:38.355 CEST [4324] ERROR: syntax error at or near ")" at character 46
2024-06-28 18:44:38.355 CEST [4324] STATEMENT: COPY _timescaledb_cache.cache_inval_bgw_job () TO STDOUT
2024-06-28 18:44:38.355 CEST [10676] ERROR: could not start initial contents copy for table "_timescaledb_cache.cache_inval_bgw_job": ERROR: syntax error at or near ")"
LINE 1: COPY _timescaledb_cache.cache_inval_bgw_job () TO STDOUT
Note I have timescale DB installed in the DB as well.
Some pointers would be helpful.
Sabyasachi Mukherjee
________________________________
From: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>
Sent: 28 June 2024 18:23
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Wells Oliver <wells.oliver@gmail.com>; Ron Johnson <ronljohnsonjr@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Free disk space decreasing after running Vaccum Full
I think Scott has a point. I do have a broken logical replication. And the replication is done on the same physical server. I will try to stop that replication.
________________________________
From: Scott Ribe <scott_ribe@elevated-dev.com>
Sent: 28 June 2024 18:14
To: Sabyasachi Mukherjee <mukherjee.sabyasachi@outlook.com>
Cc: Wells Oliver <wells.oliver@gmail.com>; Ron Johnson <ronljohnsonjr@gmail.com>; Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Free disk space decreasing after running Vaccum Full
Perhaps WAL is accumulating from those table rewrites. Could be your WAL settings, and that the WAL will get reused eventually, which is no problem. Could be you have WAL archiving or replication slots, and archiving or replication is broken, and WAL will accumulate until it fills the disk.
That needs to be looked at. But the question still remains as to why you are running VACUUM FULL?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: mukherjee.sabyasachi@outlook.com, scott_ribe@elevated-dev.com, wells.oliver@gmail.com, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Free disk space decreasing after running Vaccum Full
In-Reply-To: <DB4PR10MB7469FE0143DE676E98748E4F8CD02@DB4PR10MB7469.EURPRD10.PROD.OUTLOOK.COM>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox