pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G. Johnston <david.g.johnston@gmail.com>
To: Venkatesan, Sekhar <sekhar.venkatesan@emc.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Question on PostgreSQL DB behavior w.r.t JOIN and sort order.
Date: Mon, 8 Feb 2016 23:00:55 -0700
Message-ID: <CAKFQuwaKBdk3MwnqifhttE3TrDbWwYtmrMOTi2WizceTQ6adWA@mail.gmail.com> (raw)
In-Reply-To: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65BF1C@MX105CL01.corp.emc.com>
References: <F84DE43FDACD4C45AA84E2DA016FAE2F1C65BE54@MX105CL01.corp.emc.com>
	<21082.1454994009@sss.pgh.pa.us>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65BEC8@MX105CL01.corp.emc.com>
	<CAKFQuwbye-t24D59BUR05YyUtuaiFgCQWHMVq6qcz0axsKrT=A@mail.gmail.com>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65BF07@MX105CL01.corp.emc.com>
	<CAKFQuwbmAtkv8tHq3CuiRH0encj59SRHBMAMezW1x-6CVauLnw@mail.gmail.com>
	<F84DE43FDACD4C45AA84E2DA016FAE2F1C65BF1C@MX105CL01.corp.emc.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>

On Monday, February 8, 2016, Venkatesan, Sekhar <sekhar.venkatesan@emc.com>
wrote:

> Yes. is there an option/configuration to tell the postgres
> optimizer/planner to generate plans to include the sort order instead of
> speed?
>
No.  The planner chooses based upon least cost of the exact query given to
it.  If that query does not have order by the system will not guarantee any
specific output order.

David J.

view thread (17+ messages)  latest in thread

Message-ID: <CAKFQuwaKBdk3MwnqifhttE3TrDbWwYtmrMOTi2WizceTQ6adWA@mail.gmail.com>
Permalink:  ../CAKFQuwaKBdk3MwnqifhttE3TrDbWwYtmrMOTi2WizceTQ6adWA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKFQuwaKBdk3MwnqifhttE3TrDbWwYtmrMOTi2WizceTQ6adWA@mail.gmail.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: david.g.johnston@gmail.com, sekhar.venkatesan@emc.com, tgl@sss.pgh.pa.us
  Subject: Re: Question on PostgreSQL DB behavior w.r.t JOIN and sort order.
  In-Reply-To: <CAKFQuwaKBdk3MwnqifhttE3TrDbWwYtmrMOTi2WizceTQ6adWA@mail.gmail.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