File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -396,10 +396,12 @@ DROP OPERATOR FAMILY alt_opf8 USING btree;
396
396
CREATE OPERATOR FAMILY alt_opf9 USING gist;
397
397
ALTER OPERATOR FAMILY alt_opf9 USING gist ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
398
398
DROP OPERATOR FAMILY alt_opf9 USING gist;
399
- -- Should fail. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
399
+ -- Should work. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
400
+ BEGIN TRANSACTION;
400
401
CREATE OPERATOR FAMILY alt_opf10 USING btree;
401
402
ALTER OPERATOR FAMILY alt_opf10 USING btree ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
402
403
DROP OPERATOR FAMILY alt_opf10 USING btree;
404
+ ROLLBACK;
403
405
-- Should work. Textbook case of ALTER OPERATOR FAMILY ... ADD OPERATOR with FOR ORDER BY
404
406
CREATE OPERATOR FAMILY alt_opf11 USING gist;
405
407
ALTER OPERATOR FAMILY alt_opf11 USING gist ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
Original file line number Diff line number Diff line change @@ -340,10 +340,12 @@ CREATE OPERATOR FAMILY alt_opf9 USING gist;
340
340
ALTER OPERATOR FAMILY alt_opf9 USING gist ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
341
341
DROP OPERATOR FAMILY alt_opf9 USING gist;
342
342
343
- -- Should fail. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
343
+ -- Should work. Ensure correct ordering methods in ALTER OPERATOR FAMILY ... ADD OPERATOR .. FOR ORDER BY
344
+ BEGIN TRANSACTION;
344
345
CREATE OPERATOR FAMILY alt_opf10 USING btree;
345
346
ALTER OPERATOR FAMILY alt_opf10 USING btree ADD OPERATOR 1 < (int4, int4) FOR ORDER BY float_ops;
346
347
DROP OPERATOR FAMILY alt_opf10 USING btree;
348
+ ROLLBACK ;
347
349
348
350
-- Should work. Textbook case of ALTER OPERATOR FAMILY ... ADD OPERATOR with FOR ORDER BY
349
351
CREATE OPERATOR FAMILY alt_opf11 USING gist;
You can’t perform that action at this time.
0 commit comments