From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill MacArthur <webmaster@dhs-club.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: table row type and query-specified row type do not match
Date: Thu, 08 Mar 2012 16:25:51 -0500
Message-ID: <7576.1331241951@sss.pgh.pa.us> (raw)
In-Reply-To: <4F590B2A.1030709@dhs-club.com>
References: <4F590B2A.1030709@dhs-club.com>
Bill MacArthur <webmaster@dhs-club.com> writes:
> Perhaps this issue has been resolved in higher sub-versions or in 9.1?
No, seems to be just the same in HEAD :-(
> In summary, the issue revolves around the data type of a column being changed, but the data type in a dependent rule on another table does not. Does the data type have to be embedded in the rule?
Yeah, it does, or at least the implications of not doing so would amount
to a ground-up redesign, as well as moving a lot of cycles out of rule
creation and into every rule use.
What I would have expected to happen is for the ALTER TABLE to throw an
error telling you it couldn't cope with updating the rule, and that
you'd need to fix that manually. There is such a test involving views;
not sure why it's not catching this rule.
regards, tom lane
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, webmaster@dhs-club.com
Subject: Re: table row type and query-specified row type do not match
In-Reply-To: <7576.1331241951@sss.pgh.pa.us>
References: <4F590B2A.1030709@dhs-club.com> <7576.1331241951@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