sudo vim /etc/sysctl.d/90-override.conf
fs.inotify.max_user_watches = 524288
sudo vim /etc/sysctl.d/90-override.conf
fs.inotify.max_user_watches = 524288
psql -U postgres
UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';
DROP DATABASE template1;
CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';
UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';
\c template1
VACUUM FREEZE;