pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pius Chan <chanpius@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: pg_restore fails when restoring a database view
Date: Fri, 14 Feb 2003 13:16:16 -0800
Message-ID: <F116ccOQZVIcLc4Tq1o00001718@hotmail.com> (raw)

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




view thread (2+ messages)  latest in thread

Message-ID: <F116ccOQZVIcLc4Tq1o00001718@hotmail.com>
Permalink:  ../F116ccOQZVIcLc4Tq1o00001718@hotmail.com/
Also on:    postgresql.org/message-id/F116ccOQZVIcLc4Tq1o00001718@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: chanpius@hotmail.com
  Subject: Re: pg_restore fails when restoring a database view
  In-Reply-To: <F116ccOQZVIcLc4Tq1o00001718@hotmail.com>
  References: <F116ccOQZVIcLc4Tq1o00001718@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox