Re: enum types and binary queries

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: enum types and binary queries
Дата
Msg-id b42b73150708310549w28da546av7564ee7e4e9abb6d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: enum types and binary queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: enum types and binary queries
Re: enum types and binary queries
Re: enum types and binary queries
Re: enum types and binary queries
Список pgsql-hackers
On 8/30/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Merlin Moncure" <mmoncure@gmail.com> writes:
> > I noticed that enums are not available to be queried as binary through
> > the protocol.
>
> What do you think the binary representation ought to be?  Copying OIDs
> seems pretty useless.

I'm on the fence on this one.

I actually think this would be ok, if you mean pg_enum.oid, or the
string would be fine too.  I agree that binary protocol is supposed to
be fast, and I can prefetch the pg_enum table to the client and do the
magic there.  Many other binary formats do similarly inscrutable
things.

One other very small observation: afaict, there appears to be no way
to list enum contents in psql (although you can list the enums
themselves in the type listing).  Maybe this should be possible?  I'm
willing to take a stab at these things if Andrew is busy.

merlin


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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Final background writer cleanup for 8.3
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: enum types and binary queries