Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haPqB-00083l-Ru for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jun 2019 19:20:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1haPq8-0003q4-LA for pgsql-hackers@arkaria.postgresql.org; Mon, 10 Jun 2019 19:20:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haOwh-00059J-Tn for pgsql-hackers@lists.postgresql.org; Mon, 10 Jun 2019 18:23:04 +0000 Received: from mout.perfora.net ([74.208.4.197]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1haOwb-0000QJ-9a for pgsql-hackers@lists.postgresql.org; Mon, 10 Jun 2019 18:23:02 +0000 Received: from oxuslxaltgw04.schlund.de ([10.72.76.60]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MGPxO-1hNDe947LU-00DHSB; Mon, 10 Jun 2019 20:22:46 +0200 Date: Mon, 10 Jun 2019 14:22:41 -0400 (EDT) From: - - To: Andres Freund Cc: Michael Paquier , Robert Haas , Tom Lane , pgsql-hackers@lists.postgresql.org Message-ID: <1336197128.294743.1560190961901@email.ionos.com> 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> Subject: Re: Temp table handling after anti-wraparound shutdown (Was: BUG #15840) MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev55 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:N4uGIFRLNznvwS+1J8nsGExQdwiAQMPb2EYIsh/1xYdkEEnKKyv yqAGz7L/Cr2aMZtWoVRVjtvCWIT3YtRMIqCRkMTNqBzp6iEIR5GeaDnMHLWTQBQz4DBc+cp JFA5+mHSgOFxShxqImYLXcxWpXV/xexS+nb9m3I73vJ8IC0TELYFbda4qwqSW0G0C6DEpsj mpd8abzDWRpivIlzkfeKw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:hco0Q8sBOKc=:E41GzA58J3mkqRAkFn04WJ QPT/Ykb2XTA+FOd6E95A1jtKTz3aET2Q6WKpNAeiyOixtnDEPzi1eO9Knai80NOJsXTYkwXqo kNlO9EmsATUbt/Yp4exD7I/FX+uPQoZmPtQ/zBuuNaSy6BJU2TEtVGQqP2EfJlrUU/LhfpC15 94z2fcOmAuGqBYcoEFZTbHiFzaJhyV4PIFZAp/wkoWXMdaT7XSSrZTgr2qLzubXuxVwEn5qsN vgFX+2xLCBKIK8o4UQz791oksjQgdCN/JaDQftk1BsDOCPlsuY2g8RlrhkcolBbeVUzZYJFeD kDWaSibkDJIX3XVZLsc2IbSGHN3EVb1VGZV3t3pzhbViAbIiIDS/Jl3q7XX/159UgJgHHt5rL xkjliK/npJTbtzkP9ekCiMCdzhbb0wj7FhR9qYvCn9t5tHmjaOIN3UyyvzEeAdyHkXFemYu0I XIh2YP0daVzjz0ubJA9Icuwm4rwu1NLeeUKUtpga8BYiSgDEkynVvjJ7gZyX93oeshKkhGkd0 O9kg5JpverrkYPwCVklTNl/BGM0/xHoGEr/V7Yy+AcrNGgCmRLdGVFjM9/dR60NCs6dKtGmkG YWR9Rgq8KTtsLh2QBOI/oWl1ZSYcROm0ojQTKW2lSAnft7b86ZeehgeWcUSOJZYQuHJjAeilH Rz3d67kuiEBshKzwDrMhJwDPA+xxaNMDA6/Qh/F0EOMW1w01e1Kms90d+WBWrejgVni5X71lv XpGAOryZp3Lf1fnAEhTNaxom5XUb4samtrjusaWnS+Q26wZJe33UvsTQ1gM= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk

Sorry for previous messup.

> Hm, I'd like to know more about that corrup= tion. Did you report it when

> it occured= ?

Thanks Andres for explanations. I didn'= t reported the corruption when it

occured as = it was my fault, not a PG bug, as the main cause was that I was

using network drive, knowingly it's unreliable for D= B but management didn't

believe me.

I had these kind of errors:

pg_dump emet_istina -F c -n usr_...

p= g_dump: schema with OID 308991 does not exist

\dt+ pg_temp*.*

ERROR:  catalog is miss= ing 1 attribute(s) for relid 5733555

drop sch= ema pg_temp_9;

ERROR:  cache lookup fail= ed for relation 5733715

drop schema pg_temp_6= ;

ERROR:  cannot drop schema pg_temp_6 b= ecause other objects depend on it

DETAIL:= 0; table pg_temp_6.cur_dde000_105577 depends on schema pg_temp_6

HINT:  Use DROP ... CASCADE to drop the dependent = objects too.

I had to manualy remove/edit rec= ords from pg_class, pg_type, pg_namespace,

pg= _depend, pg_shdepend.

I finaly managed to mak= e it works and could dump everything and rebuild the

DB for more security. Server was down for 1 week, and that event ga= ve me

proven arguments to have local storage.= That was with 9.6 and I took the

opportunity= to upgrade to 10.3 at the same time.

Now it&= #39;s more clear it's a PG9/10/12 (I didn't tried 11) problem with<= /p>

vacuum/autovacuum not changing xid on temp ta= bles. So, as long a temp table

exists, it tak= e age and finish by causing a wraparound protection.

Thierry

=20