diff --git a/pkg/sql/logictest/testdata/logic_test/pg_catalog b/pkg/sql/logictest/testdata/logic_test/pg_catalog index a85d48c45e78..1560af7aa464 100644 --- a/pkg/sql/logictest/testdata/logic_test/pg_catalog +++ b/pkg/sql/logictest/testdata/logic_test/pg_catalog @@ -783,7 +783,7 @@ t1 j -1 NULL NULL NU t1 k 14 NULL NULL NULL false false · · t1 l -1 NULL NULL NULL false false · v t1 m -1 NULL NULL NULL true true a · -t1 n -1 NULL NULL NULL true true b · +t1 n -1 NULL NULL NULL true true d · t1_pkey p -1 NULL NULL NULL true false · · t1_a_key a -1 NULL NULL NULL false false · · index_key b -1 NULL NULL NULL false false · · diff --git a/pkg/sql/pg_catalog.go b/pkg/sql/pg_catalog.go index 97ef63286827..8c4f319bf45c 100644 --- a/pkg/sql/pg_catalog.go +++ b/pkg/sql/pg_catalog.go @@ -416,7 +416,7 @@ https://www.postgresql.org/docs/12/catalog-pg-attribute.html`, if column.IsGeneratedAlwaysAsIdentity() { generatedAsIdentityType = "a" } else if column.IsGeneratedByDefaultAsIdentity() { - generatedAsIdentityType = "b" + generatedAsIdentityType = "d" } else { return errors.AssertionFailedf( "column %s is of wrong generated as identity type (neither ALWAYS nor BY DEFAULT)",