Re: RETURNING clause: how to specifiy column indexes?

Поиск
Список
Период
Сортировка
От Ken Johanson
Тема Re: RETURNING clause: how to specifiy column indexes?
Дата
Msg-id 4760DC91.8090103@kensystem.com
обсуждение исходный текст
Ответ на Re: RETURNING clause: how to specifiy column indexes?  (Kris Jurka <books@ejurka.com>)
Ответы Re: RETURNING clause: how to specifiy column indexes?
Список pgsql-general
>
>> If true, my next idea would be to derive the column name using a
>> subquery in the returning clause. But it sounds like this may have
>> potential security contraints (will any INSERT query always have read
>> access to the PG tables?). And no guarantee of the order matching in
>> the long term.
>
> There is no requirement that insert permission on a user table implies
> read access to pg_catalog.  Still many clients will break if they can't
> read pg_catalog.  For example, all of the JDBC driver's MetaData results
> need to query pg tables, updatable ResultSets need to query pg tables to
> know what the primary key is and so on.  So if this functionality
> required access to pg_catalog that would neither be unprecedented nor
> unreasonable.
>

So it sounds like this may be the best approach, do you agree? I'll try
and find the cycles to code this up although the limited value of
getGeneratedKeys by index makes me think my time would be better spent
elsewhere on the JDBC driver. For now at least. If you can respond to my
earlier query (5 Dec) about what robustness improvements are needed,
I'll start there..

Thanks,
Ken



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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Slow PITR restore
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: jdbc lob and postgresql