Re: alter table set TABLE ACCESS METHOD
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Michael Paquier <michael@paquier.xyz>, Justin Pryzby
<pryzby@telsasoft.com>
Cc: vignesh C <vignesh21@gmail.com>, pgsql-hackers@postgresql.org, Jacob
Champion <pchampion@vmware.com>, Heikki Linnakangas <hlinnaka@iki.fi>,
Ashwin Agrawal <aagrawal@pivotal.io>, Ashutosh Sharma
<ashu.coek88@gmail.com>, Andres Freund <andres@anarazel.de>, Robert Haas
<robertmhaas@gmail.com>, Amit Kapila <amit.kapila16@gmail.com>, Alvaro
Herrera <alvherre@alvh.no-ip.org>, Dilip Kumar <dilipbalaut@gmail.com>
Date: 2021-07-28T03:40:59Z
Lists: pgsql-hackers
On Wed, 2021-07-28 at 12:23 +0900, Michael Paquier wrote: > On Tue, Jul 27, 2021 at 04:38:48PM +0900, Michael Paquier wrote: > > Okay, hearing nothing, I have looked again at 0001 and did some > > light > > adjustments, mainly in the tests. I did not spot any issues in the > > patch, so that looks good to go for me. > > And done as of b048326. I just returned from vacation and I was about ready to commit this myself, but I noticed that it doesn't seem to be calling InvokeObjectPostAlterHook(). I was in the process of trying to be sure of where to call it. It looks like it should be called after catalog changes but before CommandCounterIncrement(), and it also looks like it should be called even for no-op commands. Also, I agree with Justin that it should fail when there are multiple SET ACCESS METHOD subcommands consistently, regardless of whether one is a no-op, and it should probably throw a syntax error to match SET TABLESPACE. Minor nit: in tab-complete.c, why does it say "<smt>"? Is that just a typo or is there a reason it's different from everything else, which uses "<sth>"? And what does "sth" mean anyway? Regards, Jeff Davis
Commits
-
Allow specifying an access method for partitioned tables
- 374c7a229042 17.0 landed
-
Fix regression test output of sepgsql
- 1e3445237b86 15.0 landed
-
Add call to object access hook at the end of table rewrite in ALTER TABLE
- 7b565843a944 15.0 landed
-
Fix typo in tab-complete.c
- 15c6ede04577 15.0 landed
-
Add support for SET ACCESS METHOD in ALTER TABLE
- b0483263dda0 15.0 landed
-
tableam: introduce table AM infrastructure.
- 8586bf7ed888 12.0 cited