Re: doc: mentioned CREATE+ATTACH PARTITION as an alternative to CREATE TABLE..PARTITION OF
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Robert Treat <rob@xzilla.net>, Robert Haas <robertmhaas@gmail.com>,
Andrew Dunstan <andrew@dunslane.net>,
pgsql-hackers@lists.postgresql.org,
David Rowley <drowley@postgresql.org>,
Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2023-03-16T21:27:30Z
Lists: pgsql-hackers
Justin Pryzby <pryzby@telsasoft.com> writes: > On Thu, Mar 16, 2023 at 04:52:07PM -0400, Tom Lane wrote: > It is possible to use <link linkend="sql-altertable"><command>ALTER > TABLE ATTACH/DETACH PARTITION</command></link> to perform these > operations with a weaker lock, thus reducing interference with > concurrent operations on the partitioned table. > Note that in order for DETACH+DROP to use a lower lock level, it has to be > DETACH CONCURRENTLY. ATTACH is implicitly uses a lower lock level, but for > DETACH it's only on request. Right, but that's the sort of detail you should read on that command's man page, we don't need to duplicate it in N other places. regards, tom lane
Commits
-
Doc: mention CREATE+ATTACH PARTITION with CREATE TABLE...PARTITION OF.
- f170b572d2b4 16.0 landed
- b0488cb51137 15.3 landed
- 8f90381a20b2 14.8 landed
-
Allow ATTACH PARTITION with only ShareUpdateExclusiveLock.
- 898e5e3290a7 12.0 cited