Re: skip duplicate key error during inserts

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: skip duplicate key error during inserts
Дата
Msg-id 4541D7B5.7030606@cox.net
обсуждение исходный текст
Ответ на Re: skip duplicate key error during inserts  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Ответы Re: skip duplicate key error during inserts  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


That doesn't help at all during multi-table transactions or
bulk-loads where you want the loader to kick duplicates out to an
exception file.

On 10/27/06 04:41, Gurjeet Singh wrote:
>> If you are using psql, I'd recommend using '\set ON_ERROR_ROLLBACK on'.
[snip]
> The generalized version of this issue (transaction totally fails on
> any error) is extremely painful.
>
> Most RDBMSs (well, ok, the other RDBMSs that *I* have worked with)
> don't do that, and there's a lot of code written in the form:
>
>   INSERT INTO ...
>   IF PK-ERROR THEN
>      UPDATE
>   END-IF.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Is "common sense" really valid?
For example, it is "common sense" to white-power racists that
whites are superior to blacks, and that those with brown skins
are mud people.
However, that "common sense" is obviously wrong.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFQde1S9HxQb37XmcRAnqJAKCGgg3CDeGWuvKNFBZCbrAdSESqjACdFZSI
virSEhXIR8SVDK2CXKbgN3Y=
=0Qrc
-----END PGP SIGNATURE-----

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: what is the default username password for PostgreSQL, which was installed with FC5.
Следующее
От: "Purusothaman A"
Дата:
Сообщение: Re: what is the default username password for PostgreSQL, which was installed with FC5.