Here's a fix for sslmode on Postgres Upsert/Load from Existing Vector Component #1133
arberrexhepi
started this conversation in
General
Replies: 1 comment 1 reply
-
there was a PR that does this - #1107 , have not pushed to new release yet |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
file> packages/components/nodes/vectorstores/Postgres_Upsert/Postgres_Upsert.ts
because most third party deploy services seem to require sslmode=require, it does not connect without this fix. Please review and implement!
const postgresConnectionOptions = {
...additionalConfiguration,
type: 'postgres',
host: nodeData.inputs?.host as string,
port: nodeData.inputs?.port as number,
username: user,
password: password,
database: nodeData.inputs?.database as string,
ssl: true // <-- Added this line
}
const poolOptions = {
host: postgresConnectionOptions.host,
port: postgresConnectionOptions.port,
user: postgresConnectionOptions.username,
password: postgresConnectionOptions.password,
database: postgresConnectionOptions.database,
ssl: true // <-- Added this line
}
Beta Was this translation helpful? Give feedback.
All reactions