@@ -128,6 +128,11 @@ pub struct EnvVarsStore {
128
128
/// sufficiently, probably after 2024-12-01
129
129
/// Defaults to `false`, i.e. using the new fixed behavior
130
130
pub last_rollup_from_poi : bool ,
131
+ /// Safety switch to increase the number of columns used when
132
+ /// calculating the chunk size in `InsertQuery::chunk_size`. This can be
133
+ /// used to work around Postgres errors complaining 'number of
134
+ /// parameters must be between 0 and 65535' when inserting entities
135
+ pub insert_extra_cols : usize ,
131
136
}
132
137
133
138
// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -177,6 +182,7 @@ impl From<InnerStore> for EnvVarsStore {
177
182
use_brin_for_all_query_types : x. use_brin_for_all_query_types ,
178
183
disable_block_cache_for_lookup : x. disable_block_cache_for_lookup ,
179
184
last_rollup_from_poi : x. last_rollup_from_poi ,
185
+ insert_extra_cols : x. insert_extra_cols ,
180
186
}
181
187
}
182
188
}
@@ -240,6 +246,8 @@ pub struct InnerStore {
240
246
disable_block_cache_for_lookup : bool ,
241
247
#[ envconfig( from = "GRAPH_STORE_LAST_ROLLUP_FROM_POI" , default = "false" ) ]
242
248
last_rollup_from_poi : bool ,
249
+ #[ envconfig( from = "GRAPH_STORE_INSERT_EXTRA_COLS" , default = "0" ) ]
250
+ insert_extra_cols : usize ,
243
251
}
244
252
245
253
#[ derive( Clone , Copy , Debug ) ]
0 commit comments