Re: [HACKERS] sequences

Поиск
Список
Период
Сортировка
От Vadim B. Mikheev
Тема Re: [HACKERS] sequences
Дата
Msg-id 34F4E427.75B79BD3@sable.krasnoyarsk.su
обсуждение исходный текст
Ответ на sequences  (Brett McCormick <brett@work.chicken.org>)
Ответы Re: [HACKERS] sequences
Список pgsql-hackers
Brett McCormick wrote:
>
> Are there any plans to implement oid-style functionality for
> sequences, such as returning the nextval in the result tuple somehow?
>
> Is it at all possible to implement?  That is one very nice thing about
> using oid instead, is that it comes back in PQoidStatus.  I probably
> won't stop using oids until this is possible (i've got my own restore
> which "preserves" (i.e. renumbers) oid references)

Not possible - sequences are just "a gear", user can use more than
one sequences in inserts, etc...

But we could return PRIMARY KEY of affected tuple if it exists!
I kept this feature in mind when thought about removing OID...

Comments ?

Vadim

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

Предыдущее
От: Brett McCormick
Дата:
Сообщение: alpha/64bit & mkoidname problem
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PORTS] alpha/64bit & mkoidname problem