pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rick Delaney <rick@consumercontact.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jan Wieck <wieck@debis.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Calculation dependencies in views
Date: Thu, 06 Jan 2000 14:42:05 -0500
Message-ID: <3874F00D.F6A504B9@consumercontact.com> (raw)
References: <38728CE2.C1756D3E@consumercontact.com>
	<3872987B.C289AB59@debis.com>
	<3873A662.37B94F7E@consumercontact.com>
	<3873BC4C.3D4E4BCC@debis.com>
	<3873D036.5A2A9B18@consumercontact.com>
	<3873DD6E.BBBF5813@debis.com>
	<19740.947123224@sss.pgh.pa.us>

Tom Lane wrote:
> 
> Jan Wieck <wieck@debis.com> writes:
> 
> >      These two examples will result in exactly the same querytree after
> >      rewriting, if you SELECT from v1. The second needs two passes in the
> >      rewriter, but that's the only difference.
> 
> Actually, there's another big difference: the stored rule plan string
> for v1 in the second case is shorter than it is in the first case,
> because the a+b additions don't show up as operator nodes in v1's
> definition in the second case.  (If the references to v1_sub were
> flattened out before the rule were stored, it wouldn't take two passes
> of rewriting to expand the rule.  But they aren't, and it does ;-).)

Interesting.  Anyway, I grok it now.  Thank you both for all your help.

Cheers,

--Rick



view thread (10+ messages)

Message-ID: <3874F00D.F6A504B9@consumercontact.com>
Permalink:  ../3874F00D.F6A504B9@consumercontact.com/
Also on:    postgresql.org/message-id/3874F00D.F6A504B9@consumercontact.com

 · 

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: rick@consumercontact.com, tgl@sss.pgh.pa.us, wieck@debis.com
  Subject: Re: [SQL] Calculation dependencies in views
  In-Reply-To: <3874F00D.F6A504B9@consumercontact.com>
  References: <38728CE2.C1756D3E@consumercontact.com> <3872987B.C289AB59@debis.com> <3873A662.37B94F7E@consumercontact.com> <3873BC4C.3D4E4BCC@debis.com> <3873D036.5A2A9B18@consumercontact.com> <3873DD6E.BBBF5813@debis.com> <19740.947123224@sss.pgh.pa.us> <3874F00D.F6A504B9@consumercontact.com>

* 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