Ignoring an SQL INSERT error

Поиск
Список
Период
Сортировка
От Shawn Chisholm
Тема Ignoring an SQL INSERT error
Дата
Msg-id FE045D4D9F7AED4CBFF1B3B813C8533702C76E87@mail.sandvine.com
обсуждение исходный текст
Ответы Re: Ignoring an SQL INSERT error  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-novice
Hi,

Does anyone know of a way to perform an insert that does not abort the
transaction if it fails?

I am trying to implement a rule that will allow the insertion data into a
view (for backward compatability) by performing inserts in other tables, and
there are situations where an insert into one of the underlying tables is
unnecessary and causes a unique key constraint violation.  Ideally I would
like to do an insert and ignore any errors...

Thanks,

Shawn

PS. I am using PostgreSql 7.4



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

Предыдущее
От: Derrick Betts
Дата:
Сообщение: Re: Dynamic Array into pl/pgSQL function
Следующее
От: celoftis@unity.ncsu.edu
Дата:
Сообщение: Shut down postgres server...