restoring a shadow

Поиск
Список
Период
Сортировка
От Turbo Fredriksson
Тема restoring a shadow
Дата
Msg-id 87vgfj9v75.fsf@papadoc.bayour.com
обсуждение исходный текст
Ответы Re: restoring a shadow  (Turbo Fredriksson <turbo@bayour.com>)
Список pgsql-hackers
In my  attempts of  trying to increase  performance and  redundancy, I
have trying to get rServ replication to work.

I have  successfully been able  to replicate between two  databases on
localhost.
       test            -> Main db       test_slave      -> Slave db

The 'test'  database is  located in PGDATA  (/var/lib/pgsql/data), and
'test_slave' in  PGDATA2 (/var/lib/pgsql/data2). Works  fine (although
I'm a little unhappy about the replication speed).

Now, I'd  like to have  PGDATA in a  ram disk (we're only  expecting a
maximum of  10-15Mb of data). The  problem is if the  machine is being
reset  (hardware  vice)  or if  it  crashes.   Then  the ram  disk  is
lost. This is where PGDATA2 comes into play...

I've  been   experimenting  with  renitialize   the  PGDATA  directory
structure, and doing a
       insert into pg_database values       ('test_slave', 26, 0, 'f', 't', 18539, 'PGDATA2');

Also, a  link from  PGDATA2/base/709432 -> PGDATA/base/709432  is made
(this is what the 'original' PGDATA directory/pg_database table have).

Unfortunatly this give me:

FATAL 1:  Database "test_slave" does not exist.         The database subdirectory '/var/lib/pgsql/data/base/18720' is
missing.

-- Turbo     __ _     Debian GNU     Unix _IS_ user friendly - it's just ^^^^^    / /(_)_ __  _   ___  __  selective
aboutwho its friends are         / / | | '_ \| | | \ \/ /    Debian Certified Linux Developer   _ /// / /__| | | | |
|_||>  <  Turbo Fredriksson   turbo@bayour.com \\\/  \____/_|_| |_|\__,_/_/\_\         Gothenburg/Sweden
 

domestic disruption Albanian [Hello to all my fans in domestic
surveillance] Iran toluene Noriega Nazi 767 plutonium colonel Serbian
Panama cryptographic radar subway
[See http://www.aclu.org/echelonwatch/index.html for more about this]


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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Second call for platform testing
Следующее
От: Turbo Fredriksson
Дата:
Сообщение: Re: restoring a shadow