Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Discover partitioned tables (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-pie authored Jun 23, 2021
1 parent 8c4732e commit ec7d5f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.8.0 (2021-06-23)
-------------------

- Add discovering of partitioned tables.

1.7.1 (2020-10-13)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
long_description = f.read()

setup(name='pipelinewise-tap-postgres',
version='1.7.1',
version='1.8.0',
description='Singer.io tap for extracting data from PostgresSQL - PipelineWise compatible',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
2 changes: 1 addition & 1 deletion tap_postgres/discovery_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def produce_table_info(conn, filter_schemas=None, tables: Optional[List[str]] =
AND pgt.typelem != 0
WHERE attnum > 0
AND NOT a.attisdropped
AND pg_class.relkind IN ('r', 'v', 'm')
AND pg_class.relkind IN ('r', 'v', 'm', 'p')
AND n.nspname NOT in ('pg_toast', 'pg_catalog', 'information_schema')
AND has_column_privilege(pg_class.oid, attname, 'SELECT') = true """

Expand Down

0 comments on commit ec7d5f0

Please sign in to comment.