Re: --single-transaction hack to pg_upgrade does not work - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: --single-transaction hack to pg_upgrade does not work
Date
Msg-id 50B9FB65.5090601@dunslane.net
Whole thread Raw
In response to --single-transaction hack to pg_upgrade does not work  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: --single-transaction hack to pg_upgrade does not work  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 11/30/2012 11:10 PM, Tom Lane wrote:
> Some of the buildfarm members are failing the pg_upgrade regression test
> since commit 12ee6ec71f8754ff3573711032b9b4d5a764ba84.  I can duplicate
> it here, and the symptom is:
>
> pg_restore: creating TYPE float8range
> pg_restore: creating TYPE insenum
> pg_restore: [archiver (db)] Error while PROCESSING TOC:
> pg_restore: [archiver (db)] Error from TOC entry 978; 1247 16584 TYPE insenum tgl
> pg_restore: [archiver (db)] could not execute query: ERROR:  ALTER TYPE ... ADD cannot run inside a transaction
block
>      Command was:
> -- For binary upgrade, must preserve pg_type oid
> SELECT binary_upgrade.set_next_pg_type_oid('16584'::pg_catalog.oid);
>
> I have not investigated why it apparently passes some places; this looks
> to me like a guaranteed failure.
>
>             


Testing pg_upgrade has only been in buildfarm releases since September 
28, and even then is optional, although enabled by default in the sample 
config file. Looks like even I need to upgrade a few of my animals to do 
it. It probably needs to improve its error logging though.

Seems odd not to have run "make check" before committing, though.

cheers

andrew



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: fix corner use case of variadic fuctions usage
Next
From: Magnus Hagander
Date:
Subject: Tablespaces in the data directory