Re: What have I done!?!?!? :-) - Mailing list pgsql-general

From Magnus Hagander
Subject Re: What have I done!?!?!? :-)
Date
Msg-id CABUevEx22cC2xOTuEG_hiWq3Ed3eZvuFb=CUxtFdP8cmUKuvZA@mail.gmail.com
Whole thread Raw
In response to Re: What have I done!?!?!? :-)  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
List pgsql-general


On Fri, Apr 8, 2022 at 7:57 AM Nikolay Samokhvalov <samokhvalov@gmail.com> wrote:
On Thu, Apr 7, 2022 at 8:10 AM Jan Wieck <jan@wi3ck.info> wrote:
So **IF** Active Record is using that feature, then it can dump any
amount of garbage into your PostgreSQL database and PostgreSQL will
happily accept it with zero integrity checking.


A side-note on this, which of course won't help the OP at this point, but if the general best practice of not running the application with a highly privileged account is followed, the problem won't occur (it will just fail early before breaking things). DISABLE TRIGGER ALL requires either ownership of the table or superuser permissions, none of which it's recommended that the application run with. Doesn't help once the problem has occurred of course, but can help avoid it happening in the future.

--

pgsql-general by date:

Previous
From: Jan Wieck
Date:
Subject: Re: What have I done!?!?!? :-)
Next
From: Magnus Hagander
Date:
Subject: Re: How to get updated order data