diff --git a/dialects/postgres.go b/dialects/postgres.go index 6c07ba6a..2b234c66 100644 --- a/dialects/postgres.go +++ b/dialects/postgres.go @@ -1052,6 +1052,10 @@ WHERE n.nspname= s.table_schema AND c.relkind = 'r'::char AND c.relname = $1%s A } } + if colDefault != nil && *colDefault == "unique_rowid()" { // ignore the system column added by cockroach + continue + } + col.Name = strings.Trim(colName, `" `) if colDefault != nil {