@@ -332,7 +332,7 @@ RESET enable_bitmapscan;
332332SET enable_seqscan = off;
333333DROP INDEX tsts_idx;
334334CREATE INDEX tsts_id_idx ON tsts USING rum (t rum_tsvector_addon_ops, id, d)
335- WITH (attach = 'd', to = 't');
335+ WITH (attach = 'd', to = 't');
336336EXPLAIN (costs off)
337337SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 1::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
338338 QUERY PLAN
@@ -344,10 +344,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 1::int ORDER BY d <=> '2016-0
344344(4 rows)
345345
346346SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 1::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
347- id | d
348- ----+---
349- (0 rows)
350-
347+ ERROR: doesn't support order by over pass-by-reference column
351348EXPLAIN (costs off)
352349SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 355::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
353350 QUERY PLAN
@@ -359,11 +356,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 355::int ORDER BY d <=> '2016
359356(4 rows)
360357
361358SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 355::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
362- id | d
363- -----+---------------------------------
364- 355 | Mon May 16 14:21:22.326724 2016
365- (1 row)
366-
359+ ERROR: doesn't support order by over pass-by-reference column
367360EXPLAIN (costs off)
368361SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2016-05-11 11:21:22.326724'::timestamp ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
369362 QUERY PLAN
@@ -375,11 +368,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2016-05-11 11:21:22.326724'::
375368(4 rows)
376369
377370SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2016-05-11 11:21:22.326724'::timestamp ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
378- id | d
379- -----+---------------------------------
380- 232 | Wed May 11 11:21:22.326724 2016
381- (1 row)
382-
371+ ERROR: doesn't support order by over pass-by-reference column
383372EXPLAIN (costs off)
384373SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2000-05-01'::timestamp ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
385374 QUERY PLAN
@@ -391,7 +380,5 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2000-05-01'::timestamp ORDER
391380(4 rows)
392381
393382SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2000-05-01'::timestamp ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
394- id | d
395- ----+---
396- (0 rows)
383+ ERROR: doesn't support order by over pass-by-reference column
397384