From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Mario Weilguni <mweilguni(at)sime(dot)com> |
Cc: | Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_restore and user defined types, several other pg_restore problems |
Date: | 2002-08-16 13:51:52 |
Message-ID: | 7185.1029505912@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Mario Weilguni <mweilguni(at)sime(dot)com> writes:
> Here are the problems I've encountered:
> * pg_restore tries to create a table with ltree and ltree[] datatypes before the type itself is created, so it fails.
Odd; what are the OIDs of the table and the datatypes?
> * several functions are already defined in template1, so "create database " will restore these functions. pg_restore will try to restore those functions as well
> and fails. Maybe "create or replace function" can be used here?
No. Use pg_restore per the documentation: make an empty database for it
to restore into (by cloning template0 instead of template1).
> pg_restore: [archiver (db)] could not execute query: ERROR: data type ltree[] has no default operator class for access method "gist"
> You must specify an operator class for the index or define a
> default operator class for the data type
Are you using recent sources? As of two weeks or so ago, pg_dump should
know how to dump operator classes.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2002-08-16 14:10:05 | Re: Coding help |
Previous Message | Tom Lane | 2002-08-16 13:47:44 | Re: Open 7.3 items |