Open otan opened 4 years ago
@otan wondering why this was tagged bulk? separately, looks like it was implemented -- can we close if so?
Import takes in copy clauses which need is why I tagged it
async with tx.copy("COPY ACCOUNT (id, handle, avatar_id, metadata, status, privacy, indexer, timestamp, phone, name) FROM STDIN") as stream:
for i in batch:
await stream.write_row((
i.id,
i.handle,
i.avatar_id,
i.metadata,
i.status,
i.privacy,
i.indexer,
i.timestamp,
i.phone,
i.name
))
Not sure if this was implemented, this still does not work..... https://github.com/psycopg/psycopg/issues/78
PostgreSQL 12 introduced a COPY FROM ... WHERE .. clause: https://www.postgresql.org/docs/current/sql-copy.html
I imagine this has knock on effects for bulk-io / IMPORT PGCOPY.
Jira issue: CRDB-3739
Epic CRDB-18320