Re: Partitioned tables and [un]loggedness
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Nathan Bossart <nathandbossart@gmail.com>, "David G. Johnston" <david.g.johnston@gmail.com>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-09-24T00:06:40Z
Lists: pgsql-hackers
On Fri, Sep 20, 2024 at 09:37:54AM +0900, Michael Paquier wrote: > What do you think about adding a test with DETACH FINALIZE when > attempting it on a normal table, its path being under a different > subcommand than DETACH [CONCURRENTLY]? > > There are no tests for normal tables with DETACH CONCURRENTLY, but as > it is the same as DETACH under the AT_DetachPartition subcommand, that > does not seem worth the extra cycles. Added an extra test for the CONCURRENTLY case at the end, and applied the simplification. Hmm. Should we replace the error messages in transformPartitionCmd() with some assertions at this stage? I don't see a high cost in keeping these even now, and keeping errors is perhaps more useful for some extension code that builds AT_AttachPartition or AT_DetachPartition commands? -- Michael
Commits
-
psql: Remove PARTITION BY clause in tab completion for unlogged tables
- 361499538c9d 18.0 landed
-
Remove support for unlogged on partitioned tables
- e2bab2d79204 18.0 landed
-
Remove ATT_TABLE for ALTER TABLE ... ATTACH/DETACH
- bbba59e69a56 18.0 landed
-
Introduce ATT_PARTITIONED_TABLE in tablecmds.c
- d69a3f4d70b7 18.0 landed
-
Refactor some code for ALTER TABLE SET LOGGED/UNLOGGED in tablecmds.c
- 9f87da1cffda 18.0 landed
-
Remove tab completion for CREATE UNLOGGED MATERIALIZED VIEW.
- 5c1ce1bbbe5f 18.0 cited