Re: pgsql: Update pg_upgrade test for reg* to include regrole and regnamesp

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>, pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Update pg_upgrade test for reg* to include regrole and regnamesp
Date: 2018-11-27 20:38:06
Message-ID: 20181127203806.behekoj55rnwuuvg@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Hi,

On 2018-11-27 10:47:29 -0500, Tom Lane wrote:
> Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com> writes:
> > In any case, I think we will probably need to bite the bullet and have
> > pg_dump render LOs in OID order.
>
> +1. Looking at the relevant code:
>
> /*
> * Currently, we re-fetch all BLOB OIDs using a cursor. Consider scanning
> * the already-in-memory dumpable objects instead...
> */
> if (fout->remoteVersion >= 90000)
> blobQry = "DECLARE bloboid CURSOR FOR SELECT oid FROM pg_largeobject_metadata";
> else
> blobQry = "DECLARE bloboid CURSOR FOR SELECT DISTINCT loid FROM pg_largeobject";

Done. Thanks for chiming in.

Andrew, the <= 9.2 failure https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2018-11-27%2018%3A18%3A21
seems to be related to nabstime etc not being available anymore. We've
not backpatched

Author: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Branch: REL_11_STABLE Release: REL_11_0 [184951a48] 2018-10-12 19:33:56 -0400
Branch: REL_10_STABLE Release: REL_10_6 [9320263ae] 2018-10-12 19:33:56 -0400
Branch: REL9_6_STABLE Release: REL9_6_11 [2ad422ce1] 2018-10-12 19:33:56 -0400
Branch: REL9_5_STABLE Release: REL9_5_15 [43cc4e49e] 2018-10-12 19:33:56 -0400
Branch: REL9_4_STABLE Release: REL9_4_20 [7b88c1ddd] 2018-10-12 19:33:57 -0400
Branch: REL9_3_STABLE Release: REL9_3_25 [fb583c80d] 2018-10-12 19:33:57 -0400

Remove abstime, reltime, tinterval tables from old regression databases.

that far. I've locally verified that upgrade works after

SELECT format('ALTER TABLE %s DROP COLUMN %s;', attrelid::regclass, attname) FROM pg_attribute WHERE attrelid > 16384 AND atttypid IN ('abstime'::regtype, 'reltime'::regtype, 'tinterval'::regtype)
\gexec

or something in that vein.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2018-11-27 21:26:36 Re: pgsql: Update pg_upgrade test for reg* to include regrole and regnamesp
Previous Message Andres Freund 2018-11-27 20:25:54 pgsql: Ensure consistent sort order of large objects in pg_dump.