Re: Index optimization ?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Index optimization ?
Дата
Msg-id 20050115213411.GB26259@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: Index optimization ?  ("Jim C. Nasby" <decibel@decibel.org>)
Ответы Re: Index optimization ?
Список pgsql-general
On Sat, Jan 15, 2005 at 03:11:22PM -0600, Jim C. Nasby wrote:

> Would it make sense to have a version of currval that will only return
> one value in a statement/transaction? So the first time it's called it
> remembers what currval for that sequence is and always returns the same
> value?

What would nextval() do in that case?  Return the nextval on the first
call, and act like currval() from then until the end of the transaction?

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Porque francamente, si para saber manejarse a uno mismo hubiera que
rendir examen... �Qui�n es el machito que tendr�a carnet?"  (Mafalda)

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: OID Usage
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: OID Usage