Re: Does psql use nested transactions?

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Honza Pazdziora <adelton(at)informatics(dot)muni(dot)cz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does psql use nested transactions?
Date: 2004-08-18 06:47:26
Message-ID: 4122FB7E.7050704@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Honza Pazdziora 2004-08-18 06:55:36 Re: Does psql use nested transactions?
Previous Message Marius Andreiana 2004-08-18 06:44:39 Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta?