~ $ LANG=ja_JP.UTF-8 psql $HEROKU_POSTGRESQL_YELLOW_URL -c 'select count(*) = 0 from pg_stat_user_tables;'
?column?
----------
t
(1 行)
~ $ psql $HEROKU_POSTGRESQL_YELLOW_URL -c 'select count(*) = 0 from pg_stat_user_tables;'
?column?
----------
t
(1 row)
If the client's laptop has a different LANG setting than en_US.UTF-8, even though the database is empty, it raises the error "Remote database is not empty". We should probably change it to some regex.
https://github.com/heroku/heroku/blob/master/lib/heroku/helpers/pg_dump_restore.rb#L60
If the client's laptop has a different LANG setting than
en_US.UTF-8
, even though the database is empty, it raises the error "Remote database is not empty". We should probably change it to some regex.