Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0084ae6

Browse files
committed
concurrent partitioning function renamed
1 parent5992123 commit0084ae6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎init.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ RETURNS TABLE (
167167
CREATEOR REPLACE VIEW @extschema@.pathman_active_workers
168168
ASSELECT*FROM @extschema@.active_workers();
169169

170-
CREATEOR REPLACE FUNCTION @extschema@.partition_data_worker(relation regclass)
170+
CREATEOR REPLACE FUNCTION @extschema@.partition_data_concurrent(relation regclass)
171171
RETURNS VOIDAS'pg_pathman' LANGUAGE C STRICT;
172172

173173
CREATEOR REPLACE FUNCTION @extschema@.stop_worker(relation regclass)

‎src/worker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static void create_partitions_bg_worker_main(Datum main_arg);
3737
staticvoidpartition_data_bg_worker_main(Datummain_arg);
3838
staticvoidhandle_sigterm(SIGNAL_ARGS);
3939

40-
PG_FUNCTION_INFO_V1(partition_data_worker );
40+
PG_FUNCTION_INFO_V1(partition_data_concurrent );
4141
PG_FUNCTION_INFO_V1(active_workers );
4242
PG_FUNCTION_INFO_V1(stop_worker );
4343

@@ -374,7 +374,7 @@ create_partitions_bg_worker_main(Datum main_arg)
374374
* immediately
375375
*/
376376
Datum
377-
partition_data_worker(PG_FUNCTION_ARGS )
377+
partition_data_concurrent(PG_FUNCTION_ARGS )
378378
{
379379
Oidrelid=PG_GETARG_OID(0);
380380
intempty_slot_idx=-1;

‎tests/concurrent_partitioning_test.pyrenamed to‎tests/partitioning_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
importtime
1414

1515

16-
classConcurrentTest(unittest.TestCase):
16+
classPartitioningTests(unittest.TestCase):
1717

1818
defsetUp(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','selectpartition_data_worker(\'abc\')')
51+
node.psql('postgres','selectpartition_data_concurrent(\'abc\')')
5252

5353
whileTrue:
5454
# update some rows to check for deadlocks

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp