Re: Cannot start the postgres service

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Cannot start the postgres service
Дата
Msg-id 20091014165603.GC4902@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Cannot start the postgres service  (Mitesh51 <mit_bca1@yahoo.com>)
Ответы Re: Cannot start the postgres service
Список pgsql-general
Mitesh51 wrote:

> I had 2 approach in my mind...to sync up transaction log files with specific
> full backup
>
> 1) to keep only time relavent files in pg_xlog dir and move other files to
> archive dir with code which is not a good idea as u suggest

Postgres is prepared to (and assumes it can) reuse and delete files in
pg_xlog.  If you need a copy you can use for your own purposes, you MUST
get it through an archive_command.  You MUST NOT fiddle with the files
in pg_xlog directly.

Also note that your archive_command needs to create a separate copy of
the file.  Hardlinks are not allowed, because the file might get
rewritten by Postgres later.  Moving (mv) the original files is not
allowed either for the same reason.  Postgres will leave the file alone
until it has been archived, and assumes it can do whatever it pleases
with it as soon as the archiver has returned success (exit code 0).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: "Chris Spotts"
Дата:
Сообщение: Re: How ad an increasing index to a query result?
Следующее
От: Reid Thompson
Дата:
Сообщение: Re: Partitioned table question