From: Robert John Shepherd <robert@reviewer.co.uk>
To: pgsql-bugs@postgresql.org
Subject: Bug in pg_dump
Date: Mon, 11 Nov 2002 22:28:04 -0000
Message-ID: <006301c289d1$a9fac7b0$f3b0313e@LAIKA> (raw)
========================================================================
====
POSTGRESQL BUG REPORT TEMPLATE
========================================================================
====
Your name : Robert John Shepherd
Your email address : robert@reviewer.co.uk
System Configuration
---------------------
Architecture (example: Intel Pentium) : Intel Pentium IV
Operating System (example: Linux 2.0.26 ELF) : OpenBSD 3.1
PostgreSQL version (example: PostgreSQL-7.2.3): PostgreSQL-7.2.3
Compiler used (example: gcc 2.95.2) : 2.95.3
Please enter a FULL description of your problem:
------------------------------------------------
pg_dump incorrectly dumps db schema when tsearch functions etc are
included
Functions and definitions relating to table creation are specified
correctly
before tables are defined, however those needed for index creation are
specified only after the indexes are created, causing errors during
restore.
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
createdb testdb
psql testdb < tsearch.sql
create table t ( a text, b txtidx );
create index a_idx on t using GIST (b);
pg_dump testdb > test.sql
createdb testdb2
psql testdb2 < test.sql
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
Dump all functions and types before indexes
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-bugs@postgresql.org
Cc: robert@reviewer.co.uk
Subject: Re: Bug in pg_dump
In-Reply-To: <006301c289d1$a9fac7b0$f3b0313e@LAIKA>
References: <006301c289d1$a9fac7b0$f3b0313e@LAIKA>
* 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