dbTalk Databases Forums  

[BUGS] Error in pg_dump and pg_dumpall

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] Error in pg_dump and pg_dumpall in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
slawek@poczta.icpnet.pl
 
Posts: n/a

Default [BUGS] Error in pg_dump and pg_dumpall - 12-12-2004 , 06:51 PM






Name : Slawomir Sudnik
Email address: slawek (AT) icpnet (DOT) pl

Operating System : Linux Fedora / Windows XP

PostgreSQL version : 8.0 rc1

Descrtiption: Error in pg_dump and pg_dumpall

Details:

I made from database dump and received:

(...)

COMMENT ON CONSTRAINT b_c_check ON b IS 'constraint - b_c_check';

SET default_tablespace = '';

SET default_with_oids = true;

--
-- Name: b; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--

CREATE TABLE b (
c text NOT NULL,
CONSTRAINT b_c_check CHECK ((length(c) > 1))
);

ALTER TABLE public.b OWNER TO postgres;

--
-- Name: TABLE b; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON TABLE b IS 'Table - b';

--
--
-- Name: COLUMN b.c; Type: COMMENT; Schema: public; Owner: postgres
--

COMMENT ON COLUMN b.c IS 'Column - c';

(...)

The comment on constraint of type the CHECK is before creation of mother
table.


Greets,
Slawomir Sudnik


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] Error in pg_dump and pg_dumpall - 12-13-2004 , 08:25 PM






slawek (AT) poczta (DOT) icpnet.pl writes:
Quote:
The comment on constraint of type the CHECK is before creation of mother
table.
Yeah, I reproduced this here. The ordering of comments isn't completely
right --- if we fold the constraint into the mother table then the
dependency that should make the ordering go the right way isn't
preserved. Thanks for the report.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.