Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSvjd-00071c-5B for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:56:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YSvjc-0002eF-I3 for pgsql-bugs@arkaria.postgresql.org; Tue, 03 Mar 2015 22:56:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YSpqY-0000u8-9W for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 16:39:02 +0000 Received: from idcmail-mo2no.shaw.ca ([64.59.134.9]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YSpqP-0003xi-Cn for pgsql-bugs@postgresql.org; Tue, 03 Mar 2015 16:39:01 +0000 Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7mr1no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd7mo1no-svcs.prod.shaw.ca with ESMTP; 03 Mar 2015 09:38:49 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=t1BPl+jLqMwJQFviqfg2CWkbC046qUUJr4q0oGMelWU= 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 pd7mr1no-svcs.prod.shaw.ca with ESMTP; 03 Mar 2015 09:38:49 -0700 Date: Tue, 3 Mar 2015 09:38:49 -0700 (MST) From: Ha Quan Le Reply-To: Ha Quan Le To: Michael Paquier Cc: pgsql-bugs@postgresql.org Message-ID: <1670417781.14486688.1425400729437.JavaMail.root@shaw.ca> In-Reply-To: Subject: Re: BUG #12821: Cannot install xlogdump MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14486687_880584294.1425400729436" X-Originating-IP: [208.65.73.110, 208.65.73.110] 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_14486687_880584294.1425400729436 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Dear Mr Paquier, May I ask this question I installed postgres-conrib by sudo apt-get install postgresql-contrib-9.3 sudo service postgresql stop sudo service postgresql start Now I found my pg_xlogdump at $ sudo find / -name pg_xlog* /usr/lib/postgresql/9.3/bin/pg_xlogdump /usr/share/postgresql/9.3/man/man1/pg_xlogdump.1.gz /usr/share/man/man1/pg_xlogdump.1.gz /db/postgres_wal/pg_xlog /db/postgres_data/main/pg_xlog /etc/alternatives/pg_xlogdump.1.gz Hence I ran $ cd /usr/lib/postgresql/9.3/bin/ $ sudo pg_xlogdump /db/postgres_wal/pg_xlog/00000001000000000000000B But error sudo: pg_xlogdump: command not found I tried again without sudo $ pg_xlogdump /db/postgres_wal/pg_xlog/00000001000000000000000B error -bash: pg_xlogdump: command not found May you support, 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_14486687_880584294.1425400729436 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, 

=
May I ask this question 

I installed postgres-conrib by =

 sud= o apt-get install postgresql-contrib-9.3
 sudo service postgresql stop
 sudo service postgresql start

 Now I found my pg_xlogdump at=  
$ sudo find / -name = pg_xlog*
/usr/lib/postgresql/9.= 3/bin/pg_xlogdump
/usr/share/postgr= esql/9.3/man/man1/pg_xlogdump.1.gz
= /usr/share/man/man1/pg_xlogdump.1.gz
/db/post= gres_data/main/pg_xlog
/etc/alterna= tives/pg_xlogdump.1.gz

Hence I ran
= $ cd /usr/lib/postgresql/9.3/bin/
$ sudo pg_xlogdump /db/postgres_wal/pg_xlog/000000= 01000000000000000B
But error&nb= sp;
sudo: pg_xlogdump: command not fo= und

I = tried again without sudo 

$ pg_xlogdump /db/postg= res_wal/pg_xlog/00000001000000000000000B
er= ror
-bash: pg_xlogdump: command not fo= und

May you suppo= rt,
Ha.


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

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

Let's be sure that you are not mistaking xlog= dump, which is here
(https://github.com/snaga/xlogdump/) and only compat= ible 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/pgxlogdu= mp.html

> On my installation of Postgres 9.3, xlogdump informs mi= smatched folders.
> But during weekend, we suddenly had huge WAL log = file that we have to open
> it to read.
> May you send us a cor= rect 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. Referri= ng the problem with
"mismatched folders", you will need to give more det= ails 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_14486687_880584294.1425400729436--