pgsql: ALTER TABLE: rework determination of access method ID

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: ALTER TABLE: rework determination of access method ID
Date: 2024-03-28 15:52:08
Message-ID: E1rps2x-006BNM-RG@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

ALTER TABLE: rework determination of access method ID

Avoid setting an access method OID for relation kinds that don't take
one. Code review for new feature added in 374c7a229042.

Author: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Reported-by: Alexander Lakhin <exclusion(at)gmail(dot)com>
Discussion: https://postgr.es/m/e5516ac1-5264-c3c0-d822-9e6f614ea93b@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e2395cdbe83adc50ac03dd17474ee88c5a97359a

Modified Files
--------------
src/backend/commands/tablecmds.c | 26 +++++++++++++++-----------
src/test/regress/expected/create_am.out | 3 +++
src/test/regress/sql/create_am.sql | 3 +++
3 files changed, 21 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-03-28 16:43:21 pgsql: Allow "internal" subtransactions in parallel mode.
Previous Message Tom Lane 2024-03-28 15:44:06 pgsql: Update comment in set_dummy_rel_pathlist().