Re: Does psql use nested transactions?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Does psql use nested transactions?
Дата
Msg-id 4122FB7E.7050704@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Does psql use nested transactions?  (Honza Pazdziora <adelton@informatics.muni.cz>)
Ответы Re: Does psql use nested transactions?  (Honza Pazdziora <adelton@informatics.muni.cz>)
Список pgsql-hackers
> It is not just a typo that you make in the SQL command. You often need
> to do
> 
>     insert into table which has primary key
>     if the insert failed, do update of the existing record

Do the update first then the insert.

Chris



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

Предыдущее
От: Honza Pazdziora
Дата:
Сообщение: Re: Does psql use nested transactions?
Следующее
От: Honza Pazdziora
Дата:
Сообщение: Re: Does psql use nested transactions?