Temporary table has become problematically persistent - Mailing list pgsql-general

From Ricky Ramirez
Subject Temporary table has become problematically persistent
Date
Msg-id CAFbL3BrRcPAbZXMrMojTCgitz5RZQLTP0D3vU+kOFPyvzPugrA@mail.gmail.com
Whole thread Raw
Responses Re: Temporary table has become problematically persistent  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Temporary table has become problematically persistent  (Jerry Sievers <gsievers19@comcast.net>)
List pgsql-general
Hello,

We have run into a strange situation with our database. A temporary table was created some time ago and that session has since died. However, the temporary table stuck around. It's been around long enough that postgres stopped accepting writes to prevent transaction ID wraparound. Problem is, it's a temporary table and the session that it's associated with is gone, so we cannot vacuum it nor even drop the table. We even restarted postgres and the temporary table was still there!

The table shows up in pg_class as a temporary table with zero tuples. The table replicated over to other hosts. We were able to promote a replica and then single user mode the replica and drop the offending table. I still have the original broken database available for debugging. Can I provide any additional debugging information?

Thanks,

Ricky

pgsql-general by date:

Previous
From: Thomas Munro
Date:
Subject: Re: 12.2: Howto check memory-leak in worker?
Next
From: Clifford Snow
Date:
Subject: Installing Postgis25_11