X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 98AF8475D17 for ; Fri, 14 Feb 2003 16:16:16 -0500 (EST) Received: from hotmail.com (f116.law11.hotmail.com [64.4.17.116]) by postgresql.org (Postfix) with ESMTP id 4AC3D475D00 for ; Fri, 14 Feb 2003 16:16:15 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 14 Feb 2003 13:16:16 -0800 Received: from 142.173.125.142 by lw11fd.law11.hotmail.msn.com with HTTP; Fri, 14 Feb 2003 21:16:16 GMT X-Originating-IP: [142.173.125.142] From: "Pius Chan" To: pgsql-admin@postgresql.org Subject: pg_restore fails when restoring a database view Date: Fri, 14 Feb 2003 13:16:16 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 14 Feb 2003 21:16:16.0523 (UTC) FILETIME=[4F825DB0:01C2D46E] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/242 X-Sequence-Number: 7440 Hi, I have created a database view by : CREATE VIEW V_EDUCATION_LEVEL ( id, description ) AS SELECT 1, 'College or above' UNION ALL SELECT 2, 'Secondary'; Then I pg_dump(ed) the database by specifying a tar format and tried to pg_restore to a destination database. However, I encountered the following error: pg_restore: creating VIEW v_education_level pg_restore: [archiver (db)] could not execute query: ERROR: CREATE TABLE: attribute "?column?" duplicated pg_restore: *** aborted because of error I am running Postgres 7.2.2. Thanks, Pius _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail