Vitalii Malii
07/04/2023, 6:21 PMconnection_string = f'postgresql://{username}:{password}@{server}:{port}/{database}'
.
Despite these similarities, Dagster still didn't work with the error message stating port 6432 failed: FATAL: unsupported startup parameter: options. After further investigation, I discovered that the problem lay in a couple of parameters:
ignore_startup_parameters: options,extra_float_digits
this is exactly what I have missed. It turns out that Dagster passes some parameters (which I still don't know exactly what they are) that cause problems when using pgbouncer or RDS Proxy in AWS.
By the way I encountered a similar issue when trying to use RDS Proxy for AWS RDS, with the error message stating Feature not supported: RDS Proxy currently doesn’t support command-line options.
Unfortunately, we unable to configure ignore_startup_parameters
or a similar in AWS provided services. I decided to use pgbouncer as an application within the cluster and set the these ignore_startup_paramethers
, and now everything works fine with Dagster.
In conclusion, on the one hand, everything seemed very simple, but on the other hand, time was spent on a problem that may not have existed in the first place. I still don't understand what parameters/options are being passed when connecting to the database
and why Airflow doesn't encounter such issues, even though it uses the same libraries for connection.Navah Farahat
07/05/2023, 9:18 PMignore_startup_parameters
in the pgbouncer config on the cluster i was using (not something i set up in the first place) and it was gucci.Navah Farahat
07/05/2023, 9:19 PMNavah Farahat
07/05/2023, 9:20 PMNavah Farahat
07/05/2023, 9:24 PM