Re: What have I done!?!?!? :-)

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: What have I done!?!?!? :-)
Дата
Msg-id CABUevEx22cC2xOTuEG_hiWq3Ed3eZvuFb=CUxtFdP8cmUKuvZA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: What have I done!?!?!? :-)  (Nikolay Samokhvalov <samokhvalov@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: What have I done!?!?!? :-)
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: How to get updated order data