@@ -4439,7 +4439,8 @@ value if you rely on the HLC for accuracy.`,
4439
4439
4440
4440
"oidvectortypes" : makeBuiltin (
4441
4441
tree.FunctionProperties {
4442
- Category : builtinconstants .CategoryCompatibility ,
4442
+ Category : builtinconstants .CategoryCompatibility ,
4443
+ DistsqlBlocklist : true , // applicable only on the gateway
4443
4444
},
4444
4445
tree.Overload {
4445
4446
Types : tree.ParamTypes {
@@ -4631,7 +4632,10 @@ value if you rely on the HLC for accuracy.`,
4631
4632
}),
4632
4633
4633
4634
"crdb_internal.read_file" : makeBuiltin (
4634
- tree.FunctionProperties {Category : builtinconstants .CategorySystemInfo },
4635
+ tree.FunctionProperties {
4636
+ Category : builtinconstants .CategorySystemInfo ,
4637
+ DistsqlBlocklist : true , // applicable only on the gateway
4638
+ },
4635
4639
tree.Overload {
4636
4640
Types : tree.ParamTypes {
4637
4641
{Name : "uri" , Typ : types .String },
@@ -4647,7 +4651,10 @@ value if you rely on the HLC for accuracy.`,
4647
4651
}),
4648
4652
4649
4653
"crdb_internal.write_file" : makeBuiltin (
4650
- tree.FunctionProperties {Category : builtinconstants .CategorySystemInfo },
4654
+ tree.FunctionProperties {
4655
+ Category : builtinconstants .CategorySystemInfo ,
4656
+ DistsqlBlocklist : true , // applicable only on the gateway
4657
+ },
4651
4658
tree.Overload {
4652
4659
Types : tree.ParamTypes {
4653
4660
{Name : "data" , Typ : types .Bytes },
@@ -7805,7 +7812,8 @@ table's zone configuration this will return NULL.`,
7805
7812
// for table %d"
7806
7813
"crdb_internal.force_delete_table_data" : makeBuiltin (
7807
7814
tree.FunctionProperties {
7808
- Category : builtinconstants .CategorySystemRepair ,
7815
+ Category : builtinconstants .CategorySystemRepair ,
7816
+ DistsqlBlocklist : true , // applicable only on the gateway
7809
7817
},
7810
7818
tree.Overload {
7811
7819
Types : tree.ParamTypes {{Name : "id" , Typ : types .Int }},
@@ -7826,7 +7834,8 @@ table's zone configuration this will return NULL.`,
7826
7834
7827
7835
"crdb_internal.serialize_session" : makeBuiltin (
7828
7836
tree.FunctionProperties {
7829
- Category : builtinconstants .CategorySystemInfo ,
7837
+ Category : builtinconstants .CategorySystemInfo ,
7838
+ DistsqlBlocklist : true , // applicable only on the gateway
7830
7839
},
7831
7840
tree.Overload {
7832
7841
Types : tree.ParamTypes {},
@@ -7841,7 +7850,8 @@ table's zone configuration this will return NULL.`,
7841
7850
7842
7851
"crdb_internal.deserialize_session" : makeBuiltin (
7843
7852
tree.FunctionProperties {
7844
- Category : builtinconstants .CategorySystemInfo ,
7853
+ Category : builtinconstants .CategorySystemInfo ,
7854
+ DistsqlBlocklist : true , // applicable only on the gateway
7845
7855
},
7846
7856
tree.Overload {
7847
7857
Types : tree.ParamTypes {{Name : "session" , Typ : types .Bytes }},
@@ -7857,7 +7867,8 @@ table's zone configuration this will return NULL.`,
7857
7867
7858
7868
"crdb_internal.create_session_revival_token" : makeBuiltin (
7859
7869
tree.FunctionProperties {
7860
- Category : builtinconstants .CategorySystemInfo ,
7870
+ Category : builtinconstants .CategorySystemInfo ,
7871
+ DistsqlBlocklist : true , // applicable only on the gateway
7861
7872
},
7862
7873
tree.Overload {
7863
7874
Types : tree.ParamTypes {},
@@ -7871,7 +7882,8 @@ table's zone configuration this will return NULL.`,
7871
7882
),
7872
7883
"crdb_internal.validate_session_revival_token" : makeBuiltin (
7873
7884
tree.FunctionProperties {
7874
- Category : builtinconstants .CategorySystemInfo ,
7885
+ Category : builtinconstants .CategorySystemInfo ,
7886
+ DistsqlBlocklist : true , // applicable only on the gateway
7875
7887
},
7876
7888
tree.Overload {
7877
7889
Types : tree.ParamTypes {{Name : "token" , Typ : types .Bytes }},
@@ -7887,7 +7899,8 @@ table's zone configuration this will return NULL.`,
7887
7899
7888
7900
"crdb_internal.validate_ttl_scheduled_jobs" : makeBuiltin (
7889
7901
tree.FunctionProperties {
7890
- Category : builtinconstants .CategorySystemInfo ,
7902
+ Category : builtinconstants .CategorySystemInfo ,
7903
+ DistsqlBlocklist : true , // applicable only on the gateway
7891
7904
},
7892
7905
tree.Overload {
7893
7906
Types : tree.ParamTypes {},
@@ -7907,7 +7920,8 @@ table's zone configuration this will return NULL.`,
7907
7920
7908
7921
"crdb_internal.repair_ttl_table_scheduled_job" : makeBuiltin (
7909
7922
tree.FunctionProperties {
7910
- Category : builtinconstants .CategorySystemInfo ,
7923
+ Category : builtinconstants .CategorySystemInfo ,
7924
+ DistsqlBlocklist : true , // applicable only on the gateway
7911
7925
},
7912
7926
tree.Overload {
7913
7927
Types : tree.ParamTypes {{Name : "oid" , Typ : types .Oid }},
@@ -8007,7 +8021,8 @@ table's zone configuration this will return NULL.`,
8007
8021
8008
8022
"crdb_internal.revalidate_unique_constraints_in_all_tables" : makeBuiltin (
8009
8023
tree.FunctionProperties {
8010
- Category : builtinconstants .CategorySystemInfo ,
8024
+ Category : builtinconstants .CategorySystemInfo ,
8025
+ DistsqlBlocklist : true , // applicable only on the gateway
8011
8026
},
8012
8027
tree.Overload {
8013
8028
Types : tree.ParamTypes {},
@@ -8429,7 +8444,8 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
8429
8444
),
8430
8445
"crdb_internal.fingerprint" : makeBuiltin (
8431
8446
tree.FunctionProperties {
8432
- Category : builtinconstants .CategorySystemInfo ,
8447
+ Category : builtinconstants .CategorySystemInfo ,
8448
+ DistsqlBlocklist : true , // applicable only on the gateway
8433
8449
},
8434
8450
tree.Overload {
8435
8451
// If the second arg is set to true, this overload allows the caller to
@@ -9015,8 +9031,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9015
9031
},
9016
9032
),
9017
9033
"crdb_internal.plpgsql_gen_cursor_name" : makeBuiltin (tree.FunctionProperties {
9018
- Category : builtinconstants .CategoryIDGeneration ,
9019
- Undocumented : true ,
9034
+ Category : builtinconstants .CategoryIDGeneration ,
9035
+ Undocumented : true ,
9036
+ DistsqlBlocklist : true , // applicable only on the gateway
9020
9037
},
9021
9038
tree.Overload {
9022
9039
Types : tree.ParamTypes {
@@ -9036,8 +9053,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9036
9053
},
9037
9054
),
9038
9055
"crdb_internal.plpgsql_close" : makeBuiltin (tree.FunctionProperties {
9039
- Category : builtinconstants .CategoryString ,
9040
- Undocumented : true ,
9056
+ Category : builtinconstants .CategoryString ,
9057
+ Undocumented : true ,
9058
+ DistsqlBlocklist : true , // applicable only on the gateway
9041
9059
},
9042
9060
tree.Overload {
9043
9061
Types : tree.ParamTypes {{Name : "name" , Typ : types .RefCursor }},
@@ -9056,8 +9074,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9056
9074
},
9057
9075
),
9058
9076
"crdb_internal.plpgsql_fetch" : makeBuiltin (tree.FunctionProperties {
9059
- Category : builtinconstants .CategoryString ,
9060
- Undocumented : true ,
9077
+ Category : builtinconstants .CategoryString ,
9078
+ Undocumented : true ,
9079
+ DistsqlBlocklist : true , // applicable only on the gateway
9061
9080
},
9062
9081
tree.Overload {
9063
9082
Types : tree.ParamTypes {
@@ -9112,8 +9131,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9112
9131
),
9113
9132
"crdb_internal.protect_mvcc_history" : makeBuiltin (
9114
9133
tree.FunctionProperties {
9115
- Category : builtinconstants .CategoryClusterReplication ,
9116
- Undocumented : true ,
9134
+ Category : builtinconstants .CategoryClusterReplication ,
9135
+ Undocumented : true ,
9136
+ DistsqlBlocklist : true , // applicable only on the gateway
9117
9137
},
9118
9138
tree.Overload {
9119
9139
Types : tree.ParamTypes {
@@ -9150,8 +9170,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9150
9170
),
9151
9171
"crdb_internal.extend_mvcc_history_protection" : makeBuiltin (
9152
9172
tree.FunctionProperties {
9153
- Category : builtinconstants .CategoryClusterReplication ,
9154
- Undocumented : true ,
9173
+ Category : builtinconstants .CategoryClusterReplication ,
9174
+ Undocumented : true ,
9175
+ DistsqlBlocklist : true , // applicable only on the gateway
9155
9176
},
9156
9177
tree.Overload {
9157
9178
Types : tree.ParamTypes {
@@ -9174,8 +9195,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9174
9195
),
9175
9196
"crdb_internal.clear_query_plan_cache" : makeBuiltin (
9176
9197
tree.FunctionProperties {
9177
- Category : builtinconstants .CategorySystemRepair ,
9178
- Undocumented : true ,
9198
+ Category : builtinconstants .CategorySystemRepair ,
9199
+ Undocumented : true ,
9200
+ DistsqlBlocklist : true , // applicable only on the gateway
9179
9201
},
9180
9202
tree.Overload {
9181
9203
Types : tree.ParamTypes {},
@@ -9190,8 +9212,9 @@ specified store on the node it's run from. One of 'mvccGC', 'merge', 'split',
9190
9212
),
9191
9213
"crdb_internal.clear_table_stats_cache" : makeBuiltin (
9192
9214
tree.FunctionProperties {
9193
- Category : builtinconstants .CategorySystemRepair ,
9194
- Undocumented : true ,
9215
+ Category : builtinconstants .CategorySystemRepair ,
9216
+ Undocumented : true ,
9217
+ DistsqlBlocklist : true , // applicable only on the gateway
9195
9218
},
9196
9219
tree.Overload {
9197
9220
Types : tree.ParamTypes {},
@@ -9221,7 +9244,11 @@ WHERE object_id = table_descriptor_id
9221
9244
Language : tree .RoutineLangSQL ,
9222
9245
},
9223
9246
),
9224
- "crdb_internal.type_is_indexable" : makeBuiltin (defProps (),
9247
+ "crdb_internal.type_is_indexable" : makeBuiltin (
9248
+ tree.FunctionProperties {
9249
+ Category : builtinconstants .CategorySystemInfo ,
9250
+ DistsqlBlocklist : true , // applicable only on the gateway
9251
+ },
9225
9252
tree.Overload {
9226
9253
Types : tree.ParamTypes {{Name : "oid" , Typ : types .Oid }},
9227
9254
ReturnType : tree .FixedReturnType (types .Bool ),
@@ -9244,8 +9271,9 @@ WHERE object_id = table_descriptor_id
9244
9271
),
9245
9272
"crdb_internal.backup_compaction" : makeBuiltin (
9246
9273
tree.FunctionProperties {
9247
- Undocumented : true ,
9248
- ReturnLabels : []string {"job_id" },
9274
+ Undocumented : true ,
9275
+ DistsqlBlocklist : true , // applicable only on the gateway
9276
+ ReturnLabels : []string {"job_id" },
9249
9277
},
9250
9278
tree.Overload {
9251
9279
Types : tree.ParamTypes {
0 commit comments