Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Postgres Destination fails when the connection is persisted across steps #39365

Closed
wants to merge 2 commits into from

Conversation

kikoncuo
Copy link
Contributor

@kikoncuo kikoncuo commented Jun 10, 2024

What

#39364
When using PostgreSQL as a destination, we tried to recreate a postgreSQL function which leads to an SQL error which crashes the sync process.

How

We've modified the SQL query to either create or replace the function, not only create which would lead to an error if the function already existed

Review guide

Try to use PostgreSQL as a destination with any source

User Impact

The function may re-created the function when it's not needed, but this shouldn't happen anyway as it's only on the session, in case other errors happen related to re-using the session, this would not crash the connector

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

@kikoncuo kikoncuo requested a review from a team as a code owner June 10, 2024 13:19
Copy link

vercel bot commented Jun 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 3:40pm

@CLAassistant
Copy link

CLAassistant commented Jun 10, 2024

CLA assistant check
All committers have signed the CLA.

@marcosmarxm
Copy link
Member

@kikoncuo please sign the CLA and update the title and description to match guidelines.

@kikoncuo kikoncuo changed the title Update PostgresDestination.java to avoid error of creating function t… Postgres Destination fails when the connection is persisted across steps 🐛 Jun 10, 2024
@kikoncuo kikoncuo changed the title Postgres Destination fails when the connection is persisted across steps 🐛 🐛 Postgres Destination fails when the connection is persisted across steps Jun 10, 2024
@kikoncuo
Copy link
Contributor Author

@kikoncuo please sign the CLA and update the title and description to match guidelines.

Done!

@evantahler
Copy link
Contributor

@kikoncuo - just curious, which version/pass offering of postgres are you using that you saw this bug?

@kikoncuo
Copy link
Contributor Author

kikoncuo commented Jun 10, 2024

@evantahler I'm using a new default supabase project which uses Postgres version 15.1.1.58
image

I also tried with an older project from a month ago which I successfully used to do multiple syncs, same problem.
I closed this PR because it was a bit of a mess and opened a new one here: #39372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants