Skip to content

Commit 7a91b0e

Browse files
authored
Create 20240326_04.md
1 parent 3265017 commit 7a91b0e

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

202403/20240326_04.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## PostgreSQL 17 preview - 支持修改分区表access method
2+
3+
### 作者
4+
digoal
5+
6+
### 日期
7+
2024-03-26
8+
9+
### 标签
10+
PostgreSQL , PolarDB , DuckDB , 分区表 , access method
11+
12+
----
13+
14+
## 背景
15+
16+
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=374c7a2290429eac3217b0c7b0b485db9c2bcc72
17+
```
18+
Allow specifying an access method for partitioned tables
19+
20+
author Alvaro Herrera <[email protected]>
21+
Mon, 25 Mar 2024 15:30:36 +0000 (16:30 +0100)
22+
committer Alvaro Herrera <[email protected]>
23+
Mon, 25 Mar 2024 15:30:36 +0000 (16:30 +0100)
24+
commit 374c7a2290429eac3217b0c7b0b485db9c2bcc72
25+
tree 569f900a12d9a95d881f2dc45faf6ad285decdd9 tree
26+
parent b8528fe026b18976b5d5b4fcb066a8a55def3375 commit | diff
27+
Allow specifying an access method for partitioned tables
28+
29+
It's now possible to specify a table access method via
30+
CREATE TABLE ... USING for a partitioned table, as well change it with
31+
ALTER TABLE ... SET ACCESS METHOD. Specifying an AM for a partitioned
32+
table lets the value be used for all future partitions created under it,
33+
closely mirroring the behavior of the TABLESPACE option for partitioned
34+
tables. Existing partitions are not modified.
35+
36+
For a partitioned table with no AM specified, any new partitions are
37+
created with the default_table_access_method.
38+
39+
Also add ALTER TABLE ... SET ACCESS METHOD DEFAULT, which reverts to the
40+
original state of using the default for new partitions.
41+
42+
The relcache of partitioned tables is not changed: rd_tableam is not
43+
set, even if a partitioned table has a relam set.
44+
45+
Author: Justin Pryzby <[email protected]>
46+
Author: Soumyadeep Chakraborty <[email protected]>
47+
Author: Michaël Paquier <[email protected]>
48+
Reviewed-by: The authors themselves
49+
Discussion: https://postgr.es/m/CAE-ML+9zM4wJCGCBGv01k96qQ3gFv4WFcFy=zqPHKeaEFwwv6A@mail.gmail.com
50+
Discussion: https://postgr.es/m/20210308010707.GA29832%40telsasoft.com
51+
```
52+
53+
54+

0 commit comments

Comments
 (0)