Re: HELP pleaseeee!!!

Поиск
Список
Период
Сортировка
От Chris Browne
Тема Re: HELP pleaseeee!!!
Дата
Msg-id 608yc3rziz.fsf@dev6.int.libertyrms.info
обсуждение исходный текст
Ответ на HELP pleaseeee!!!  ("andres barra" <andresbarra@hotmail.com>)
Список pgsql-admin
andresbarra@hotmail.com ("andres barra") writes:
> hi, somebody can help me???
>
> I tried to create a new database but i can´t.
>
> psql: FATAL:  Database "template1" does not exist in the system catalog.
> createdb: database creation failed
>
> I tried to make initdb in another directory and it shows me  Segmentation
> Fault.
>
> how i do to restore the template1????

You could restore template1 from template0...

$ createdb -T template0 template1

I would suggest figuring out first why template1 got trashed, as
that's a pretty severe problem.  It sounds to me as though something's
severely broken with your PostgreSQL binaries; you may want to check
the provenance of the code.

If you compiled it yourself, then checking where the compile has
gotten to is clearly in your hands; if it was installed in "packaged"
form, you should look into whether someone has corrupted it, and
how/why...
--
let name="cbbrowne" and tld="cbbrowne.com" in String.concat "@" [name;tld];;
http://cbbrowne.com/info/finances.html
The human race  will decree from time to time:  "There is something at
which it is absolutely forbidden to laugh."
-- Nietzche on Common Lisp

В списке pgsql-admin по дате отправления:

Предыдущее
От: Lawrence C
Дата:
Сообщение: Re: [GENERAL] Dump and Restore
Следующее
От: Steve Lane
Дата:
Сообщение: Odd query behavior [urgent, but long]