Re: pgsql-function called twice in the same second -> Double Insert -> Error

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: pgsql-function called twice in the same second -> Double Insert -> Error
Дата
Msg-id 200211262013.40626.shridhar_daithankar@persistent.co.in
обсуждение исходный текст
Ответ на pgsql-function called twice in the same second -> Double Insert -> Error  ("Peter Alberer" <h9351252@obelix.wu-wien.ac.at>)
Список pgsql-general
On Tuesday 26 November 2002 07:25 pm, you wrote:
> Is this something I can circumvent on the Postgres (DB) Level or do I
> have to deal with that at the application level (Aolserver - TCL) ?

Looking at the description, I think you don't need to worry about anything.
The database is doing one transaction fine and aborting other which is fine
as well because the second call of function with exactly same parameters does
not make any sense either.

If you don't like the message, try sleeping in function or call select for
update so that it locks the row and can not get the lock in itself.. This
seems to be better approach to me..

HTH

 Shridhar


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

Предыдущее
От: Jeff Eckermann
Дата:
Сообщение: Re: Migrating DAta from MSSQL to postgre
Следующее
От: Oleg Shalnev
Дата:
Сообщение: Re: How To Get Numetic Value!!! using C ???