Received: from dg.eisolution.com (dsl-209-81-146-10.dsl.iwc.net [209.81.146.10]) by postgresql.org (Postfix) with ESMTP id E30B9475858 for ; Wed, 27 Mar 2002 17:19:53 -0500 (EST) Received: from marcmdelltop (dsl-209-81-146-10.dsl.iwc.net [209.81.146.10]) by dg.eisolution.com (8.11.6/8.11.2) with SMTP id g2RMMId13637 for ; Wed, 27 Mar 2002 16:22:18 -0600 Message-ID: <01f201c1d5de$6ba33a80$7501050a@eisolution.com> From: "Marc Mitchell" To: Subject: pg_dump and views Date: Wed, 27 Mar 2002 16:26:15 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Archive-Number: 200203/328 X-Sequence-Number: 3862 I've run into what I think is a problem with pg_dump. I'm running 7.1.2 under RedHat. I issue a schema-only pg_dump as follows: pg_dump -c -s -S postgres me|gzip> /u0/prod/sql/backups/$YEAR.$MONTH.$DAY.schema.gz Everything seems to run fine. However, upon restore no views were seen. Investigation of the created dump file showed the commands to GRANT were issued before the actual command to create the views in the first place. See the following: -- -- Name: plc_loc_view Type: ACL Owner: -- REVOKE ALL on "plc_loc_view" from PUBLIC; GRANT ALL on "plc_loc_view" to PUBLIC; GRANT ALL on "plc_loc_view" to "me"; -- -- TOC Entry ID 58 (OID 135271) -- -- Name: plc_loc_view Type: VIEW Owner: me -- CREATE VIEW "plc_loc_view" as SELECT plc.plc_uid, plc.plc_type_code, plc.account _nbr, plc.plc_name, plc.address_1, plc.address_2, plc.loc_uid, plc.nd_zipcode, p Is there something here I'm missing. Marc Mitchell Enterprise Information Solutions, Inc. marcm@eisolution.com