pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7703: Error with partitioning with distinct over aggregate
3+ messages / 3 participants
[nested] [flat]
* BUG #7703: Error with partitioning with distinct over aggregate
@ 2012-11-25 23:21 maxim.boguk@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: maxim.boguk@gmail.com @ 2012-11-25 23:21 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 7703
Logged by: Maksym Boguk
Email address: maxim.boguk@gmail.com
PostgreSQL version: 9.2.1
Operating system: Any
Description:
Simple test case:
test=# create table test (id serial);
NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for serial
column "test.id"
CREATE TABLE
test=# create index test_id_key on test(id);
CREATE INDEX
test=# create table test_part_1 (like test including all) INHERITS (test);
NOTICE: merging column "id" with inherited definition
CREATE TABLE
test=# explain analyze select distinct min(id) from test;
ERROR: failed to re-find MinMaxAggInfo record
PS: without partioning or without index over id - no error. Tested 9.0.*
versions is not affected by bug, but 9.2.1 and 9.1.6 is.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7703: Error with partitioning with distinct over aggregate
@ 2012-11-26 18:01 Tom Lane <tgl@sss.pgh.pa.us>
parent: maxim.boguk@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2012-11-26 18:01 UTC (permalink / raw)
To: maxim.boguk@gmail.com; +Cc: pgsql-bugs
maxim.boguk@gmail.com writes:
> test=# create table test (id serial);
> NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for serial
> column "test.id"
> CREATE TABLE
> test=# create index test_id_key on test(id);
> CREATE INDEX
> test=# create table test_part_1 (like test including all) INHERITS (test);
> NOTICE: merging column "id" with inherited definition
> CREATE TABLE
> test=# explain analyze select distinct min(id) from test;
> ERROR: failed to re-find MinMaxAggInfo record
Fixed, thanks for the report.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7703: Error with partitioning with distinct over aggregate
@ 2012-11-27 00:14 Maxim Boguk <maxim.boguk@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Maxim Boguk @ 2012-11-27 00:14 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On Tue, Nov 27, 2012 at 5:01 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> maxim.boguk@gmail.com writes:
>> test=# create table test (id serial);
>> NOTICE: CREATE TABLE will create implicit sequence "test_id_seq" for serial
>> column "test.id"
>> CREATE TABLE
>> test=# create index test_id_key on test(id);
>> CREATE INDEX
>> test=# create table test_part_1 (like test including all) INHERITS (test);
>> NOTICE: merging column "id" with inherited definition
>> CREATE TABLE
>> test=# explain analyze select distinct min(id) from test;
>> ERROR: failed to re-find MinMaxAggInfo record
>
> Fixed, thanks for the report.
>
> regards, tom lane
Thank you very much.
PS: I know that the query sounds stupid, but most CMS/ORM
unfortunately could produce unlimited amount of strange/stupid
queries.
--
Maxim Boguk
Senior Postgresql DBA
http://www.postgresql-consulting.ru/
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-11-27 00:14 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-11-25 23:21 BUG #7703: Error with partitioning with distinct over aggregate maxim.boguk@gmail.com
2012-11-26 18:01 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-11-27 00:14 ` Maxim Boguk <maxim.boguk@gmail.com>
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