mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Fix some typos in regression test comments.
Back-patch to avoid unnecessary cross-branch differences. CharSyam
This commit is contained in:
parent
9a92ad4b9e
commit
486d3a2bb4
@ -450,7 +450,7 @@ ERROR: associated data types must be specified for index support procedure
|
|||||||
DROP OPERATOR FAMILY alt_opf16 USING gist;
|
DROP OPERATOR FAMILY alt_opf16 USING gist;
|
||||||
-- Should fail. duplicate operator number / function number in ALTER OPERATOR FAMILY ... ADD FUNCTION
|
-- Should fail. duplicate operator number / function number in ALTER OPERATOR FAMILY ... ADD FUNCTION
|
||||||
CREATE OPERATOR FAMILY alt_opf17 USING btree;
|
CREATE OPERATOR FAMILY alt_opf17 USING btree;
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4), OPERATOR 1 < (int4, int4); -- operator # appears twice in same statment
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4), OPERATOR 1 < (int4, int4); -- operator # appears twice in same statement
|
||||||
ERROR: operator number 1 for (integer,integer) appears more than once
|
ERROR: operator number 1 for (integer,integer) appears more than once
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested first-time
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested first-time
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested again in separate statement
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested again in separate statement
|
||||||
|
@ -2162,7 +2162,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"array":["bar"]}';
|
|||||||
3
|
3
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
count
|
count
|
||||||
-------
|
-------
|
||||||
@ -2336,7 +2336,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
|||||||
2
|
2
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
count
|
count
|
||||||
-------
|
-------
|
||||||
|
@ -2162,7 +2162,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"array":["bar"]}';
|
|||||||
3
|
3
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
count
|
count
|
||||||
-------
|
-------
|
||||||
@ -2336,7 +2336,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
|||||||
2
|
2
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
count
|
count
|
||||||
-------
|
-------
|
||||||
|
@ -390,7 +390,7 @@ DROP OPERATOR FAMILY alt_opf16 USING gist;
|
|||||||
|
|
||||||
-- Should fail. duplicate operator number / function number in ALTER OPERATOR FAMILY ... ADD FUNCTION
|
-- Should fail. duplicate operator number / function number in ALTER OPERATOR FAMILY ... ADD FUNCTION
|
||||||
CREATE OPERATOR FAMILY alt_opf17 USING btree;
|
CREATE OPERATOR FAMILY alt_opf17 USING btree;
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4), OPERATOR 1 < (int4, int4); -- operator # appears twice in same statment
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4), OPERATOR 1 < (int4, int4); -- operator # appears twice in same statement
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested first-time
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested first-time
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested again in separate statement
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD OPERATOR 1 < (int4, int4); -- operator 1 requested again in separate statement
|
||||||
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD
|
ALTER OPERATOR FAMILY alt_opf17 USING btree ADD
|
||||||
|
@ -529,7 +529,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"age":25}';
|
|||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"array":["foo"]}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"array":["foo"]}';
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"array":["bar"]}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"array":["bar"]}';
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
SELECT count(*) FROM testjsonb WHERE j ? 'public';
|
SELECT count(*) FROM testjsonb WHERE j ? 'public';
|
||||||
SELECT count(*) FROM testjsonb WHERE j ? 'bar';
|
SELECT count(*) FROM testjsonb WHERE j ? 'bar';
|
||||||
@ -582,7 +582,7 @@ SELECT count(*) FROM testjsonb WHERE j @> '{"wait":"CC"}';
|
|||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"wait":"CC", "public":true}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"wait":"CC", "public":true}';
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25}';
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{"age":25.0}';
|
||||||
-- excercise GIN_SEARCH_MODE_ALL
|
-- exercise GIN_SEARCH_MODE_ALL
|
||||||
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
SELECT count(*) FROM testjsonb WHERE j @> '{}';
|
||||||
|
|
||||||
RESET enable_seqscan;
|
RESET enable_seqscan;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user