Re: Parent Id

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Parent Id
Дата
Msg-id 20031009184317.GA14131@wolff.to
обсуждение исходный текст
Ответ на Parent Id  (Gene Vital <genevital@karibe.com>)
Ответы Re: Parent Id
Список pgsql-general
On Thu, Oct 09, 2003 at 14:26:21 -0400,
  Gene Vital <genevital@karibe.com> wrote:
> when inserting new records into  parent / child tables, what is the best
> recommended way of retrieving the pkey value from the parent table when
> using auto incrementing fields ?

You want to use currval. currval will return the last value obtained
by nextval in the same session, so it is safe to use without any additional
locking.

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

Предыдущее
От: Gene Vital
Дата:
Сообщение: Parent Id
Следующее
От: Jeff Boes
Дата:
Сообщение: Table partitioning for maximum speed?