Replies: 1 comment
-
Will not be addressed, as per #1650. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem with Redshift Serverless connection:
The issue we're facing seems to be with connecting to an Amazon Redshift serverless instance using Psycopg2's simple connection pool. Psycopg2 is attempting to execute the SET datestyle TO 'ISO' query during connection, but despite setting the options with -c DateStyle=ISO, it's not being recognized for Redshift connections. I have also enabled PSYCOPG_DEBUG for debugging purpose. I have added logs below:
The same option works with postgresql but not with Redshift serverless.
Tried via psycopg2.connect() and psycopg2.pool.SimpleConnectionPool as well. Example code used:
psycopg2.pool.SimpleConnectionPool( min_connections, max_connections, database=db_name, user=user, password=password, host=host, port=port, options='-c DateStyle=ISO' )
Please let me know if i am doing anything wrong or is there a way we can avoid this query being executed when setting up connection.
Beta Was this translation helpful? Give feedback.
All reactions