Re: COPY does not work with regproc and aclitem

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: COPY does not work with regproc and aclitem
Дата
Msg-id 20061026134406.GN9340@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: COPY does not work with regproc and aclitem  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Ответы Re: COPY does not work with regproc and aclitem  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-hackers
Zdenek Kotala wrote:
> Tom Lane napsal(a):
> >Zdenek Kotala <Zdenek.Kotala@Sun.COM> writes:
> >>I prepared patch which use oid output function instead regproc output.
> >>This change works only for COPY TO command.
> >
> >This is not a bug and we're not going to fix it, most especially not
> >like that.
>
> OK, The behavior of regproc type is described in the documentation, but
> if we don't fix it, than Some error message like "Regproc data type is
> not supported by COPY TO command" could be useful. Because you find that
> something is wrong when you want to restore data back and it should be
> too late.

But it works as "expected".  If the approach you suggest would be one we
would take, then it should emit the same error on SELECT as well,
shouldn't we?

I think the problem is that regproc COPY is not useful to you for your
particular use case.  But there are workarounds, like the one I
suggested and you promptly ignored.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: COPY does not work with regproc and aclitem
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: New CRC algorithm: Slicing by 8