Re: Databas has no Object Identifier Types & Functions

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Databas has no Object Identifier Types & Functions
Дата
Msg-id CAKt_ZfsVQrSG6W7LjVOgPcz53LD-vr_=Pa2OhLt_vH0SVed_Uw@mail.gmail.com
обсуждение исходный текст
Ответ на Databas has no Object Identifier Types & Functions  (Rebecca Clarke <r.clarke83@gmail.com>)
Список pgsql-general


On Tue, Sep 4, 2012 at 3:28 AM, Rebecca Clarke <r.clarke83@gmail.com> wrote:
Hi there,

I'm running postgresql 8.4 on a debian system. I have a database that has no object identifier types and functions in the pg_catalog, 
e.g.  regclass, regclassout.


What's the best way to get these in to this database? I don't want to upgrade postgresql.
There are other databases on the server that do have them.


 Ouch.

First thign I would do is check and make sure they are in template1.

Then I would probably rename the db (just in case), create a new db, and use psql and pg_dump to move the old data into the freshly created one.

There may be ways to restore just these types but I would worry about what else is missing and this seems to me to be the safest course of action if/when you can afford the downtime.

If they are not in template1, create the database from template0.  You may want to recreate template1 in that case also.

Best Wishes,
Chris Travers

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Reduce the time to know trigger_fi​le's existence
Следующее
От: Rebecca Clarke
Дата:
Сообщение: No Default Text Search Parser