pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: - - <thusson@informiciel.com>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Temp table handling after anti-wraparound shutdown (Was: BUG #15840)
Date: Mon, 10 Jun 2019 12:47:42 -0400 (EDT)
Message-ID: <531286628.288219.1560185262575@email.ionos.com> (raw)
In-Reply-To: <20190609213126.uutlkqlrsud3bdfs@alap3.anarazel.de>
References: <15840-06c9565bfd8099f6@postgresql.org>
	<20190607190231.6psb6w3bvlod7lvk@alap3.anarazel.de>
	<20190607145911.Horde.MKizKAnShw4nKEYGDUC2M-T@webmail.iciel.com>
	<20190607201002.cado5goe3rcup43n@alap3.anarazel.de>
	<20190607164027.Horde._egTUMJMTDBA4f31sPYgl_J@webmail.iciel.com>
	<20190607225843.z73jqqyy6hhc6qnp@alap3.anarazel.de>
	<20190607235937.GA1590@paquier.xyz>
	<20190608002632.ptuvc6tbffjhlsgi@alap3.anarazel.de>
	<20190608014540.GC7228@paquier.xyz>
	<20190608040639.Horde.mXgiHVLprn9sAsYXLi6I9up@webmail.iciel.com>
	<20190609213126.uutlkqlrsud3bdfs@alap3.anarazel.de>

<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
</head><body><table style="text-align: center; line-height: 1em; margin: 0.5em auto;" border="0" cellspacing="0" cellpadding="0" class="mce-item-table"><tbody><tr><td style="border-bottom: 1px solid #aaaaaa; padding: 0.4em 1em; border-top: 1px solid #555555;"><table style="text-align: center; line-height: 1em; margin: 0.5em auto;" border="0" cellspacing="0" cellpadding="0" bgcolor="#5c99dc" class="mce-item-table"><tbody><tr><td style="border-bottom: 1px solid #aaaaaa; padding: 0.4em 1em; border-top: 1px solid #555555;"><table style="text-align: center; line-height: 1em; margin: 0.5em auto;" border="0" cellspacing="0" cellpadding="0" class="mce-item-table"><tbody><tr bgcolor="#ffffff"><td style="border-bottom: 1px solid #aaaaaa; padding: 0.4em 1em; border-top: 1px solid #555555;"><table style="text-align: left; line-height: 1em; margin: 0.5em auto;" border="0" cellspacing="0" cellpadding="0" class="mce-item-table"><tbody><tr><td style="text-align: left; border-bottom: 1px solid #555555; padding: 0.4em 1em; border-top: 1px solid #555555;"><div class="bodyclass"><div>&#62; Hm, I&#39;d like to know more about that corruption. Did you report it when</div><div>&#62; it occured?</div><div><br></div><div>Thanks Andres for explanations. I didn&#39;t reported the corruption when it</div><div>occured as it was my fault, not a PG bug, as the main cause was that I was using<span style="background-color: transparent;">&#160;network drive, knowingly it&#39;s unreliable for DB but management didn&#39;t</span></div><div>believe me.</div><div>I had these kind of errors:</div><div>pg_dump emet_istina -F c -n usr_...</div><div>pg_dump: schema with OID 308991 does not exist</div><div>\dt+ pg_temp*.*</div><div>ERROR:&#160; catalog is missing 1 attribute(s) for relid 5733555</div><div>drop schema pg_temp_9;</div><div>ERROR:&#160; cache lookup failed for relation 5733715</div><div>drop schema pg_temp_6;</div><div>ERROR:&#160; cannot drop schema pg_temp_6 because other objects depend on it</div><div>DETAIL:&#160; table pg_temp_6.cur_dde000_105577 depends on schema pg_temp_6</div><div>HINT:&#160; Use DROP ... CASCADE to drop the dependent objects too.</div><div>I had to manualy remove/edit records from pg_class, pg_type, pg_namespace,</div><div>pg_depend, pg_shdepend.</div><div>I finaly managed to make it works and could dump everything and rebuild the</div><div>DB for more security. Server was down for 1 week, and that event gave me</div><div>proven arguments to have local storage. That was with 9.6 and I took the opportunity<span style="background-color: transparent;">&#160;to upgrade to 10.3 at the same time.</span></div><div>Now it&#39;s more clear it&#39;s a PG9/10/12 (I didn&#39;t tried 11) problem with</div><div>vacuum/autovacuum not changing xid on temp tables. So, as long a temp table</div><div>exists, it take age and finish by causing a wraparound protection.</div><div>Thierry</div></div></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></body></html>
 





view thread (10+ messages)  latest in thread

Message-ID: <531286628.288219.1560185262575@email.ionos.com>
Permalink:  ../531286628.288219.1560185262575@email.ionos.com/
Also on:    postgresql.org/message-id/531286628.288219.1560185262575@email.ionos.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: thusson@informiciel.com, andres@anarazel.de, michael@paquier.xyz, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: Temp table handling after anti-wraparound shutdown (Was: BUG #15840)
  In-Reply-To: <531286628.288219.1560185262575@email.ionos.com>
  References: <15840-06c9565bfd8099f6@postgresql.org> <20190607190231.6psb6w3bvlod7lvk@alap3.anarazel.de> <20190607145911.Horde.MKizKAnShw4nKEYGDUC2M-T@webmail.iciel.com> <20190607201002.cado5goe3rcup43n@alap3.anarazel.de> <20190607164027.Horde._egTUMJMTDBA4f31sPYgl_J@webmail.iciel.com> <20190607225843.z73jqqyy6hhc6qnp@alap3.anarazel.de> <20190607235937.GA1590@paquier.xyz> <20190608002632.ptuvc6tbffjhlsgi@alap3.anarazel.de> <20190608014540.GC7228@paquier.xyz> <20190608040639.Horde.mXgiHVLprn9sAsYXLi6I9up@webmail.iciel.com> <20190609213126.uutlkqlrsud3bdfs@alap3.anarazel.de> <531286628.288219.1560185262575@email.ionos.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