Skip to content

Commit fb68d91

Browse files
Add postgres as accepted connection kind (#632)
Co-authored-by: jaidisido <[email protected]>
1 parent 25e1780 commit fb68d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def connect(
132132
attrs: _db_utils.ConnectionAttributes = _db_utils.get_connection_attributes(
133133
connection=connection, secret_id=secret_id, catalog_id=catalog_id, dbname=dbname, boto3_session=boto3_session
134134
)
135-
if attrs.kind != "postgresql":
135+
if attrs.kind != "postgresql" and attrs.kind != "postgres":
136136
raise exceptions.InvalidDatabaseType(
137137
f"Invalid connection type ({attrs.kind}. It must be a postgresql connection.)"
138138
)

0 commit comments

Comments
 (0)