Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYIX6-0007yZ-KG for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2015 18:17:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YYIX5-00048N-0u for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Mar 2015 18:17:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YYFt9-0000qC-21 for pgsql-bugs@postgresql.org; Wed, 18 Mar 2015 15:28:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YYFt5-0003w4-Eo for pgsql-bugs@postgresql.org; Wed, 18 Mar 2015 15:28:05 +0000 MIME-Version: 1.0 Subject: BUG #12877: Altitude not respected in order by and group by To: pgsql-bugs@postgresql.org From: m8r-444fqh@mailinator.com Date: Wed, 18 Mar 2015 15:27:16 +0000 Message-ID: <20150318152716.2739.45328@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 12877 Logged by: m8r-444fqh Email address: m8r-444fqh@mailinator.com PostgreSQL version: 9.3.4 Operating system: centos Description: -- "PostgreSQL 9.3.4 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-4), 64-bit" -- Postgis: "2.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1" create table v001 ( edge bigint, vertex geometry(PointZ,4326) ); insert into v001 values ( 19757751000,st_geomfromtext('POINT Z (-87.63394 41.8868 0)',4326)), ( 19757752000,st_geomfromtext('POINT Z (-87.63394 41.8868 0)',4326)), ( 19757763000,st_geomfromtext('POINT Z (-87.63394 41.8868 0)',4326)), ( 19791042000,st_geomfromtext('POINT Z (-87.63394 41.8868 -1)',4326)), ( 721078263000,st_geomfromtext('POINT Z (-87.63394 41.8868 0)',4326)), ( 721078269000,st_geomfromtext('POINT Z (-87.63394 41.8868 -1)',4326)); -- 1.Query, fails to sort altitude: select edge, st_astext( vertex ) from v001 order by vertex,edge; -- 1.Results: -- 19757751000;"POINT Z (-87.63394 41.8868 0)" -- 19757752000;"POINT Z (-87.63394 41.8868 0)" -- 19757763000;"POINT Z (-87.63394 41.8868 0)" -- 19791042000;"POINT Z (-87.63394 41.8868 -1)" -- 721078263000;"POINT Z (-87.63394 41.8868 0)" -- 721078269000;"POINT Z (-87.63394 41.8868 -1)" -- 2.Query, fails to respect altitude: select array_agg( edge ) as edges, st_astext(vertex) from v001 group by vertex; -- 2.Results: -- "{19757751000,19757752000,19757763000,19791042000,721078263000,721078269000}";"POINT Z (-87.63394 41.8868 0)" -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs