Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSvkW-00073f-He for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:57:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YSvkV-0003oY-8U for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:57:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YSqEF-0001pU-2C for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 17:03:31 +0000 Received: from idcmail-mo2no.shaw.ca ([64.59.134.9]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSqE6-0003jo-I2 for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 17:03:28 +0000 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd6mr2no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 03 Mar 2015 10:03:21 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=mpg7jqPh/pJA95SkWSEXX4FoG3oTxIRBHbqTNVmka3k= c=1 sm=1 a=FKkrIqjQGGEA:10 a=5L82a4clzAsA:10 a=BLceEmwcHowA:10 a=pGLkceISAAAA:8 a=epTmVMiNAAAA:8 a=NEAV23lmAAAA:8 a=miWB6_PIwAACxGfNmQQA:9 a=QEXdDO2ut3YA:10 a=mhEm4qCFds4A:10 a=quDE-j-3WCcQV0LSrX0A:9 a=_W_S_7VecoQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO cds018.dcs.int.inet) ([10.0.144.222]) by pd6mr2no-svcs.prod.shaw.ca with ESMTP; 03 Mar 2015 10:03:21 -0700 Date: Tue, 3 Mar 2015 10:03:21 -0700 (MST) From: Ha Quan Le Reply-To: Ha Quan Le To: michael.paquier@gmail.com Cc: pgsql-bugs@postgresql.org Message-ID: <998542553.14514166.1425402201139.JavaMail.root@shaw.ca> In-Reply-To: Subject: Re: BUG #12821: Cannot install xlogdump MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14514165_1689482195.1425402201138" X-Originating-IP: [208.65.73.110, 139.48.54.241] X-Mailer: Zimbra 7.2.7_GA_2942 (ZimbraWebClient - GC40 (Win)/7.2.7_GA_2942) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ------=_Part_14514165_1689482195.1425402201138 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Dear Mr Paquier, We found out, sorry please ignore the previous email, I then now ran to read out the first 100000 entries $ cd /usr/lib/postgresql/9.3/bin/ $ sudo ./pg_xlogdump /db/postgres_wal/pg_xlog/00000001000000000000000A -n 100000 to show the content rmgr: XLOG len (rec/tot): 72/ 104, tx: 0, lsn: 0/0A000028, prev 0/09000090, bkp: 0000, desc: checkpoint: redo 0/A000028; tli 1; prev tli 1; fpw true; xid 0/696; oid 16388; multi 1; offset 0; oldest xid 676 in DB 1; oldest multi 1 in DB 1; oldest running xid 0; shutdown rmgr: XLOG len (rec/tot): 0/ 32, tx: 0, lsn: 0/0A000090, prev 0/0A000028, bkp: 0000, desc: xlog switch is there any statement so that I just run pg_xlogdump with which options so that it will show all the WAL log file from the beginning until the end of the WAL log instead of viewing each segment and short info? I suppose that a 16MB WAL log but only a piece as above? Ha. ----- Original Message ----- From: "Michael Paquier" To: "nlp sr" Cc: pgsql-bugs@postgresql.org Sent: Tuesday, March 3, 2015 12:51:02 AM Subject: Re: [BUGS] BUG #12821: Cannot install xlogdump On Tue, Mar 3, 2015 at 9:57 AM, wrote: > We have Postgres 9.3 on Ubuntu 12, however it seems that the xlogdump only > supports up to Postgres 9.2 Let's be sure that you are not mistaking xlogdump, which is here (https://github.com/snaga/xlogdump/) and only compatible up to 9.2, and pg_xlogdump, which is available in-core since 9.3 as a contrib module: http://www.postgresql.org/docs/9.3/static/pgxlogdump.html > On my installation of Postgres 9.3, xlogdump informs mismatched folders. > But during weekend, we suddenly had huge WAL log file that we have to open > it to read. > May you send us a correct link to install a good tool to read our WAL file > on Postgres 9.3, Ubuntu 12. If you are using 9.3, you should have a package for contrib modules, simply deploy it and then use pg_xlogdump. Referring the problem with "mismatched folders", you will need to give more details because it is hard to guess what the problem is based on the little information provided, let us know for example what you tried to do and what is the error you saw. Regards, -- Michael ------=_Part_14514165_1689482195.1425402201138 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 10pt; colo= r: #000000'>Dear Mr Paquier,&nb= sp;

We found out, sorry please ignore the previous = email, 
I then now ran to read out the first 100000 entries

$ cd /usr/lib/postgresql/9.3/bin/

= $ sudo ./pg_xlogdump /db/postgres_wal/pg_xlog/00000001000000000000000A -n 100000


to show the content

rmgr: XLOG &n= bsp;      len (rec/tot):     72/   104, tx: &= nbsp;        0, lsn: 0/0A000028, prev 0/09000090, bkp: = 0000, desc: checkpoint: redo 0/A000028; tli 1; prev tli 1; fpw true; xid 0/= 696; oid 16388; multi 1; offset 0; oldest xid 676 in DB 1; oldest multi 1 i= n DB 1; oldest running xid 0; shutdown

rmgr: XLOG     &n= bsp;  len (rec/tot):      0/    32, tx:  = ;        0, lsn: 0/0A000090, prev 0/0A000028, bkp: 0000= , desc: xlog switch


is there any statement = so that I just run pg_xlogdump with which options so that it will show all = the WAL log file from the beginning until the end of the WAL log instead of= viewing each segment and short info? I suppose that a 16MB WAL log but onl= y a piece as above?

Ha.


From: "Michael Paquier" <michael.paquier@gmail.com>To: "nlp sr" <nlp.sr@shaw.ca>
Cc: pgsql-bugs@postgr= esql.org
Sent: Tuesday, March 3, 2015 12:51:02 AM
Subject: = Re: [BUGS] BUG #12821: Cannot install xlogdump

On Tue, Mar 3, 20= 15 at 9:57 AM,  <nlp.sr@shaw.ca> wrote:
> We have Postgres= 9.3 on Ubuntu 12, however it seems that the xlogdump only
> supports= up to Postgres 9.2

Let's be sure that you are not mistaking xlogdum= p, which is here
(https://github.com/snaga/xlogdump/) and only compatibl= e up to 9.2,
and pg_xlogdump, which is available in-core since 9.3 as a = contrib
module:
http://www.postgresql.org/docs/9.3/static/pgxlogdump.= html

> On my installation of Postgres 9.3, xlogdump informs misma= tched folders.
> But during weekend, we suddenly had huge WAL log fil= e that we have to open
> it to read.
> May you send us a correc= t link to install a good tool to read our WAL file
> on Postgres 9.3,=  Ubuntu 12.

If you are using 9.3, you should have a package fo= r contrib modules,
simply deploy it and then use pg_xlogdump. Referring = the problem with
"mismatched folders", you will need to give more detail= s because it is
hard to guess what the problem is based on the little in= formation
provided, let us know for example what you tried to do and wha= t is the
error you saw.
Regards,
--
Michael

------=_Part_14514165_1689482195.1425402201138--