Closed tired-engineer closed 5 months ago
I appreciate the attempt!
I'll look into it, thanks.
For now, you could try to cast that binary column as string
? Let me know if that works.
sling run --src-conn MY_PG --src-stream public.certificate \
--tgt-conn IS_PG --tgt-object "public.certificate" -d -m truncate \
--src-options '{"columns": { "my_col": "string" } }'
Unfortunately, the same error happens.
Should be good in v1.2.3
Thanks for the quick fix, I'd like to confirm that the issue is solved.
Issue Description
Description of the issue: Binary fields are being passed as text when replicating from Postgres to Postgres. I've made an attempt to fix the issue, for example there: https://github.com/slingdata-io/sling-cli/commit/263ffc1d55baf4cbd5c5ee6f5fde1999be6a9182, but the rabbit hole got much deeper than I expected.
Sling version (
sling --version
): 1.2.2Operating System (
linux
,mac
,windows
): mac, armReplication Configuration: source: Crt.sh Postgres (
MY_PG=postgresql://guest:@crt.sh:5432/certwatch?sslmode=disable
) target: local postgres (IS_PG=...
)sling run --src-conn MY_PG --src-stream public.certificate --tgt-conn IS_PG --tgt-object "public.certificate" -d -m truncate
Log Output (please run command with
-d
):