Re: Lock strategies!

Поиск
Список
Период
Сортировка
От Jeff
Тема Re: Lock strategies!
Дата
Msg-id 20031124092826.228bd067.threshar@torgo.978.org
обсуждение исходный текст
Ответ на Lock strategies!  (MaRcElO PeReIrA <gandalf_mp@yahoo.com.br>)
Список pgsql-general
On Mon, 24 Nov 2003 10:20:07 -0300 (ART)
MaRcElO PeReIrA <gandalf_mp@yahoo.com.br> wrote:

> Hi guys,
>
> I have a simple table:
>
> teste=# \d forn
>                            Table "public.forn"
>  Column  |  Type   |                      Modifiers
> ---------+---------+-------------------------------------------------
> -----
>  id      | integer | not null default
> nextval('public.forn_id_seq'::text)
>  forn_id | integer |
>  descrip | text    |
>


Why not make forn_id a sequence as well?
then you simply call nextval('forn_id_seq')


--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

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

Предыдущее
От: MaRcElO PeReIrA
Дата:
Сообщение: Re: Lock strategies!
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Lock strategies!