pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Joshua Uyehara <joshua.uyehara@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18178: New Restriction on "ON SELECT" rules on tables
Date: Fri, 03 Nov 2023 11:53:31 -0400
Message-ID: <3305563.1699026811@sss.pgh.pa.us> (raw)
In-Reply-To: <8a0dd07e617563892e727a8119f9a34f86524eb1.camel@cybertec.at>
References: <18178-05534d7064044d2d@postgresql.org>
	<3027424.1698934802@sss.pgh.pa.us>
	<CAOwkGA659Cyjc=1=X9pGhUnAxhq4xGvpj0PjNJ78cDY+aDWu=w@mail.gmail.com>
	<8a0dd07e617563892e727a8119f9a34f86524eb1.camel@cybertec.at>

Laurenz Albe <laurenz.albe@cybertec.at> writes:
> But I wonder if it would not be better to completely remove ON SELECT from the CREATE RULE
> command.  Attached is a patch that does that.

I don't think this is a great idea.  There are perhaps still pg_dump
scripts out there that use CREATE OR REPLACE RULE "_RETURN" to adjust
view definitions.

			regards, tom lane





view thread (8+ messages)

Message-ID: <3305563.1699026811@sss.pgh.pa.us>
Permalink:  ../3305563.1699026811@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3305563.1699026811@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, joshua.uyehara@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18178: New Restriction on "ON SELECT" rules on tables
  In-Reply-To: <3305563.1699026811@sss.pgh.pa.us>

* 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