Skip to content

Commit 6230579

Browse files
committed
Add more comments into rum_validate.sql
1 parent 7acf4f1 commit 6230579

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

expected/rum_validate.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ FROM unnest(array['asc','desc','nulls_first','nulls_last','orderable','distance_
9090
-- Check incorrect operator class
9191
--
9292
DROP INDEX rumidx;
93-
-- Check incorrect operator class
93+
-- PGPRO-1175: Check incorrect operator class, i.e. it shouldn't work correctly
9494
CREATE OPERATOR CLASS rum_tsvector_norm_ops
9595
FOR TYPE tsvector USING rum
9696
AS
@@ -110,6 +110,7 @@ CREATE INDEX rum_norm_idx ON test_rum USING rum(a rum_tsvector_norm_ops);
110110
SET enable_seqscan=off;
111111
SET enable_bitmapscan=off;
112112
SET enable_indexscan=on;
113+
-- PGPRO-1175: Select using incorrect operator class
113114
SELECT a
114115
FROM test_rum
115116
WHERE a @@ to_tsquery('pg_catalog.english', 'bar')

sql/rum_validate.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FROM unnest(array['asc','desc','nulls_first','nulls_last','orderable','distance_
3131

3232
DROP INDEX rumidx;
3333

34-
-- Check incorrect operator class
34+
-- PGPRO-1175: Check incorrect operator class, i.e. it shouldn't work correctly
3535
CREATE OPERATOR CLASS rum_tsvector_norm_ops
3636
FOR TYPE tsvector USING rum
3737
AS
@@ -54,7 +54,8 @@ SET enable_seqscan=off;
5454
SET enable_bitmapscan=off;
5555
SET enable_indexscan=on;
5656

57+
-- PGPRO-1175: Select using incorrect operator class
5758
SELECT a
5859
FROM test_rum
5960
WHERE a @@ to_tsquery('pg_catalog.english', 'bar')
60-
ORDER BY a <=> (to_tsquery('pg_catalog.english', 'bar'),0)
61+
ORDER BY a <=> (to_tsquery('pg_catalog.english', 'bar'),0)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy