2

I am porting a legacy product over to Linux and its database over to postgres. Some of its data stored in varchars makes use a control character (ASCII 4) in the data.

Are there any constraints or issues I need to be aware of when storing any control characters in postgres varchars?.

Thanks.

1 Answer 1

4

The only thing you can not really put into varchar is 0x00, as this is a string terminator. 0x04 works just fine, just like other non-printable characters.

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.