From 6921432e9ae12910a0cd3892a72631b3a061d1ae Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Thu, 18 Dec 2025 15:18:22 +0800 Subject: [PATCH v3] docs: reflect optional COLUMN keyword in ALTER TABLE descriptions The ALTER TABLE description entries for ADD COLUMN and DROP COLUMN omitted the fact that the COLUMN keyword is optional. Adjust the command summaries to match the documented syntax by marking COLUMN as optional. This is a documentation-only change; no behavior is altered. Author: Chao Li Reviewed-by: Robert Treat Discussion: https://postgr.es/m/CAEoWx2n6ShLMOnjOtf63TjjgGbgiTVT5OMsSOFmbjGb6Xue1Bw@mail.gmail.com --- doc/src/sgml/ref/alter_table.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml index 1bd479c917a..d69e5de8451 100644 --- a/doc/src/sgml/ref/alter_table.sgml +++ b/doc/src/sgml/ref/alter_table.sgml @@ -163,7 +163,7 @@ WITH ( MODULUS numeric_literal, REM - ADD COLUMN [ IF NOT EXISTS ] + ADD [ COLUMN ] [ IF NOT EXISTS ] This form adds a new column to the table, using the same syntax as @@ -175,7 +175,7 @@ WITH ( MODULUS numeric_literal, REM - DROP COLUMN [ IF EXISTS ] + DROP [ COLUMN ] [ IF EXISTS ] This form drops a column from a table. Indexes and -- 2.50.1 (Apple Git-155)