Update comment of AlterTableCmd->name in parsenodes.h
authorMichael Paquier <[email protected]>
Thu, 7 Mar 2024 23:44:13 +0000 (08:44 +0900)
committerMichael Paquier <[email protected]>
Thu, 7 Mar 2024 23:44:13 +0000 (08:44 +0900)
Since b0483263dda0, this field can be used to store an access method
name for ALTER TABLE, but access methods were not mentioned in the
field's description.

Issue noticed while working on the area.

Discussion: https://postgr.es/m/[email protected]

src/include/nodes/parsenodes.h

index aef4fb7c335f68ede07bb16dc1b424712e36b6c1..2380821600a5b19cb9a4e9c5fbb9e75a17390155 100644 (file)
@@ -2277,7 +2277,7 @@ typedef struct AlterTableCmd  /* one subcommand of an ALTER TABLE */
    NodeTag     type;
    AlterTableType subtype;     /* Type of table alteration to apply */
    char       *name;           /* column, constraint, or trigger to act on,
-                                * or tablespace */
+                                * or tablespace, access method */
    int16       num;            /* attribute number for columns referenced by
                                 * number */
    RoleSpec   *newowner;