Hello Jeff,
On Thu, 3 Nov 2022 at 21:15, Jeff Ross <jross@openvistas.net> wrote:
> publisher_copy_cursor.copy_expert(copy_query,csv_buf,size)
> subscriber_copy_cursor.copy_expert(insert_query,csv_buf)
Yes, StringIO works ok with copy_expert(). I think you need a
csv_buf.seek(0) between these two statements: after copying data in
the file, the file pointer will be at the end.
Cheers
-- Daniele