pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Meszaros Attila <tilla@draconis.elte.hu>
Cc: pgsql-sql@postgresql.org
Subject: Re: "AND", "OR" and Materialize :((((
Date: Sun, 26 Aug 2001 11:51:23 -0400
Message-ID: <18622.998841083@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.21.0108261437150.22782-100000@draconis.csoma.elte.hu>
References: <Pine.LNX.4.21.0108261437150.22782-100000@draconis.csoma.elte.hu>

Meszaros Attila <tilla@draconis.elte.hu> writes:
> WHY SHALL IT MATERIALIZE A CONSTANT RESULT IN A LOOP OF 120000 TIMES ??
> [it would be enough to materialize only once,

Which in fact is exactly what the materialize node is for.  The reported
costs are pretty bogus, but AFAICT the plan is the right thing.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <18622.998841083@sss.pgh.pa.us>
Permalink:  ../18622.998841083@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18622.998841083@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tilla@draconis.elte.hu
  Subject: Re: "AND", "OR" and Materialize :((((
  In-Reply-To: <18622.998841083@sss.pgh.pa.us>

* 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