Re: Odd results in SELECT

From: Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Philip Warner <pjw(at)rhyme(dot)com(dot)au>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Odd results in SELECT
Date: 2001-05-11 12:42:22
Message-ID: Pine.LNX.4.21.0105111433340.21854-102000@pc10.radnoti-szeged.sulinet.hu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 10 May 2001, Tom Lane wrote:

> Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> > Can anyone suggest why this might be happening (I think it's in 7.1b4):
>
> Can't duplicate in current sources:
>
> regression=# SELECT definition as viewdef,
> regression-# (select oid from pg_rewrite where
> regression(# rulename='_RETstreet') as view_oid
> regression-# from pg_views where viewname = 'street';
> viewdef
> | view_oid
> -------------------------------------------------------------------------------------------------+----------
> SELECT r.name, r.thepath, c.cname FROM ONLY road r, real_city c WHERE (c.outline ## r.thepath); | 4001276
> (1 row)
>
> regression=# SELECT definition as viewdef,
> regression-# (select oid from pg_rewrite where
> regression(# rulename='_RET' || 'street') as view_oid
> regression-# from pg_views where viewname = 'street';
> viewdef
> | view_oid
> -------------------------------------------------------------------------------------------------+----------
> SELECT r.name, r.thepath, c.cname FROM ONLY road r, real_city c WHERE (c.outline ## r.thepath); | 4001276
> (1 row)
>
> What does EXPLAIN show for your two queries? (Maybe you'd better make
> it EXPLAIN VERBOSE.)
I attached both.

Kov\'acs, Zolt\'an
kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu
http://www.math.u-szeged.hu/~kovzol
ftp://pc10.radnoti-szeged.sulinet.hu/home/kovacsz

Attachment Content-Type Size
exp-bad.out application/octet-stream 3.3 KB
exp-good.out application/octet-stream 3.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jon Lapham 2001-05-11 13:05:06 Re: Problem with a rule on upgrade to v7.1.1
Previous Message Zeugswetter Andreas SB 2001-05-11 12:16:31 AW: WAL and raw devices (was: volume management)