pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fischer Ulrich <ulrich.fischer@aerodynamics.ch>
Cc: a.schmitz@cityweb.de
Cc: pgsql-admin@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] Restoring a Databases that features tserach2
Date: Thu, 22 Apr 2004 11:32:57 -0400
Message-ID: <7243.1082647977@sss.pgh.pa.us> (raw)
In-Reply-To: <4087D682.6020803@aerodynamics.ch>
References: <4087886A.9080709@aerodynamics.ch>
	<200404221208.07902.a.schmitz@cityweb.de>
	<4087A5BB.8010000@aerodynamics.ch>
	<25783.1082641667@sss.pgh.pa.us>
	<4087D682.6020803@aerodynamics.ch>

Fischer Ulrich <ulrich.fischer@aerodynamics.ch> writes:
> Tom Lane wrote:
>> This is certainly not going to work because the dump from the old
>> database will already have all the tsearch2 objects, not to mention
>> whatever setup_ge_ispell.sql may create.  You should get rid of steps
>> 3 and 3a.

> Get rid of Step 3 and 3a produces Errors in Step 4 like:
> ERROR:  type "tsvector" does not exist

Yeah, not surprising if you used ALTER TABLE to add a tsvector column
to a table created before you'd loaded tsearch2 into the database.
The dump will create the objects in the wrong order.

This whole class of problems should be gone in 7.5, since CVS-tip
pg_dump understands dependencies properly.  As a short-term workaround
I'd suggest using "pg_dump -Fc db" as the source data and manually
adjusting the load order with pg_restore's -L option.  The
separate-schema-and-data approach is not very good since it's a lot
slower to load large databases that way.

			regards, tom lane



view thread (7+ messages)

Message-ID: <7243.1082647977@sss.pgh.pa.us>
Permalink:  ../7243.1082647977@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7243.1082647977@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ulrich.fischer@aerodynamics.ch, a.schmitz@cityweb.de, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] Restoring a Databases that features tserach2
  In-Reply-To: <7243.1082647977@sss.pgh.pa.us>
  References: <4087886A.9080709@aerodynamics.ch> <200404221208.07902.a.schmitz@cityweb.de> <4087A5BB.8010000@aerodynamics.ch> <25783.1082641667@sss.pgh.pa.us> <4087D682.6020803@aerodynamics.ch> <7243.1082647977@sss.pgh.pa.us>

* 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