Re: Re: postgres TODO

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: postgres TODO
Дата
Msg-id 28609.963472399@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: postgres TODO  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
Philip Warner <pjw@rhyme.com.au> writes:
> At 11:05 12/07/00 +0200, Jan Wieck wrote:
>> Tom Lane wrote:
>>> 
>>> Philip's INSERT ... RETURNING idea could support returning TID and
>>> table OID as a special case, and it has the saving grace that it
>>> won't affect apps that don't use it...

> What sort of syntax would you use to request TID?

... RETURNING ctid

This might be a little tricky; you'd have to be sure the RETURNING
code executes late enough that a TID has been assigned to the tuple.
Not sure if post-insert trigger time is late enough or not (Jan?)
but in principle it's not a special case at all, just a system
attribute the same as OID.
        regards, tom lane


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

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: Some Improvement
Следующее
От: Chris Bitmead
Дата:
Сообщение: OO enhancements