Skip site navigation (1) Skip section navigation (2)

Re: bug in explain - core dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: bug in explain - core dump
Date: 2010-10-25 18:26:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> CREATE TABLE foo(a int, b int);
> INSERT INTO foo SELECT (random()*10000)::int, (random()*10)::int from generate_series(1,100000);
> ANALYZE foo;
> CREATE INDEX ON foo(a,b);
> CREATE INDEX ON foo(b,a);

> EXPLAIN SELECT max(a), b 
>            FROM foo, generate_series(0,30) g(v) 
>           WHERE a = (SELECT max(a) FROM foo WHERE b = v) 
>           GROUP BY b;

Fixed, thanks.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Jeff DavisDate: 2010-10-25 18:27:29
Subject: Re: Range Types, discrete and/or continuous
Previous:From: Joshua D. DrakeDate: 2010-10-25 18:20:33
Subject: Re: Postgres insert performance and storage requirement compared to Oracle

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group