Search code examples
postgresqlamazon-web-servicesamazon-rdspostgresql-9.3

Set character set on Amazon RDS (Postgresql)


I've provisioned an RDS instance using Postgresql 9.3.1 and my application requires en_US.UTF-8. When postgres was locally installed, I would have to create the cluster using "--locale=en_US.UTF-8".

Now with RDS, my understanding is I need to create a custom parameter group, however my questions are:

  • Which field do I need to modify? client_encoding?
  • What exactly do I set the field to? Can I specify en_US.UTF-8 or just UTF-8 (or UTF8??)
  • I plan on upgrading to 9.4.5, will the answers above remain the same?

Unfortunately, the only other answers I have found are specifically for MySQL.


Solution

  • This is set with the client_encoding option in the parameter groups. This information is buried in an appendix of AWS's documentation.

    Here's what it looks like: sample parameter group screenshot