aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-09-12 00:05:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-09-12 00:05:07 +0000
commit3a3c2cd59cabb42d07200e3210a772552a9dc856 (patch)
treeca208b0a755749a02bdb642a35dabfa8804a413f /src/backend/access/gist/gistxlog.c
parent96ca52dbe80a90d191eafbc656f03a33e85107a8 (diff)
downloadpostgresql-3a3c2cd59cabb42d07200e3210a772552a9dc856.tar.gz
postgresql-3a3c2cd59cabb42d07200e3210a772552a9dc856.zip
Fix assertion failure when a SELECT DISTINCT ON expression is volatile.
In this case we generate two PathKey references to the expression (one for DISTINCT and one for ORDER BY) and they really need to refer to the same EquivalenceClass. However get_eclass_for_sort_expr was being overly paranoid and creating two different EC's. Correct behavior is to use the SortGroupRef index to decide whether two references to volatile expressions that are equal() (ie textually equivalent) should be considered the same. Backpatch to 8.4. Possibly this should be changed in 8.3 as well, but I'll refrain in the absence of evidence of a visible failure in that branch. Per bug #5049.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions