Re: [SQL] primary key view failure - Mailing list pgsql-sql

From Tom Lane
Subject Re: [SQL] primary key view failure
Date
Msg-id 4926.933870574@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] primary key view failure  ("Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>)
Responses Re: [SQL] primary key view failure
List pgsql-sql
"Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu> writes:
> On Thu, Aug 05, 1999 at 10:26:16AM -0400, Tom Lane wrote:
>> rob caSSon <rob@styro.lib.muohio.edu> writes:
>>>> i have a perfectly valid sql statement that returns expected results, but
>>>> when i create a view based on the same sql, i get 0.
>> 
>> Your example seems to work fine for me with current sources.
>> What version are you running?

> I just got the same results as Rob, with a 6.5.0 install,

OK, I went back and tried it with 6.5.1 and indeed see the same failure
as Rob.  So it's something that's been fixed in the current sources.
I dunno what --- but I did a *lot* of work on the parser's array support
last month, and that might have something to do with it...

> and a hopefully helpful error message:
> idas_proto=> \d blah
> ERROR:  get_ruledef of blah: unknown node type 111 in check_if_rte_used()

That one is still there in current sources.  Will clean it up.

> So, is this fixed in 6.5.1, or is it something that needs backporting from
> current?

A backport from current may not be too practical, unless someone wants
to try to identify exactly what's failing in 6.5.*.  I bet it's an array
issue, but beyond that I'm clueless.
        regards, tom lane


pgsql-sql by date:

Previous
From: "BOUARD, Fabrice"
Date:
Subject: unsubscribe
Next
From: Matthew Hagerty
Date:
Subject: Query for duplicates.