pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <jan@wi3ck.info>
To: Nikolay Samokhvalov <samokhvalov@gmail.com>
Cc: Perry Smith <pedz@easesoftware.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: What have I done!?!?!? :-)
Date: Fri, 8 Apr 2022 08:47:46 -0400
Message-ID: <0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info> (raw)
In-Reply-To: <CANNMO+J-KZggPz4pX=KUOfRwpXm=Qo3eXz9=e2BtdnaBZbZRqg@mail.gmail.com>
References: <E2D1EB02-6391-4698-B703-3B02E5271FBC@easesoftware.com>
	<70c17f9b-1e6e-5dc2-ec1b-a60f9000026c@wi3ck.info>
	<CANNMO+J-KZggPz4pX=KUOfRwpXm=Qo3eXz9=e2BtdnaBZbZRqg@mail.gmail.com>

On 4/8/22 01:57, Nikolay Samokhvalov wrote:
> On Thu, Apr 7, 2022 at 8:10 AM Jan Wieck <jan@wi3ck.info 
> <mailto: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.
> 
> 
> It's DISABLE TRIGGER ALL 
> https://github.com/rails/rails/blob/831031a8cec5bfe59ef653ae2857d4fe64c5698d/activerecord/lib/active... 
> <https://github.com/rails/rails/blob/831031a8cec5bfe59ef653ae2857d4fe64c5698d/activerecord/lib/active...;

Similar poison, same side effect.

Looking further at that code it also directly updates the PostgreSQL 
system catalog. This is a big, red flag.

Why do the Rails developers think they need a sledgehammer like that? It 
seems to be doing that for over 7 years, so it is hard to tell from the 
commit log why they need to disable RI at all.


Regards, Jan





view thread (16+ messages)  latest in thread

Message-ID: <0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info>
Permalink:  ../0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info/
Also on:    postgresql.org/message-id/0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jan@wi3ck.info, samokhvalov@gmail.com, pedz@easesoftware.com
  Subject: Re: What have I done!?!?!? :-)
  In-Reply-To: <0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info>
  References: <E2D1EB02-6391-4698-B703-3B02E5271FBC@easesoftware.com> <70c17f9b-1e6e-5dc2-ec1b-a60f9000026c@wi3ck.info> <CANNMO+J-KZggPz4pX=KUOfRwpXm=Qo3eXz9=e2BtdnaBZbZRqg@mail.gmail.com> <0e4ea8e7-bfe2-b3ce-1edb-baa247bac0ca@wi3ck.info>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox