PostgreSQL 12.1 patch for "private_modify" table creation option for data validation reinforcement

From: Abdul Yadi AH-2 <abdulyadi(dot)datatrans(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: PostgreSQL 12.1 patch for "private_modify" table creation option for data validation reinforcement
Date: 2019-12-28 04:33:43
Message-ID: CAJJaA=fQmEJ0jNxK+BnbbiOrdj-8rMfiFvesbZajYEJtQ0P40Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

As I have published on
https://abdulyadi.wordpress.com/2019/12/26/reinforce-data-validation-prevent-direct-table-modification/,
the patch is to have "private_modify" option in table creation. For example:
CREATE TABLE mytable (id integer) WITH (private_modify=true);

Having the option set, even superuser can not insert/update/delete the
table outside SQL or SPI-based function where complex data validation takes
place.

The patch has been passed all regression test provided in Postgresql source
code (src/test/regression): make check, make installcheck, make
installcheck-parallel, make checkworld, make install-checkworld.

Regards,
Abdul Yadi

Attachment Content-Type Size
pgsqlprivate.patch text/x-patch 8.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2019-12-28 06:52:55 Re: [PATCH v1] pg_ls_tmpdir to show directories
Previous Message John Naylor 2019-12-28 03:44:14 Re: use CLZ instruction in AllocSetFreeIndex()