Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

388
Views
PSQL \COPY output encoding issue

I have a weird situation where \COPY command is creating files encoded in USASCII even though I specify the encoding to be LATIN1. Since I am using Amazon RDS this is the only way for me to extract data out of RDS and load into Redshift. Has anyone come across this? Any guidance on this.

Tried using PGCLIENTENCODING and setting it to LATIN1 and executed the shell script but no luck.

Per the documentation of \COPY command it pipes output of SQL to STDOUT and pipes it out to file. I was expecting to get consistent file encoding, but I am not getting which is not helping character conversion on Redshift end.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!