Re: BUG #13513: Turning a table into a view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Piergiorgio Buongiovanni <p(dot)buongiovanni(at)net-international(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13513: Turning a table into a view
Date: 2015-07-22 13:42:15
Message-ID: 17598.1437572535@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Andres Freund <andres(at)anarazel(dot)de> writes:
> You can probably work around the problem by inserting a VACUUM
> tbl_becoming_view; before the CREATE RULE. IIRC that should "recompute"
> relhastriggers.

Dunno, I think vacuum does update relhasindexes, but there would be no
reason for it to think about relhastriggers.

As you said upthread, this is not considered a supported feature; it's
something we accept in a very narrow set of cases for pg_dump's benefit.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2015-07-22 13:44:18 Re: BUG #13513: Turning a table into a view
Previous Message Andres Freund 2015-07-22 10:16:19 Re: BUG #13513: Turning a table into a view