pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Adapt python regression tests to 69f4b9c85f16.
Date: Thu, 19 Jan 2017 14:23:26 -0800
Message-ID: <20170119222326.cvutdjbampywitt6@alap3.anarazel.de> (raw)
In-Reply-To: <22891.1484791792@sss.pgh.pa.us>
References: <E1cU0KI-0002Nx-FA@gemulon.postgresql.org>
	<18876.1484786092@sss.pgh.pa.us>
	<20170119003933.vkgng32dfw56gw3m@alap3.anarazel.de>
	<21830.1484790567@sss.pgh.pa.us>
	<22891.1484791792@sss.pgh.pa.us>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Hi,

On 2017-01-18 21:09:52 -0500, Tom Lane wrote:
> I wrote:
> > If you don't want an ORDER BY, maybe turn off enable_hashagg for
> > these queries?  But you'll get the same plan either way.
> 
> Or not ... I forgot it has a better model of the rowcount changes now:

> regression=# set enable_hashagg TO 0;
> SET
> regression=# explain SELECT few.dataa, count(*), min(id), max(id), unnest('{1,1,3}'::int[]) FROM few WHERE few.id = 1 GROUP BY few.dataa, unnest('{1,1,3}'::int[]);
>                               QUERY PLAN                               
> -----------------------------------------------------------------------
>  GroupAggregate  (cost=39.94..45.99 rows=4 width=52)
>    Group Key: dataa, (unnest('{1,1,3}'::integer[]))
>    ->  Sort  (cost=39.94..40.94 rows=400 width=40)
>          Sort Key: dataa, (unnest('{1,1,3}'::integer[]))
>          ->  ProjectSet  (cost=0.00..22.66 rows=400 width=40)
>                ->  Seq Scan on few  (cost=0.00..20.62 rows=4 width=36)
>                      Filter: (id = 1)
> (7 rows)

> So which plan would you rather test?

That looks good to me.  Will add.

Thanks,

Andres


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (6+ messages)

Message-ID: <20170119222326.cvutdjbampywitt6@alap3.anarazel.de>
Permalink:  ../20170119222326.cvutdjbampywitt6@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170119222326.cvutdjbampywitt6@alap3.anarazel.de

 · 

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-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Adapt python regression tests to 69f4b9c85f16.
  In-Reply-To: <20170119222326.cvutdjbampywitt6@alap3.anarazel.de>
  References: <E1cU0KI-0002Nx-FA@gemulon.postgresql.org> <18876.1484786092@sss.pgh.pa.us> <20170119003933.vkgng32dfw56gw3m@alap3.anarazel.de> <21830.1484790567@sss.pgh.pa.us> <22891.1484791792@sss.pgh.pa.us> <20170119222326.cvutdjbampywitt6@alap3.anarazel.de>

* 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