pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Piergiorgio Buongiovanni <p.buongiovanni@net-international.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13513: Turning a table into a view
Date: Wed, 22 Jul 2015 09:42:15 -0400
Message-ID: <17598.1437572535@sss.pgh.pa.us> (raw)
In-Reply-To: <20150722101619.GF5053@awork2.anarazel.de>
References: <20150722082538.9705.21746@wrigleys.postgresql.org>
	<20150722085906.GE5053@awork2.anarazel.de>
	<416591758.338151.1437558796979.JavaMail.zimbra@net-international.com>
	<20150722101619.GF5053@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@anarazel.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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <17598.1437572535@sss.pgh.pa.us>
Permalink:  ../17598.1437572535@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17598.1437572535@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 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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, p.buongiovanni@net-international.com
  Subject: Re: BUG #13513: Turning a table into a view
  In-Reply-To: <17598.1437572535@sss.pgh.pa.us>
  References: <20150722082538.9705.21746@wrigleys.postgresql.org> <20150722085906.GE5053@awork2.anarazel.de> <416591758.338151.1437558796979.JavaMail.zimbra@net-international.com> <20150722101619.GF5053@awork2.anarazel.de> <17598.1437572535@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