Skip to content

Commit 0084ae6

Browse files
committed
concurrent partitioning function renamed
1 parent 5992123 commit 0084ae6

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
CREATE OR REPLACE VIEW @extschema@.pathman_active_workers
168168
AS 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)
171171
RETURNS VOID AS 'pg_pathman' LANGUAGE C STRICT;
172172

173173
CREATE OR 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
static void partition_data_bg_worker_main(Datum main_arg);
3838
static void handle_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
Oid relid = PG_GETARG_OID(0);
380380
int empty_slot_idx = -1;

tests/concurrent_partitioning_test.py renamed to tests/partitioning_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import 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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy