Skip to content

Commit

Permalink
chore: Bump psycopg2 (#17390)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Sep 15, 2023
1 parent 8ab153f commit b67bbaa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion posthog/temporal/workflows/postgres_batch_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ def copy_tsv_to_postgres(tsv_file, postgres_connection, schema: str, table_name:
tsv_file.seek(0)

with postgres_connection.cursor() as cursor:
cursor.execute(sql.SQL("SET search_path TO {schema}").format(schema=sql.Identifier(schema)))
cursor.copy_from(
tsv_file,
sql.Identifier(schema, table_name).as_string(postgres_connection),
table_name,
null="",
columns=schema_columns,
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pickleshare==0.7.5
Pillow==9.2.0
posthoganalytics==3.0.1
prance==0.22.2.22.0
psycopg2-binary==2.8.6
psycopg2-binary==2.9.7
pyarrow==12.0.1
pydantic==1.10.4
pyjwt==2.4.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ protobuf==4.22.1
# grpcio-status
# proto-plus
# temporalio
psycopg2-binary==2.8.6
psycopg2-binary==2.9.7
# via -r requirements.in
ptyprocess==0.6.0
# via pexpect
Expand Down

0 comments on commit b67bbaa

Please sign in to comment.