pg_restore fails when restoring a database view

Поиск
Список
Период
Сортировка
От Pius Chan
Тема pg_restore fails when restoring a database view
Дата
Msg-id F116ccOQZVIcLc4Tq1o00001718@hotmail.com
обсуждение исходный текст
Ответы Re: pg_restore fails when restoring a database view
Список pgsql-admin
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


В списке pgsql-admin по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: problem with 'DROP TABLE' ..
Следующее
От: "shreedhar"
Дата:
Сообщение: How can i port data from SQL-Server 2000 to Postgre.