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

Commit84b3b69

Browse files
committed
add more tips to README.md
1 parent593f47a commit84b3b69

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,22 @@ SELECT * FROM pathman_concurrent_part_tasks;
430430
(1 row)
431431
```
432432

433+
-`pathman_partition_list` in conjunction with`drop_range_partition()` can be used to drop RANGE partitions in a more flexible way compared to good old`DROP TABLE`:
434+
```plpgsql
435+
SELECT drop_range_partition(partition, false)/* move data to parent*/
436+
FROM pathman_partition_list
437+
WHERE parent='part_test'::regclassAND range_min::int<500;
438+
NOTICE:1 rows copiedfrom part_test_11
439+
NOTICE:100 rows copiedfrom part_test_1
440+
NOTICE:100 rows copiedfrom part_test_2
441+
drop_range_partition
442+
----------------------
443+
dummy_test_11
444+
dummy_test_1
445+
dummy_test_2
446+
(3 rows)
447+
```
448+
433449
###HASH partitioning
434450
Consider an example of HASH partitioning. First create a table with some integer column:
435451
```plpgsql

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp