Better HN
topnewbestaskshowjobs
Log inSign up

approachingtraj

-4 karma · joined May 25, 2016 (10y ago) · 4 submissions

Submissions

comment 10y ago · link · parent

This is so fucking stupid.

comment 10y ago · link · parent

> stuff json into a text column

You did see the article was about JSONB, which is significantly more sophisticated than "json in a text column", yes?

comment 10y ago · link · parent

The title is misleading. The post only talks about Amazon's RDS which is not Postgres.

comment 10y ago · link · parent

> Instead of resorting to those hacks, follow the PostgreSQL documentation[1] to do it the right way. The simplest way is to initialize your PostgreSQL database cluster as:

This is actually poor advice. The right way on Ubuntu is to use the packages provided by PostgreSQL Development Group (https://wiki.postgresql.org/wiki/Apt), and in that setup you use pg_createcluster instead of initdb.

The snippet in the original article was so hacky because it fixed an existing cluster instead of destroying it and creating a new one in UTF-8.