Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 40ed132

Browse files
committed
Addition of xid=int4 operator makes opr_sanity unhappy.
1 parent 650c175 commit 40ed132

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/test/regress/expected/opr_sanity.out

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,20 @@ WHERE p1.oprlsortop != p1.oprrsortop AND
337337
-- Hashing only works on simple equality operators "type = sametype",
338338
-- since the hash itself depends on the bitwise representation of the type.
339339
-- Check that allegedly hashable operators look like they might be "=".
340-
-- NOTE: in 6.5, this search finds int4eqoid and oideqint4. Until we have
341-
-- some cleaner way of dealing with binary-equivalent types, just leave
342-
-- those two tuples in the expected output.
340+
-- NOTE: in 7.2, this search finds int4eqoid, oideqint4, and xideqint4.
341+
-- Until we have some cleaner way of dealing with binary-equivalent types,
342+
-- just leave those three tuples in the expected output.
343343
SELECT p1.oid, p1.oprname
344344
FROM pg_operator AS p1
345345
WHERE p1.oprcanhash AND NOT
346346
(p1.oprkind = 'b' AND p1.oprresult = 16 AND p1.oprleft = p1.oprright AND
347347
p1.oprname = '=' AND p1.oprcom = p1.oid);
348348
oid | oprname
349349
------+---------
350+
353 | =
350351
1136 | =
351352
1137 | =
352-
(2 rows)
353+
(3 rows)
353354

354355
-- In 6.5 we accepted hashable array equality operators when the array element
355356
-- type is hashable. However, what we actually need to make hashjoin work on

src/test/regress/sql/opr_sanity.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ WHERE p1.oprlsortop != p1.oprrsortop AND
275275
-- Hashing only works on simple equality operators "type = sametype",
276276
-- since the hash itself depends on the bitwise representation of the type.
277277
-- Check that allegedly hashable operators look like they might be "=".
278-
-- NOTE: in 6.5, this search finds int4eqoid and oideqint4. Until we have
279-
-- some cleaner way of dealing with binary-equivalent types, just leave
280-
-- those two tuples in the expected output.
278+
-- NOTE: in 7.2, this search finds int4eqoid, oideqint4, and xideqint4.
279+
-- Until we have some cleaner way of dealing with binary-equivalent types,
280+
-- just leave those three tuples in the expected output.
281281

282282
SELECT p1.oid, p1.oprname
283283
FROM pg_operator AS p1

0 commit comments

Comments
 (0)