pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #12877: Altitude not respected in order by and group by
2+ messages / 2 participants
[nested] [flat]
* BUG #12877: Altitude not respected in order by and group by
@ 2015-03-18 15:27 m8r-444fqh@mailinator.com
0 siblings, 1 reply; 2+ messages in thread
From: m8r-444fqh@mailinator.com @ 2015-03-18 15:27 UTC (permalink / raw)
To: pgsql-bugs
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #12877: Altitude not respected in order by and group by
@ 2015-03-18 18:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: m8r-444fqh@mailinator.com
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2015-03-18 18:19 UTC (permalink / raw)
To: m8r-444fqh@mailinator.com; +Cc: pgsql-bugs
m8r-444fqh@mailinator.com writes:
> -- 1.Query, fails to sort altitude:
> select edge, st_astext( vertex ) from v001
> order by vertex,edge;
> -- 2.Query, fails to respect altitude:
> select array_agg( edge ) as edges, st_astext(vertex) from v001
> group by vertex;
It's not entirely clear to me that those *should* do something with
altitude, but in any case this is not a Postgres issue it's a Postgis
issue. You need to take it up on the postgis mailing lists.
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] 2+ messages in thread
end of thread, other threads:[~2015-03-18 18:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-03-18 15:27 BUG #12877: Altitude not respected in order by and group by m8r-444fqh@mailinator.com
2015-03-18 18:19 ` Tom Lane <tgl@sss.pgh.pa.us>
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