From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "PostgreSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>, "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Subject: | Re: enum types and binary queries |
Date: | 2007-08-31 12:49:05 |
Message-ID: | b42b73150708310549w28da546av7564ee7e4e9abb6d@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On 8/30/07, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> "Merlin Moncure" <mmoncure(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2007-08-31 13:14:47 | Re: enum types and binary queries |
Previous Message | Jan Wieck | 2007-08-31 12:46:28 | Re: Final background writer cleanup for 8.3 |
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2007-08-31 13:14:47 | Re: enum types and binary queries |
Previous Message | Pavan Deolasee | 2007-08-31 07:23:51 | Re: HOT patch - version 14 |