pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Mirosław <marcin@mejor.pl>
To: Szymon Guz <mabewlun@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: [planner] Ignore "order by" in subselect if parrent do count(*)
Date: Thu, 01 Mar 2012 13:19:03 +0100
Message-ID: <4F4F6937.4090200@mejor.pl> (raw)
In-Reply-To: <CAFjNrYu7TiRXZY31Phcb-cfXkBKEGm4FvGbZ2nn31e15n_o1cg@mail.gmail.com>
References: <4F4F6158.7060200@mejor.pl>
	<CAFjNrYvECD+kDVfo76s8zHsfb0E0G7CkGH2boyHT7rgpkFBS7Q@mail.gmail.com>
	<4F4F6550.4010705@mejor.pl>
	<CAFjNrYu7TiRXZY31Phcb-cfXkBKEGm4FvGbZ2nn31e15n_o1cg@mail.gmail.com>

W dniu 01.03.2012 13:09, Szymon Guz pisze:
> Could you provide the postgres version and the structure of
> users_profile table (with indexes)?

Argh, i forgot about version. It's postgresql-9.1.3.
I don't think structre of users_profile is important here. Me idea is
let planner ignore sorting completly. I don't want to have sort quicker
(in this case, surely;)), i'd like to skip sorting completly because it
doesn't influence for query result.
Table isn't "real life", it only demonstrates than planner sometimes can
safely skip some steps.
Regards,
Marcin



view thread (9+ messages)  latest in thread

Message-ID: <4F4F6937.4090200@mejor.pl>
Permalink:  ../4F4F6937.4090200@mejor.pl/
Also on:    postgresql.org/message-id/4F4F6937.4090200@mejor.pl

 · 

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: marcin@mejor.pl, mabewlun@gmail.com
  Subject: Re: [planner] Ignore "order by" in subselect if parrent do count(*)
  In-Reply-To: <4F4F6937.4090200@mejor.pl>

* 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