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: Rodrigo Rezende <Rodrigo.Rezende@hortolandia.marelli.it>
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] Select & Tables X Select & Views
Date: Fri, 18 Feb 2000 12:26:31 -0600
Message-ID: <20000218122631.C12742@rice.edu> (raw)
In-Reply-To: <38AD95C6.C8020910@hortolandia.marelli.it>
References: <38AD95C6.C8020910@hortolandia.marelli.it>

Rodrigo - 
Are you reporting a bug, or looking for advice? Here's how it works
for me:

I ran this script:

create table taba (a1 int);
create table tabb (b1 char);
insert into taba (1);
insert into taba values (1);
insert into taba values (2);
insert into taba values (3);
insert into tabb values ('a');
insert into tabb values ('b');
create view viewb as select * from tabb;

And here are the tests:
test=> select version();
version                                                       
--------------------------------------------------------------
PostgreSQL 6.5.0 on i686-pc-linux-gnu, compiled by gcc 2.7.2.3
(1 row)

test=> select * from taba, tabb;
a1|b1
--+--
 1|a 
 2|a 
 3|a 
 1|b 
 2|b 
 3|b 
(6 rows)

test=> select * from taba, viewb;
a1|b1
--+--
 1|a 
 2|a 
 3|a 
 1|b 
 2|b 
 3|b 
(6 rows)

test=> 

So, it looks like your view definition is broken, or your using an
old version of pgsql.

Ross
-- 
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 (4+ messages)  latest in thread

Message-ID: <20000218122631.C12742@rice.edu>
Permalink:  ../20000218122631.C12742@rice.edu/
Also on:    postgresql.org/message-id/20000218122631.C12742@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, Rodrigo.Rezende@hortolandia.marelli.it
  Subject: Re: [SQL] Select & Tables X Select & Views
  In-Reply-To: <20000218122631.C12742@rice.edu>
  References: <38AD95C6.C8020910@hortolandia.marelli.it> <20000218122631.C12742@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