Re: How do I save data and then raise an exception?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How do I save data and then raise an exception?
Дата
Msg-id dcc563d10810031158k3f79c4acwec3a298701267f38@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How do I save data and then raise an exception?  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
Ответы Re: How do I save data and then raise an exception?  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
Список pgsql-general
On Fri, Oct 3, 2008 at 8:56 AM, Rob Richardson
<Rob.Richardson@rad-con.com> wrote:
> No, because the application first saves the coils and then saves the
> charge.  Setting up the foreign key constraint would prevent any coils
> from being saved because the charge record would never exist at the time
> the coil record was created.

You should be able to set your constraints to deferrable initially
deferred and get proper behaviour even with that update system.

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

Предыдущее
От: "Rob Richardson"
Дата:
Сообщение: Re: How do I save data and then raise an exception? -- solved
Следующее
От: Jörn Heid
Дата:
Сообщение: Re: Standalone Windows Installation