Skip to content

Commit 44eb6ce

Browse files
committed
fix incorrect condition
2 parents f523d2c + cd60d48 commit 44eb6ce

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ WHERE id = 150
2929
Based on the partitioning type and condition's operator, `pg_pathman` searches for the corresponding partitions and builds the plan. Currently `pg_pathman` supports two partitioning schemes:
3030

3131
* **RANGE** - maps rows to partitions using partitioning key ranges assigned to each partition. Optimization is achieved by using the binary search algorithm;
32-
* **HASH** - maps rows to partitions using a generic hash function (only *integer* attributes are supported at the moment).
32+
* **HASH** - maps rows to partitions using a generic hash function.
3333

3434
More interesting features are yet to come. Stay tuned!
3535

3636
## Roadmap
37-
* Replace INSERT triggers with a custom node (aka **PartitionFilter**)
38-
* Implement [concurrent partitioning](https://github.com/postgrespro/pg_pathman/tree/concurrent_part) (much more responsive)
39-
* Implement HASH partitioning for non-integer attributes
40-
* Optimize hash join (both tables are partitioned by join key)
41-
* Implement LIST partitioning scheme
37+
38+
* Implement LIST partitioning scheme;
39+
* Optimize hash join (both tables are partitioned by join key).
4240

4341
## Installation guide
4442
To install `pg_pathman`, execute this in the module's directory:

src/pathman_workers.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,8 @@ partition_table_concurrently(PG_FUNCTION_ARGS)
615615

616616
/* Oops, looks like we already have BGWorker for this table */
617617
if (cur_slot->relid == relid &&
618-
cur_slot->dbid == MyDatabaseId)
618+
cur_slot->dbid == MyDatabaseId &&
619+
cur_slot->worker_status != CPS_FREE)
619620
{
620621
/* Unlock current slot */
621622
SpinLockRelease(&cur_slot->mutex);

0 commit comments

Comments
 (0)