pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedWrong result of <select distinct geometry from XXX>
2+ messages / 2 participants
[nested] [flat]
* Wrong result of <select distinct geometry from XXX>
@ 2016-04-06 06:04 yuanrui <yuanrui@pset.suntec.net>
0 siblings, 1 reply; 2+ messages in thread
From: yuanrui @ 2016-04-06 06:04 UTC (permalink / raw)
To: pgsql-bugs
Hi,
Sorry to bother.
I have encountered the following problem, please help me.
The attached file is a backup file of two geometries, the table name is
<temp_union_test>, the column of geometry is <the_geom>.
when I execute < select distinct the_geom from temp_union_test >, there is
only one row returned, but actually, the two geometries is totally
different.
I have tried this execution on PostgreSql 9.0 and PostgreSql 9.5, the
results is always the same.
Would you help me to solve this problem?
If you have any concern about it, I would be very appreciate it.
Thank you.
―――――――――
袁瑞
TEL:1626
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Attachments:
union_test_table.zip (application/x-zip-compressed, 5.3K) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Wrong result of <select distinct geometry from XXX>
@ 2016-04-06 20:22 Peter Geoghegan <pg@heroku.com>
parent: yuanrui <yuanrui@pset.suntec.net>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Geoghegan @ 2016-04-06 20:22 UTC (permalink / raw)
To: yuanrui <yuanrui@pset.suntec.net>; +Cc: pgsql-bugs
On Tue, Apr 5, 2016 at 11:04 PM, yuanrui <yuanrui@pset.suntec.net> wrote:
>
> Sorry to bother.
> I have encountered the following problem, please help me.
>
> The attached file is a backup file of two geometries, the table name is
> <temp_union_test>, the column of geometry is <the_geom>.
> when I execute < select distinct the_geom from temp_union_test >, there is
> only one row returned, but actually, the two geometries is totally
> different.
I think this might have something to do with weird legacy issues that
PostGIS has:
http://www.postgresql.org/message-id/etPan.559d8d4b.7c83e458.e975@Crane.local
This is basically a mistake that PostGIS made, but is now stuck with.
What does EXPLAIN show the plan as? Do you get a difference answer
when the plan is a hashAggregate instead of a unique + sort? You can
test this using "set enable_hashagg = off", or maybe "set enable_sort
= off" depending on the details (could be an index scan instead of a
sort for a unique node).
--
Peter Geoghegan
--
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:[~2016-04-06 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-06 06:04 Wrong result of <select distinct geometry from XXX> yuanrui <yuanrui@pset.suntec.net>
2016-04-06 20:22 ` Peter Geoghegan <pg@heroku.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