[GENERAL] WAL details

2004-04-27 Thread Simon Windsor
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?

Simon
-- 
Simon Windsor
Eml: [EMAIL PROTECTED]
Tel: 01454 617689
Mob: 07960 321599

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


---(end of broadcast)---
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]


Re: [GENERAL] WAL details

2004-04-27 Thread Bruce Momjian
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
  [EMAIL PROTECTED]   |  (610) 359-1001
  +  If your life is a hard drive, |  13 Roberts Road
  +  Christ can be your backup.|  Newtown Square, Pennsylvania 19073

---(end of broadcast)---
TIP 9: the planner will ignore your desire to choose an index scan if your
  joining column's datatypes do not match