pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Zdenek Kotala <Zdenek.Kotala@Sun.COM>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: COPY does not work with regproc and aclitem
Date: Mon, 23 Oct 2006 22:31:37 +0200
Message-ID: <453D26A9.70702@sun.com> (raw)
In-Reply-To: <28143.1161634972@sss.pgh.pa.us>
References: <453D1B73.2050906@sun.com>
	<453D1EBF.5070506@dunslane.net>
	<453D201E.3070202@sun.com>
	<28143.1161634972@sss.pgh.pa.us>

Tom Lane wrote:
> Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
>> I'm playing with catalog upgrade. The very basic idea of my experiment 
>> is export data from catalog and import it back to the new 
>> initialized/fresh catalog.
> 
> That is never going to work, at least not for any interesting catalogs.
> A system with a "fresh" (I assume you mean empty) pg_proc, for instance,
> is non functional.

No empty, fresh initialized by initdb. I want to copy only "user data" 
which is not created during boostrap.

> 
> A much bigger problem, if you're thinking of this as a component step
> of pg_upgrade, is that you can't use anything at the COPY level of
> detail because it will fail if the new version wants a different catalog
> layout --- for instance, if someone's added a column to the catalog.

Yes, I know about it. It is not problem, I want to prepare "shadow" 
catalog with new structure on old database in separate schema and adjust 
data in these tables. After it I want to make final COPY - data will be 
copied with correct structure.


> The right way to implement pg_upgrade is to transfer the catalog data
> at the SQL-command level of abstraction, ie, "pg_dump -s" and reload.

I'm not sure if it is important, but I think that preserve OID is 
important and SQL level does not allow set OID.

		Zdenek



view thread (18+ messages)  latest in thread

Message-ID: <453D26A9.70702@sun.com>
Permalink:  ../453D26A9.70702@sun.com/
Also on:    postgresql.org/message-id/453D26A9.70702@sun.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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: Zdenek.Kotala@Sun.COM, tgl@sss.pgh.pa.us, andrew@dunslane.net
  Subject: Re: COPY does not work with regproc and aclitem
  In-Reply-To: <453D26A9.70702@sun.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