Skip to content

Latest commit

 

History

History
67 lines (39 loc) · 3 KB

20230315_02.md

File metadata and controls

67 lines (39 loc) · 3 KB

PostgreSQL 16 preview - pg_dump 支持分区和继承表的条件过滤项

作者

digoal

日期

2023-03-15

标签

PostgreSQL , PolarDB , pg_dump , --table-and-children , --exclude-table-and-children , --exclude-table-data-and-children


背景

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=a563c24c9574b74f4883c004c89275bba03c3c26

Allow pg_dump to include/exclude child tables automatically.  
author	Tom Lane <tgl@sss.pgh.pa.us>	  
Tue, 14 Mar 2023 20:09:03 +0000 (16:09 -0400)  
committer	Tom Lane <tgl@sss.pgh.pa.us>	  
Tue, 14 Mar 2023 20:09:03 +0000 (16:09 -0400)  
commit	a563c24c9574b74f4883c004c89275bba03c3c26  
tree	0c868d94031103906136e74469e869cc63505f42	tree  
parent	684ffac8c7d2647d919495727d469c73129202ea	commit | diff  
Allow pg_dump to include/exclude child tables automatically.  
  
This patch adds new pg_dump switches  
    --table-and-children=pattern  
    --exclude-table-and-children=pattern  
    --exclude-table-data-and-children=pattern  
which act the same as the existing --table, --exclude-table, and  
--exclude-table-data switches, except that any partitions or  
inheritance child tables of the table(s) matching the pattern  
are also included or excluded.  
  
Gilles Darold, reviewed by Stéphane Tachoires  
  
Discussion: https://postgr.es/m/5aa393b5-5f67-8447-b83e-544516990ee2@migops.com  

digoal's wechat