Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== recreate template1 ====== You cannot drop a template database so you first have to tell postgres that this isn't one. This process is useful if you want to get ride of things that might have been added to template1 over time and you want to get back to a plain db such as when postgres was first installed. template1 is used to create new databases, so anything in template1 goes into them. <code sql> update pg_database set datistemplate = false where datname='template1'; drop database template1; create database template1 encoding='UTF-8' template=template0; update pg_database set datistemplate = true where datname='template1'; </code> docs/postgres/recreate_template1.txt Last modified: 2013/05/22 13:55by billh