| От | Steven Klassen |
|---|---|
| Тема | Re: cleaning up template1 |
| Дата | |
| Msg-id | 20050105171609.GA2333@commandprompt.com обсуждение исходный текст |
| Ответ на | cleaning up template1 (Akbar <melinda_sayang@hotpop.com>) |
| Список | pgsql-novice |
# I remember when I first play with postgresql, I play with template1 # directly not created first the database ( then play with it ). So I # just want to know is there any way to cleaning up the template1? This should do the trick. xinu=# update pg_database set datistemplate = false where datname ='template1'; UPDATE 1 xinu=# drop database template1; DROP DATABASE xinu=# create database template1 with template = template0; CREATE DATABASE xinu=# update pg_database set datistemplate = true where datname ='template1'; UPDATE 1 -- Steven Klassen - Lead Programmer Command Prompt, Inc. - http://www.commandprompt.com/ PostgreSQL Replication & Support Services, (503) 667-4564
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера