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 (
167
167
CREATE OR REPLACE VIEW @extschema@.pathman_active_workers
168
168
AS SELECT * FROM @extschema@.active_workers();
169
169
170
- CREATE OR REPLACE FUNCTION @extschema@.partition_data_worker (relation regclass)
170
+ CREATE OR REPLACE FUNCTION @extschema@.partition_data_concurrent (relation regclass)
171
171
RETURNS VOID AS ' pg_pathman' LANGUAGE C STRICT;
172
172
173
173
CREATE 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);
37
37
static void partition_data_bg_worker_main (Datum main_arg );
38
38
static void handle_sigterm (SIGNAL_ARGS );
39
39
40
- PG_FUNCTION_INFO_V1 ( partition_data_worker );
40
+ PG_FUNCTION_INFO_V1 ( partition_data_concurrent );
41
41
PG_FUNCTION_INFO_V1 ( active_workers );
42
42
PG_FUNCTION_INFO_V1 ( stop_worker );
43
43
@@ -374,7 +374,7 @@ create_partitions_bg_worker_main(Datum main_arg)
374
374
* immediately
375
375
*/
376
376
Datum
377
- partition_data_worker ( PG_FUNCTION_ARGS )
377
+ partition_data_concurrent ( PG_FUNCTION_ARGS )
378
378
{
379
379
Oid relid = PG_GETARG_OID (0 );
380
380
int empty_slot_idx = -1 ;
Original file line number Diff line number Diff line change 13
13
import time
14
14
15
15
16
- class ConcurrentTest (unittest .TestCase ):
16
+ class PartitioningTests (unittest .TestCase ):
17
17
18
18
def setUp (self ):
19
19
self .setup_cmd = [
@@ -48,7 +48,7 @@ def test_concurrent(self):
48
48
node .start ()
49
49
self .init_test_data (node )
50
50
51
- node .psql ('postgres' , 'select partition_data_worker (\' abc\' )' )
51
+ node .psql ('postgres' , 'select partition_data_concurrent (\' abc\' )' )
52
52
53
53
while True :
54
54
# update some rows to check for deadlocks
You can’t perform that action at this time.
0 commit comments