@@ -332,7 +332,7 @@ RESET enable_bitmapscan;
332
332
SET enable_seqscan = off;
333
333
DROP INDEX tsts_idx;
334
334
CREATE 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');
336
336
EXPLAIN (costs off)
337
337
SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 1::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
338
338
QUERY PLAN
@@ -344,10 +344,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 1::int ORDER BY d <=> '2016-0
344
344
(4 rows)
345
345
346
346
SELECT 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
351
348
EXPLAIN (costs off)
352
349
SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 355::int ORDER BY d <=> '2016-05-16 14:21:25' LIMIT 5;
353
350
QUERY PLAN
@@ -359,11 +356,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND id = 355::int ORDER BY d <=> '2016
359
356
(4 rows)
360
357
361
358
SELECT 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
367
360
EXPLAIN (costs off)
368
361
SELECT 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;
369
362
QUERY PLAN
@@ -375,11 +368,7 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2016-05-11 11:21:22.326724'::
375
368
(4 rows)
376
369
377
370
SELECT 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
383
372
EXPLAIN (costs off)
384
373
SELECT 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;
385
374
QUERY PLAN
@@ -391,7 +380,5 @@ SELECT id, d FROM tsts WHERE t @@ 'wr&qh' AND d = '2000-05-01'::timestamp ORDER
391
380
(4 rows)
392
381
393
382
SELECT 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
397
384
0 commit comments