diff --git a/seed/postgresql/DEBUG.md b/seed/postgresql/DEBUG.md index c835ba01..d43ed80a 100644 --- a/seed/postgresql/DEBUG.md +++ b/seed/postgresql/DEBUG.md @@ -1 +1,20 @@ pg_dumpall --clean > /srv/database.sql + +Conversion SQL_ASCII vers UTF-8 +=============================== + +Sauvegarde : + +``` +pg_dumpall -c -E UTF8 > sql.sql +``` + +Dans le fichier, remplacer "ENCODING = 'SQL_ASCII'" en "ENCODING = 'UTF8'" et remplacer "LOCALE = 'C'" en "LOCALE = 'fr_FR.UTF-8'". + +ArrĂȘter les applications qui utilise les bases. + +Restaurer : + +``` +psql < sql.sql +```