Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 399
Brooks Avatar asked Nov 05 '15 21:11

Brooks


People also ask

What is Character Set in PostgreSQL?

The character set support in PostgreSQL allows you to store text in a variety of character sets (also called encodings), including single-byte character sets such as the ISO 8859 series and multiple-byte character sets such as EUC (Extended Unix Code), UTF-8, and Mule internal code.

How do I change the default parameter group in RDS?

To modify an RDS DB instance configuration, follow these steps: Create a DB parameter group. View the parameter values for a DB parameter group to confirm that the Is Modifiable property is true. Modify the parameters in a DB parameter group.

Can you Auto scale RDS?

Amazon RDS now supports Storage Auto Scaling and it automatically scales your storage capacity for database workloads, with no downtime. This new feature makes it easy for customers, all you need to do is set your own maximum storage limit and the Storage Auto Scaling does the rest of the work for you.


1 Answers

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

like image 87
tedder42 Avatar answered Nov 02 '22 13:11

tedder42