Skip to content

Commit

Permalink
simplify more
Browse files Browse the repository at this point in the history
  • Loading branch information
exekias committed Nov 3, 2023
1 parent 676a197 commit 9758907
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ BEGIN
SELECT json_agg(pg_attribute.attname) AS primary_key_columns
FROM pg_index, pg_attribute
WHERE
t.oid = t.oid::regclass AND
indrelid = t.oid AND
nspname = schemaname AND
t.relnamespace = ns.oid AND
Expand All @@ -139,7 +138,6 @@ BEGIN
'name', pi.indexrelid::regclass
))
FROM pg_index pi
INNER JOIN pg_class pgc ON pi.indexrelid = pgc.oid
WHERE pi.indrelid = t.oid::regclass
)
)) FROM pg_class AS t
Expand Down

0 comments on commit 9758907

Please sign in to comment.