Re: Postgres 8.0 + JDBC

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Postgres 8.0 + JDBC
Дата
Msg-id 18241.1097011692@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Postgres 8.0 + JDBC  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Oliver Jowett <oliver@opencloud.com> writes:
> I am wondering if the right way to find the array OID is to prepend "_"
> and search on pg_type.typname, or to look for pg_type.typinput = (oid of
> array_in) and pg_type.typelem = (oid of underlying type). Is there a
> 'standard' way of finding an array type OID?

The backend does it by name, ie prepend '_' and lookup by typname (and
typnamespace).  This is a mite unclean but it hasn't seemed worth
fixing.  If you like you can use the typelem as an additional check that
you found the right thing.

            regards, tom lane

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

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Postgres 8.0 + JDBC
Следующее
От: Euler Taveira de Oliveira
Дата:
Сообщение: errors.properties fixes and translation update