Skip to content

Commit

Permalink
Merge pull request #145 from SocketDev/jhiesey/ignore-table-partitions
Browse files Browse the repository at this point in the history
Don't treat postgres table partitions as separate tables
  • Loading branch information
rmp135 authored Oct 27, 2024
2 parents 08c4b8f + 1499627 commit bd05efd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Adapters/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default {
FROM pg_class
JOIN schemas ON schemas.oid = pg_class.relnamespace
WHERE pg_class.relkind IN ('r', 'p', 'v', 'm')
AND NOT pg_class.relispartition
`
const results = await db.raw(sql, { schemas }) as { rows: TableDefinition[] }
return results.rows
Expand Down

0 comments on commit bd05efd

Please sign in to comment.