Re: Last ID Problem

Поиск
Список
Период
Сортировка
От
Тема Re: Last ID Problem
Дата
Msg-id 20050504162152.34287.qmail@web52405.mail.yahoo.com
обсуждение исходный текст
Ответ на Last ID Problem  (<operationsengineer1@yahoo.com>)
Ответы Re: Last ID Problem  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-novice
> Why not first get the current value from the
> sequence, use it for your
> INSERT statement, and then have it handy for the
> rest of the script?

i hate to revisit this old topic, however, i just want
to make sure i'm avoiding future problems.

if i pull nextval then insert it into the id column
where i pulled it from, will the counter ever get "off
track" since i'm doing manual inserts?

can nextval ever become a value that's unexpected?  in
practice, this method is working very well, but i'm
paranoid.  ;-)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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

Предыдущее
От:
Дата:
Сообщение: Cascade Delete To Override Table Restrict Delete
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Last ID Problem