| From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
|---|---|
| To: | Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: COPY does not work with regproc and aclitem |
| Date: | 2006-10-23 20:02:01 |
| Message-ID: | 20061023200200.GD11409@alvh.no-ip.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zdenek Kotala | 2006-10-23 20:03:42 | Re: COPY does not work with regproc and aclitem |
| Previous Message | Andrew Dunstan | 2006-10-23 19:57:51 | Re: COPY does not work with regproc and aclitem |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zdenek Kotala | 2006-10-23 20:03:42 | Re: COPY does not work with regproc and aclitem |
| Previous Message | Andrew Dunstan | 2006-10-23 19:57:51 | Re: COPY does not work with regproc and aclitem |