File tree 4 files changed +24
-1
lines changed 4 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -13109,6 +13109,12 @@ SELECT relname FROM pg_class WHERE pg_table_is_visible(oid);
13109
13109
<entry><type>boolean</type></entry>
13110
13110
<entry>is operator visible in search path</entry>
13111
13111
</row>
13112
+ <row>
13113
+ <entry><literal><function>pg_opfamily_is_visible(<parameter>opclass_oid</parameter>)</function></literal>
13114
+ </entry>
13115
+ <entry><type>boolean</type></entry>
13116
+ <entry>is operator family visible in search path</entry>
13117
+ </row>
13112
13118
<row>
13113
13119
<entry><literal><function>pg_table_is_visible(<parameter>table_oid</parameter>)</function></literal>
13114
13120
</entry>
@@ -13164,6 +13170,9 @@ SELECT relname FROM pg_class WHERE pg_table_is_visible(oid);
13164
13170
<indexterm>
13165
13171
<primary>pg_operator_is_visible</primary>
13166
13172
</indexterm>
13173
+ <indexterm>
13174
+ <primary>pg_opfamily_is_visible</primary>
13175
+ </indexterm>
13167
13176
<indexterm>
13168
13177
<primary>pg_table_is_visible</primary>
13169
13178
</indexterm>
Original file line number Diff line number Diff line change @@ -202,6 +202,7 @@ Datum pg_type_is_visible(PG_FUNCTION_ARGS);
202
202
Datum pg_function_is_visible (PG_FUNCTION_ARGS );
203
203
Datum pg_operator_is_visible (PG_FUNCTION_ARGS );
204
204
Datum pg_opclass_is_visible (PG_FUNCTION_ARGS );
205
+ Datum pg_opfamily_is_visible (PG_FUNCTION_ARGS );
205
206
Datum pg_collation_is_visible (PG_FUNCTION_ARGS );
206
207
Datum pg_conversion_is_visible (PG_FUNCTION_ARGS );
207
208
Datum pg_ts_parser_is_visible (PG_FUNCTION_ARGS );
@@ -3897,6 +3898,17 @@ pg_opclass_is_visible(PG_FUNCTION_ARGS)
3897
3898
PG_RETURN_BOOL (OpclassIsVisible (oid ));
3898
3899
}
3899
3900
3901
+ Datum
3902
+ pg_opfamily_is_visible (PG_FUNCTION_ARGS )
3903
+ {
3904
+ Oid oid = PG_GETARG_OID (0 );
3905
+
3906
+ if (!SearchSysCacheExists1 (OPFAMILYOID , ObjectIdGetDatum (oid )))
3907
+ PG_RETURN_NULL ();
3908
+
3909
+ PG_RETURN_BOOL (OpfamilyIsVisible (oid ));
3910
+ }
3911
+
3900
3912
Datum
3901
3913
pg_collation_is_visible (PG_FUNCTION_ARGS )
3902
3914
{
Original file line number Diff line number Diff line change 53
53
*/
54
54
55
55
/* yyyymmddN */
56
- #define CATALOG_VERSION_NO 201107031
56
+ #define CATALOG_VERSION_NO 201107171
57
57
58
58
#endif
Original file line number Diff line number Diff line change @@ -2829,6 +2829,8 @@ DATA(insert OID = 2082 ( pg_operator_is_visible PGNSP PGUID 12 1 0 0 0 f f f t
2829
2829
DESCR ("is operator visible in search path?" );
2830
2830
DATA (insert OID = 2083 ( pg_opclass_is_visible PGNSP PGUID 12 1 0 0 0 f f f t f s 1 0 16 "26" _null_ _null_ _null_ _null_ pg_opclass_is_visible _null_ _null_ _null_ ));
2831
2831
DESCR ("is opclass visible in search path?" );
2832
+ DATA (insert OID = 3829 ( pg_opfamily_is_visible PGNSP PGUID 12 1 0 0 0 f f f t f s 1 0 16 "26" _null_ _null_ _null_ _null_ pg_opfamily_is_visible _null_ _null_ _null_ ));
2833
+ DESCR ("is opfamily visible in search path?" );
2832
2834
DATA (insert OID = 2093 ( pg_conversion_is_visible PGNSP PGUID 12 1 0 0 0 f f f t f s 1 0 16 "26" _null_ _null_ _null_ _null_ pg_conversion_is_visible _null_ _null_ _null_ ));
2833
2835
DESCR ("is conversion visible in search path?" );
2834
2836
DATA (insert OID = 3756 ( pg_ts_parser_is_visible PGNSP PGUID 12 1 0 0 0 f f f t f s 1 0 16 "26" _null_ _null_ _null_ _null_ pg_ts_parser_is_visible _null_ _null_ _null_ ));
You can’t perform that action at this time.
0 commit comments