Alvaro Herrera wrote: > > Well, he is right. One will fail, the other will not. The race > condition is for the application. If you want to ignore it, you can do > that, but there _will_ be an ERROR thrown and the transaction will be > aborted. Ah ... then maybe this solution is 'good enough'. It will still generate an error message some of the time (when there is a race condition) but will definitely generate fewer error messages than the current method used which is just to do the insert and let it fail if there is already a record with the same primary key. Thanks for the help! Jean-Christian Imbeault ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
- Re: [GENERAL] Duplicate key insert question Maksim Likharev
- Re: [GENERAL] Duplicate key insert question Jean-Christian Imbeault
- Re: [GENERAL] Duplicate key insert questi... Mike Mascari
- Re: [GENERAL] Duplicate key insert qu... Lincoln Yeoh
- [GENERAL] problems with pg_restor... andy morrow
- Re: [GENERAL] problems with ... andy morrow
- Re: [GENERAL] Duplicate key inser... Mike Mascari
- Re: [GENERAL] Duplicate key insert question Reuben D. Budiardja
- Re: [GENERAL] Duplicate key insert question Jean-Christian Imbeault
- Re: [GENERAL] Duplicate key insert questi... Alvaro Herrera
- Re: [GENERAL] Duplicate key insert qu... Jean-Christian Imbeault
- Re: [GENERAL] Duplicate key insert questi... Reuben D. Budiardja
- Re: [GENERAL] Duplicate key insert question Dann Corbit
- Re: [GENERAL] Duplicate key insert question Alvaro Herrera
- Re: [GENERAL] Duplicate key insert question Dann Corbit
- Re: [GENERAL] Duplicate key insert question Alvaro Herrera
- Re: [GENERAL] Duplicate key insert question Jean-Christian Imbeault
- Re: [GENERAL] Duplicate key insert question Reuben D. Budiardja
- Re: [GENERAL] Duplicate key insert question Bruno Wolff III