Re: Problem with trigger makes Detail record be invalid

From: PegoraroF10 <marcos(at)f10(dot)com(dot)br>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with trigger makes Detail record be invalid
Date: 2018-04-20 01:49:54
Message-ID: 1524188994110-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Correct, that delete done a partial commit. And this is absolutely
unacceptable.
I know I did that trigger incorrectly but referential integrity is
obligatory.
Imagine if I have a database crash and need to restore as soon as possible.
How much time I´ll spend removing those records from a backup to get entire
database restored properly.

Well, I´ll review all my triggers. And I have hundreds of them.

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Fercot 2018-04-20 08:40:14 Re: Doubts about replication..
Previous Message David G. Johnston 2018-04-20 00:28:00 Re: Dynamically filtering a CTE?