postgrespro / pg_pathman

Partitioning tool for PostgreSQL
Other
584 stars 69 forks source link

Changed lock order for MERGE of range partitions + change for issue #247 #248

Closed kovdb75 closed 2 years ago

kovdb75 commented 2 years ago

1) Changed lock order for MERGE of range partitions: the parent table is locked first and then are locked the partitions. 2) Change for issue #247: need to skip non-existing relations for Citus compatibility.

codecov[bot] commented 2 years ago

Codecov Report

Merging #248 (8101d6d) into master (e57e04d) will increase coverage by 0.59%. The diff coverage is 100.00%.

:exclamation: Current head 8101d6d differs from pull request most recent head 66543e7. Consider uploading reports for the commit 66543e7 to get more accurate results

@@            Coverage Diff             @@
##           master     #248      +/-   ##
==========================================
+ Coverage   91.45%   92.04%   +0.59%     
==========================================
  Files          43       34       -9     
  Lines        7255     6626     -629     
==========================================
- Hits         6635     6099     -536     
+ Misses        620      527      -93     
Impacted Files Coverage Δ
src/pl_range_funcs.c 96.48% <100.00%> (-0.02%) :arrow_down:
src/utility_stmt_hooking.c 92.77% <100.00%> (+0.55%) :arrow_up:
src/planner_tree_modification.c 86.74% <0.00%> (-1.79%) :arrow_down:
src/include/compat/pg_compat.h 92.30% <0.00%> (-1.03%) :arrow_down:
src/utils.c 92.10% <0.00%> (-0.66%) :arrow_down:
src/init.c 91.02% <0.00%> (-0.22%) :arrow_down:
src/runtime_merge_append.c 69.51% <0.00%> (-0.18%) :arrow_down:
src/partition_filter.c 96.44% <0.00%> (-0.14%) :arrow_down:
src/hooks.c 92.28% <0.00%> (-0.11%) :arrow_down:
src/partition_creation.c 96.81% <0.00%> (-0.09%) :arrow_down:
... and 24 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e57e04d...66543e7. Read the comment docs.