pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedcreate rule
2+ messages / 2 participants
[nested] [flat]
* create rule
@ 2021-09-03 08:44 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2021-09-03 08:44 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: joosthelberg@gmail.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/12/rules-views.html
Description:
Nowhere in the documentation is mentioned that rules can only be made on
tables without dropped columns and, much to my suprise, on empty tables
only. I wanted to use rules on existing tables to cater for
column-redaction, but this seems only possible by creating a new (empty)
table for all user to use and to hide the original table from everyone.
1. the documentation should state this (and not start with an example of use
of rules in views, which is a special case, I though).
2. the implementation should fix the only-on-empty tables issue (avoiding
having to change the documentation).
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: create rule
@ 2021-09-03 13:28 Laurenz Albe <laurenz.albe@cybertec.at>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2021-09-03 13:28 UTC (permalink / raw)
To: joosthelberg@gmail.com; pgsql-docs@lists.postgresql.org
On Fri, 2021-09-03 at 08:44 +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/12/rules-views.html
> Description:
>
> Nowhere in the documentation is mentioned that rules can only be made on
> tables without dropped columns and, much to my suprise, on empty tables
> only. I wanted to use rules on existing tables to cater for
> column-redaction, but this seems only possible by creating a new (empty)
> table for all user to use and to hide the original table from everyone.
> 1. the documentation should state this (and not start with an example of use
> of rules in views, which is a special case, I though).
> 2. the implementation should fix the only-on-empty tables issue (avoiding
> having to change the documentation).
I just tried, and both rules on columns with dropped columns and
rules on non-empty tables can be created and used without problems.
Perhaps you are using a mutilated fork of PostgreSQL.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-09-03 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 08:44 create rule PG Doc comments form <noreply@postgresql.org>
2021-09-03 13:28 ` Laurenz Albe <laurenz.albe@cybertec.at>
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