pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: pgsql-performance@postgresql.org
Subject: Re: Question about Generating Possible Plans by the planner/optimizer
Date: Sat, 7 Aug 2004 03:11:48 +0200
Message-ID: <20040807011148.GA6617@uio.no> (raw)
In-Reply-To: <BAY7-F23XUIEAOeIiGX00008855@hotmail.com>
References: <BAY7-F23XUIEAOeIiGX00008855@hotmail.com>

On Fri, Aug 06, 2004 at 07:28:38PM -0500, sandra ruiz wrote:
> in the docummentation about the planer it says:
> 
> "It first combines all possible ways of scanning and joining the relations 
> that appear in a query"
> 
> I would like to know if there's a time limit to do that or if it just scans 
> ALL the posibilities until it finishes..no matter the time it takes..

Depends; if you join a lot of tables, it stops doing an exhaustive search and
goes for genetic optimization instead:

  http://www.postgresql.org/docs/7.4/static/geqo.html

/* Steinar */
-- 
Homepage: http://www.sesse.net/



view thread (2+ messages)

Message-ID: <20040807011148.GA6617@uio.no>
Permalink:  ../20040807011148.GA6617@uio.no/
Also on:    postgresql.org/message-id/20040807011148.GA6617@uio.no

 · 

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-performance@postgresql.org
  Cc: sgunderson@bigfoot.com
  Subject: Re: Question about Generating Possible Plans by the planner/optimizer
  In-Reply-To: <20040807011148.GA6617@uio.no>

* 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