summaryrefslogtreecommitdiff
path: root/src/test/regress/expected/misc_functions.out
diff options
context:
space:
mode:
authorPeter Eisentraut2024-01-19 14:41:44 +0000
committerPeter Eisentraut2024-01-19 14:42:13 +0000
commit6db4598fcb82a87a683c4572707e522504830a2b (patch)
tree0a1b90ad4c3919e95cc72ba9a6754c6e39a8ef9d /src/test/regress/expected/misc_functions.out
parentb725b7eec431f7394d63abe621170efe3fcdcda4 (diff)
Add stratnum GiST support function
This is support function 12 for the GiST AM and translates "well-known" RT*StrategyNumber values into whatever strategy number is used by the opclass (since no particular numbers are actually required). We will use this to support temporal PRIMARY KEY/UNIQUE/FOREIGN KEY/FOR PORTION OF functionality. This commit adds two implementations, one for internal GiST opclasses (just an identity function) and another for btree_gist opclasses. It updates btree_gist from 1.7 to 1.8, adding the support function for all its opclasses. Author: Paul A. Jungwirth <[email protected]> Reviewed-by: Peter Eisentraut <[email protected]> Reviewed-by: jian he <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/CA+renyUApHgSZF9-nd-a0+OPGharLQLO=mDHcY4_qQ0+noCUVg@mail.gmail.com
Diffstat (limited to 'src/test/regress/expected/misc_functions.out')
-rw-r--r--src/test/regress/expected/misc_functions.out13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/regress/expected/misc_functions.out b/src/test/regress/expected/misc_functions.out
index 93021340773..7c15477104b 100644
--- a/src/test/regress/expected/misc_functions.out
+++ b/src/test/regress/expected/misc_functions.out
@@ -670,3 +670,16 @@ FROM pg_walfile_name_offset('0/0'::pg_lsn + :segment_size - 1),
0 | t
(1 row)
+-- test stratnum support functions
+SELECT gist_stratnum_identity(3::smallint);
+ gist_stratnum_identity
+------------------------
+ 3
+(1 row)
+
+SELECT gist_stratnum_identity(18::smallint);
+ gist_stratnum_identity
+------------------------
+ 18
+(1 row)
+