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

fix: Do not use E escape in Redshift batch exports #18706

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

tomasfarias
Copy link
Contributor

Problem

Redshift doesn't support E' escape syntax. Eventually, we should switch to the redshift_connector as psycopg doesn't appear to be the recommended way to connect to Redshift (mostly because Redshift hasn't kept up with Postgres).

Changes

Replace E' in queries to Redshift.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@tomasfarias tomasfarias changed the title fix: Do not use E escape fix: Do not use E escape in Redshift batch exports Nov 17, 2023
Copy link
Contributor

Size Change: 0 B

Total Size: 2.01 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 2.01 MB

compressed-size-action

@tomasfarias tomasfarias marked this pull request as ready for review November 17, 2023 10:05
@tomasfarias tomasfarias enabled auto-merge (squash) November 17, 2023 10:05
@tomasfarias tomasfarias merged commit 3b4471e into master Nov 17, 2023
72 checks passed
@tomasfarias tomasfarias deleted the fix/replace-escape-char-query branch November 17, 2023 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant