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 [EMAIL PROTECTED] 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 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://www.postgresql.org/search.mpl