Re: [SQL] primary key view failure

From: "Ross J(dot) Reedstrom" <reedstrm(at)wallace(dot)ece(dot)rice(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: rob caSSon <rob(at)styro(dot)lib(dot)muohio(dot)edu>, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] primary key view failure
Date: 1999-08-05 16:09:08
Message-ID: 19990805110908.C7495@wallace.ece.rice.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, Aug 05, 1999 at 10:26:16AM -0400, Tom Lane wrote:
> rob caSSon <rob(at)styro(dot)lib(dot)muohio(dot)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?
>
> regards, tom lane

I just got the same results as Rob, with a 6.5.0 install, and a hopefully
helpful error message:

idas_proto=> SELECT * FROM blah;
relname|attname
-------+-------
(0 rows)

idas_proto=> \d blah
ERROR: get_ruledef of blah: unknown node type 111 in check_if_rte_used()
idas_proto=> select version();
version
--------------------------------------------------------------
PostgreSQL 6.5.0 on i686-pc-linux-gnu, compiled by gcc 2.7.2.3
(1 row)

idas_proto=>

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

Ross

P.S. Rob, good show, using an example pulling from the system tables: makes it
really easy for others to test.

--
Ross J. Reedstrom, Ph.D., <reedstrm(at)rice(dot)edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message BOUARD, Fabrice 1999-08-05 16:16:55 unsubscribe
Previous Message Tom Lane 1999-08-05 16:06:18 Re: [SQL] Array of integer