diff --git a/src/languages/postgresql/postgresql.formatter.ts b/src/languages/postgresql/postgresql.formatter.ts index c120750398..991d94a422 100644 --- a/src/languages/postgresql/postgresql.formatter.ts +++ b/src/languages/postgresql/postgresql.formatter.ts @@ -246,6 +246,8 @@ const reservedJoins = expandPhrases([ ]); const reservedPhrases = expandPhrases([ + 'PRIMARY KEY', + 'GENERATED {ALWAYS | BY DEFAULT} AS IDENTITY', 'ON {UPDATE | DELETE} [SET NULL | SET DEFAULT]', '{ROWS | RANGE | GROUPS} BETWEEN', // https://www.postgresql.org/docs/current/datatype-datetime.html