If there is a comment on a view, pg_dumpall can put them in the wrong order:

--
-- pg_dumpall (7.2devel)
--
...
--
-- TOC Entry ID 363 (OID 31291)
--
-- Name: VIEW "all_persons" Type: COMMENT Owner:
--

COMMENT ON VIEW "all_persons" IS 'All persons - individuals or not';

--
-- TOC Entry ID 362 (OID 31308)
--
-- Name: all_persons Type: VIEW Owner: olly
--

CREATE VIEW "all_persons" as SELECT person.ptype, person.id, person.name, 
person.address, person.salutation, person.envelope, person.email, person.www 
FROM person;



This seems to have happened with every view in this dump.  I haven't managed
to work out why it happens.

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "All scripture is given by inspiration of God, and is 
      profitable for doctrine, for reproof, for correction, 
      for instruction in righteousness;"          
                                     II Timothy 3:16 



Thu, 02 Aug 2001 23:29:34 +0100
"Oliver Elphick" <olly@lfix.co.uk>
pg_dumpall problem in 7.1 and cvs
"Oliver Elphick" <olly@lfix.co.uk> writes:
> If there is a comment on a view, pg_dumpall can put them in the wrong order:

Drat.  I fixed the identical problem for permissions a little while ago,
but didn't realize that it extended to comments too.  Thanks for the
report!

			regards, tom lane

Thu, 02 Aug 2001 19:18:44 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dumpall problem in 7.1 and cvs 
"Oliver Elphick" <olly@lfix.co.uk> writes:
> If there is a comment on a view, pg_dumpall can put them in the wrong order:

I've committed a fix for this in both CVS tip and REL7_1_STABLE.

			regards, tom lane

Fri, 03 Aug 2001 16:48:45 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_dumpall problem in 7.1 and cvs 