pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@wallace.ece.rice.edu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: rob caSSon <rob@styro.lib.muohio.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] primary key view failure
Date: Thu, 5 Aug 1999 11:09:08 -0500
Message-ID: <19990805110908.C7495@wallace.ece.rice.edu> (raw)
In-Reply-To: <4102.933863176@sss.pgh.pa.us>
References: <Pine.LNX.3.96.990805095008.12775A-100000@styro.lib.muohio.edu>
	<4102.933863176@sss.pgh.pa.us>

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?
> 
> 			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@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005



view thread (8+ messages)  latest in thread

Message-ID: <19990805110908.C7495@wallace.ece.rice.edu>
Permalink:  ../19990805110908.C7495@wallace.ece.rice.edu/
Also on:    postgresql.org/message-id/19990805110908.C7495@wallace.ece.rice.edu

 · 

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-sql@postgresql.org
  Cc: reedstrm@wallace.ece.rice.edu, tgl@sss.pgh.pa.us, rob@styro.lib.muohio.edu
  Subject: Re: [SQL] primary key view failure
  In-Reply-To: <19990805110908.C7495@wallace.ece.rice.edu>
  References: <Pine.LNX.3.96.990805095008.12775A-100000@styro.lib.muohio.edu> <4102.933863176@sss.pgh.pa.us> <19990805110908.C7495@wallace.ece.rice.edu>

* 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