pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pantelis Theodosiou <ypercube@gmail.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Lukas Eder <lukas.eder@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5
Date: Wed, 11 Oct 2017 11:03:01 -0400
Message-ID: <10402.1507734181@sss.pgh.pa.us> (raw)
In-Reply-To: <CAE3TBxyXs8zLu_9a8Cfd5w8F=Y6X4VjyOJ5uMx4UwvYAzBXjTQ@mail.gmail.com>
References: <CAB4ELO5RZhOamuT9Xsf72ozbenDLLXZKSk07FiSVsuJNZB861A@mail.gmail.com>
	<CAFj8pRDCxyWR9O7+NUDjOihsqxz94hLqYtRxDitp9_Yb-EY6XA@mail.gmail.com>
	<CAE3TBxyXs8zLu_9a8Cfd5w8F=Y6X4VjyOJ5uMx4UwvYAzBXjTQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Pantelis Theodosiou <ypercube@gmail.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


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



view thread (12+ messages)  latest in thread

Message-ID: <10402.1507734181@sss.pgh.pa.us>
Permalink:  ../10402.1507734181@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10402.1507734181@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ypercube@gmail.com, pavel.stehule@gmail.com, lukas.eder@gmail.com
  Subject: Re: Combination of ordered-set aggregate function terminates JDBC connection on PostgreSQL 9.6.5
  In-Reply-To: <10402.1507734181@sss.pgh.pa.us>
  References: <CAB4ELO5RZhOamuT9Xsf72ozbenDLLXZKSk07FiSVsuJNZB861A@mail.gmail.com> <CAFj8pRDCxyWR9O7+NUDjOihsqxz94hLqYtRxDitp9_Yb-EY6XA@mail.gmail.com> <CAE3TBxyXs8zLu_9a8Cfd5w8F=Y6X4VjyOJ5uMx4UwvYAzBXjTQ@mail.gmail.com> <10402.1507734181@sss.pgh.pa.us>

* 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