0

I would like to use the PostgreSQL copy command were one of the fields is a binary field, which value should I put in the CSV in order to use the copy command from CSV to the new table which has a binary field

1 Answer 1

1

On reasonably recent PostgreSQL versions, that would be

\xDEADBEEF

for a 4-byte bytea.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.