Re: Tab completion for ALTER MATERIALIZED VIEW ... SET ACCESS METHOD
Yugo Nagata <nagata@sraoss.co.jp>
From: Yugo NAGATA <nagata@sraoss.co.jp>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-hackers@postgresql.org
Date: 2022-03-18T01:27:41Z
Lists: pgsql-hackers
Attachments
- v2_tab_complete_alter_matview.patch (text/x-diff) patch v2
Hi Michael-san, On Wed, 16 Mar 2022 16:18:09 +0900 Michael Paquier <michael@paquier.xyz> wrote: > Hi Nagata-san, > > On Wed, Mar 16, 2022 at 01:33:37PM +0900, Yugo NAGATA wrote: > > SET ACCESS METHOD is supported in ALTER TABLE since the commit > > b0483263dd. Since that time, this also has be allowed SET ACCESS > > METHOD in ALTER MATERIALIZED VIEW. Although it is not documented, > > this works. > > Yes, that's an oversight. I see no reason to not authorize that, and > the rewrite path in tablecmds.c is the same as for plain tables. > > > I cannot found any reasons to prohibit SET ACCESS METHOD in ALTER > > MATERIALIZED VIEW, so I think it is better to support this in psql > > tab-completion and be documented. > > I think that we should have some regression tests about those command > flavors. How about adding a couple of queries to create_am.sql for > SET ACCESS METHOD and to tablespace.sql for SET TABLESPACE? Thank you for your review! I added some queries in the regression test. Attached is the updated patch. Regards, Yugo Nagata -- Yugo NAGATA <nagata@sraoss.co.jp>
Commits
-
Improve handling of SET ACCESS METHOD for ALTER MATERIALIZED VIEW
- eb8399cf1f3d 15.0 landed
-
Add regression tests for ALTER MATERIALIZED VIEW with tablespaces
- ade2159bcdc1 15.0 landed
-
doc: Mention SET TABLESPACE clause for ALTER MATERIALIZED VIEW
- 49c5cd5c4e7a 10.21 landed
- b68929d6e6a3 11.16 landed
- 4d2322925187 12.11 landed
- fe14b0dd45a8 13.7 landed
- c422e8da7ec2 14.3 landed
- 9616da3ddbc1 15.0 landed
-
Add support for SET ACCESS METHOD in ALTER TABLE
- b0483263dda0 15.0 cited