|
18 | 18 | #include"pathman_workers.h"
|
19 | 19 | #include"relation_info.h"
|
20 | 20 | #include"utils.h"
|
21 |
| -#include"xact_handling.h" |
22 | 21 |
|
23 | 22 | #include"access/htup_details.h"
|
24 | 23 | #include"access/xact.h"
|
@@ -360,17 +359,6 @@ bgw_main_spawn_partitions(Datum main_arg)
|
360 | 359 | DebugPrintDatum(value,args->value_type),MyProcPid);
|
361 | 360 | #endif
|
362 | 361 |
|
363 |
| -/* Check again if there's a conflicting lock */ |
364 |
| -if (xact_bgw_conflicting_lock_exists(args->partitioned_table)) |
365 |
| -{ |
366 |
| -elog(LOG,"%s: there's a conflicting lock on relation \"%s\"", |
367 |
| -spawn_partitions_bgw, |
368 |
| -get_rel_name_or_relid(args->partitioned_table)); |
369 |
| - |
370 |
| -dsm_detach(segment); |
371 |
| -return;/* exit quickly */ |
372 |
| -} |
373 |
| - |
374 | 362 | /* Create partitions and save the Oid of the last one */
|
375 | 363 | args->result=create_partitions_internal(args->partitioned_table,
|
376 | 364 | value,/* unpacked Datum */
|
|