Can I prevent my sequence to increment if an insert is rejected?

Поиск
Список
Период
Сортировка
От Frederic De Leersnijder
Тема Can I prevent my sequence to increment if an insert is rejected?
Дата
Msg-id 3794A9B3.C323DC4A@pandora.be
обсуждение исходный текст
Ответы Re: [SQL] Can I prevent my sequence to increment if an insert is rejected?  ("tjk@tksoft.com" <tk@uno.tksoft.com>)
Re: [SQL] Can I prevent my sequence to increment if an insert is rejected?  (Herouth Maoz <herouth@oumail.openu.ac.il>)
Список pgsql-sql
Hi,

when I try to insert a record and it curses with fields with a unique
key on them my sequence I use for my primary key does increment. How can
I prevent this from happening?


Thanks
Frederic


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] bad select performance for where (x=1 or x=3)
Следующее
От: "tjk@tksoft.com"
Дата:
Сообщение: Re: [SQL] Can I prevent my sequence to increment if an insert is rejected?