From: Pascal Robert <probert@os.ca>
To: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Finding time in WAL logs
Date: Wed, 25 Apr 2007 15:20:28 -0400
Message-ID: <17AB96B4-F90A-4FE4-929B-32A2807B9FC3@os.ca> (raw)
In-Reply-To: <F5E43794-6983-4026-BB18-A6CD89D890BC@os.ca>
References: <5B0132B1-646A-432C-8261-973E4BB42999@os.ca>
<1177515789.20637.160.camel@silverbirch.site>
<7697F772-07E3-469C-8E51-1450AEBC5F39@os.ca>
<1177524100.20637.167.camel@silverbirch.site>
<F5E43794-6983-4026-BB18-A6CD89D890BC@os.ca>
Le 07-04-25 à 14:49, Pascal Robert a écrit :
>>> BTW, the statements look like this :
>>>
>>> 0/15FFE470: prv 0/15FFE440; xid 2332; HEAP info 10 len 18
>>> tot_len 46
>>> DELETE FROM 16612 WHERE ...delete: ts 1663 db 16384 rel 16612 block
>>> 1413 off 5
>>>
>>> (this is for a DELETE FROM table without any WHERE clause). I see
>>> the XID, but can you also display date and time in the ouput ?
>>
>> Original date/time is available only on COMMIT/ABORT records, so
>> you'll
>> need to search ahead/behind.
>
> Ok, so I guess that auto commited statements will never have date/
> time ?
Ok, I didn't see the commit line after the INSERT.
How can I use the -r option ? From my understanding, I can use it to
find specific DML, but I tried :
-r "INSERT"
-r INSERT
-r insert
without any success, even if I know that I have INSERT in the log.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: probert@os.ca, simon@2ndquadrant.com
Subject: Re: Finding time in WAL logs
In-Reply-To: <17AB96B4-F90A-4FE4-929B-32A2807B9FC3@os.ca>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox