From: Jie Liang <jliang@beijing.rapid.stbernard.com>
To: pgsql-bugs@postgresql.org
Cc: pgsql-admin@postgresql.org
Cc: rcrowe@stbernard.com
Subject: pg_dump bug
Date: Mon, 1 Apr 2002 12:11:12 -0800 (PST)
Message-ID: <20020401115249.P56218-100000@beijing.rapid.stbernard.com> (raw)
I have a pg_dump file which contains only schemas,
I think there is a bug, which causes function reload
fail, look at following pieces of dump file:
......
......
--
-- TOC Entry ID 212 (OID 34744710)
--
-- Name: gibson Type: TABLE Owner: jliang
--
CREATE TABLE "gibson" (
"cid" integer,
"code" character varying(10),
"name" character varying(32)
);
--
-- TOC Entry ID 368 (OID 34746075)
--
-- Name: "urlsbycid" (smallint) Type: FUNCTION Owner: jliang
--
CREATE FUNCTION "urlsbycid" (smallint) RETURNS SETOF text AS '
select url from urlinfo where id = ratings_by_serial.id and
ratings_by_serial.cid = $1 order by random() limit 100;
' LANGUAGE 'sql';
--
-- TOC Entry ID 213 (OID 34752225)
--
-- Name: gibson2 Type: TABLE Owner: jliang
--
CREATE TABLE "gibson2" (
"cid" integer,
"code" character varying(10),
"name" character varying(32),
"url" text
);
......
......
--
-- TOC Entry ID 235 (OID 67353384)
--
-- Name: urlinfo Type: TABLE Owner: bob
--
CREATE TABLE "urlinfo" (
"url" text NOT NULL,
"id" integer NOT NULL,
"ratedby" character varying(32),
"ratedon" timestamp with time zone DEFAULT
"timestamp"('now'::text),
"comments" text,
"list" smallint,
"pidwsr" integer,
"refid" integer,
Constraint "urlinfo_pkey" Primary Key ("id")
);
......
......
BUG:
CREATE FUNCTION "urlsbycid" cannot be created before
table "urlinfo" created!!!
I am using PostgreSQL-7.1.3 with pg_dump -s -f filename dbname.
I am upgrading my DB from Pg7.1.3 to Pg7.2.
This is one of problems I got.
I don't know does this bug has been fixed in Pg7.2??
Jie LIANG
Software Engineer
St. Bernard Software
16882 W. Bernardo Dr.
San Diego, CA 92127
Office:(858)524-2134
jie@stbernard.com
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: jliang@beijing.rapid.stbernard.com, pgsql-bugs@postgresql.org, rcrowe@stbernard.com
Subject: Re: pg_dump bug
In-Reply-To: <20020401115249.P56218-100000@beijing.rapid.stbernard.com>
References: <20020401115249.P56218-100000@beijing.rapid.stbernard.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