@@ -128,6 +128,11 @@ pub struct EnvVarsStore {
128128 /// sufficiently, probably after 2024-12-01
129129 /// Defaults to `false`, i.e. using the new fixed behavior
130130 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 ,
131136}
132137
133138// This does not print any values avoid accidentally leaking any sensitive env vars
@@ -177,6 +182,7 @@ impl From<InnerStore> for EnvVarsStore {
177182 use_brin_for_all_query_types : x. use_brin_for_all_query_types ,
178183 disable_block_cache_for_lookup : x. disable_block_cache_for_lookup ,
179184 last_rollup_from_poi : x. last_rollup_from_poi ,
185+ insert_extra_cols : x. insert_extra_cols ,
180186 }
181187 }
182188}
@@ -240,6 +246,8 @@ pub struct InnerStore {
240246 disable_block_cache_for_lookup : bool ,
241247 #[ envconfig( from = "GRAPH_STORE_LAST_ROLLUP_FROM_POI" , default = "false" ) ]
242248 last_rollup_from_poi : bool ,
249+ #[ envconfig( from = "GRAPH_STORE_INSERT_EXTRA_COLS" , default = "0" ) ]
250+ insert_extra_cols : usize ,
243251}
244252
245253#[ derive( Clone , Copy , Debug ) ]
0 commit comments