Re: Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pantelis Theodosiou <ypercube(at)gmail(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Lukas Eder <lukas(dot)eder(at)gmail(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5
Date: 2017-10-11 15:03:01
Message-ID: 10402.1507734181@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Pantelis Theodosiou <ypercube(at)gmail(dot)com> writes:
> - it can be seen with only rank and dense_rank, with any order by (asc,
> desc, null):
> select
> rank(1) within group (order by a),
> dense_rank(1) within group (order by a)
> from (values (1)) t(a) ;

Check ...

> - but it doesn't happen if (values (1)) is replaced with a single row
> table.

It did for me. I'm using a debug-enabled build, which typically helps
to make this sort of thing more reproducible.

regression=# create table t(a int) ;
CREATE TABLE
regression=# insert into t values(1);
INSERT 0 1
regression=# select
rank(1) within group (order by a),
dense_rank(1) within group (order by a)
from t;
server closed the connection unexpectedly

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-10-11 17:00:18 Re: BUG #14830: Missed NOTIFications, PostgreSQL 9.1.24
Previous Message Pantelis Theodosiou 2017-10-11 14:39:25 Re: Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5