Re: COPY does not work with regproc and aclitem - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: COPY does not work with regproc and aclitem
Date
Msg-id 20061023200200.GD11409@alvh.no-ip.org
Whole thread Raw
In response to COPY does not work with regproc and aclitem  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: COPY does not work with regproc and aclitem  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Zdenek Kotala wrote:
> I tried to use COPY command to export and import tables from catalog, 
> but COPY command has problem with data type regproc. See example
> 
>   create table test (like pg_aggregate);
>   copy pg_aggregate to '/tmp/pg_agg.out';
>   copy test from '/tmp/pg_agg.out';
> 
> ERROR:  more than one function named "pg_catalog.avg"
> CONTEXT:  COPY test, line 1, column aggfnoid: "pg_catalog.avg"

Hmm, maybe it should be using regprocedure instead?  That one emits
type-qualified function names, IIRC.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: COPY does not work with regproc and aclitem
Next
From: Zdenek Kotala
Date:
Subject: Re: COPY does not work with regproc and aclitem