Re: Free disk space decreasing after running Vaccum Full

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
Sent: 28 June 2024 18:23
To: Scott Ribe <scott_ribe@xxxxxxxxxxxxxxxx>
Cc: Wells Oliver <wells.oliver@xxxxxxxxx>; Ron Johnson <ronljohnsonjr@xxxxxxxxx>; Pgsql-admin <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxx>
Sent: 28 June 2024 18:14
To: Sabyasachi Mukherjee <mukherjee.sabyasachi@xxxxxxxxxxx>
Cc: Wells Oliver <wells.oliver@xxxxxxxxx>; Ron Johnson <ronljohnsonjr@xxxxxxxxx>; Pgsql-admin <pgsql-admin@xxxxxxxxxxxxxxxxxxxx>
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?

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux