Re: COPY does not work with regproc and aclitem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: COPY does not work with regproc and aclitem
Date: 2006-10-23 20:27:01
Message-ID: 28188.1161635221@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM> writes:
> if( donot_resolve_procname == TRUE)
> {
> result = (char *) palloc(NAMEDATALEN);
> snprintf(result, NAMEDATALEN, "%u", proid);
> }

What for? If you want numeric OIDs you can have that today by casting
the column to OID. More to the point, the issue is hardly restricted
to COPY --- you'd get the same thing if you tried to insert data with
INSERT.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2006-10-23 20:31:37 Re: COPY does not work with regproc and aclitem
Previous Message Tom Lane 2006-10-23 20:22:52 Re: COPY does not work with regproc and aclitem

Browse pgsql-patches by date

  From Date Subject
Next Message Zdenek Kotala 2006-10-23 20:31:37 Re: COPY does not work with regproc and aclitem
Previous Message Tom Lane 2006-10-23 20:22:52 Re: COPY does not work with regproc and aclitem