Re: WAL details

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: WAL details
Дата
Msg-id 200404280401.i3S413H17636@candle.pha.pa.us
обсуждение исходный текст
Ответ на WAL details  (Simon Windsor <simon.windsor@cornfield.org.uk>)
Список pgsql-general
Simon Windsor wrote:
> Hi
>
> I want to be preserve a log of all SQL actions that change a database, (ie
> INSERT, UPDATE, DELETE, CREATE), to provide a full audit trail of the date,
> and to allow the recreation of a database at any time.
>
> I can achieve this wth ORACLE(recover and others) and MySQL(mysqlbinlog) quite
> easily. How do I achieve this with Postgres?

Use log_statement.  In 7.5 you can log only data modification queries.
z
--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Cannot open relation pg_cast_source_target_index
Следующее
От: David Garamond
Дата:
Сообщение: Re: shadowing (like IB/Firebird)