Re: Patch for Statement.getGeneratedKeys()

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Patch for Statement.getGeneratedKeys()
Дата
Msg-id 23430.1200495718@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Patch for Statement.getGeneratedKeys()  (Ken Johanson <pg-user@kensystem.com>)
Список pgsql-jdbc
Ken Johanson <pg-user@kensystem.com> writes:
> Here is what I have so far (not sure of my conditionals yet or if I need
> any joins for them):

> select attname from pg_attribute
> where attrelid = 'postgres.public.test'::regclass
> and attstattarget=-1
> and attisdropped='f'
> order by attnum asc

I'd do "where attrelid = ... and attnum > 0 and not attisdropped".
Not sure what you think the attstattarget condition would accompllish,
but it doesn't seem like anything that client-side code ought to be
touching.

            regards, tom lane

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

Предыдущее
От: "Albretch Mueller"
Дата:
Сообщение: trying to connect to pg from within a local network
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: trying to connect to pg from within a local network