File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ RETURNS TABLE (
167167CREATE OR REPLACE VIEW @extschema@.pathman_active_workers
168168AS SELECT * FROM @extschema@.active_workers();
169169
170- CREATE OR REPLACE FUNCTION @extschema@.partition_data_worker (relation regclass)
170+ CREATE OR REPLACE FUNCTION @extschema@.partition_data_concurrent (relation regclass)
171171RETURNS VOID AS ' pg_pathman' LANGUAGE C STRICT;
172172
173173CREATE OR REPLACE FUNCTION @extschema@.stop_worker(relation regclass)
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ static void create_partitions_bg_worker_main(Datum main_arg);
3737static void partition_data_bg_worker_main (Datum main_arg );
3838static void handle_sigterm (SIGNAL_ARGS );
3939
40- PG_FUNCTION_INFO_V1 ( partition_data_worker );
40+ PG_FUNCTION_INFO_V1 ( partition_data_concurrent );
4141PG_FUNCTION_INFO_V1 ( active_workers );
4242PG_FUNCTION_INFO_V1 ( stop_worker );
4343
@@ -374,7 +374,7 @@ create_partitions_bg_worker_main(Datum main_arg)
374374 * immediately
375375 */
376376Datum
377- partition_data_worker ( PG_FUNCTION_ARGS )
377+ partition_data_concurrent ( PG_FUNCTION_ARGS )
378378{
379379 Oid relid = PG_GETARG_OID (0 );
380380 int empty_slot_idx = -1 ;
Original file line number Diff line number Diff line change 1313import time
1414
1515
16- class ConcurrentTest (unittest .TestCase ):
16+ class PartitioningTests (unittest .TestCase ):
1717
1818 def setUp (self ):
1919 self .setup_cmd = [
@@ -48,7 +48,7 @@ def test_concurrent(self):
4848 node .start ()
4949 self .init_test_data (node )
5050
51- node .psql ('postgres' , 'select partition_data_worker (\' abc\' )' )
51+ node .psql ('postgres' , 'select partition_data_concurrent (\' abc\' )' )
5252
5353 while True :
5454 # update some rows to check for deadlocks
You can’t perform that action at this time.
0 commit comments