Re: [PATCH 03/14] Add simple xlogdump tool
Andres Freund <andres@2ndquadrant.com>
From: Andres Freund <andres@2ndquadrant.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-11-21T23:10:31Z
Lists: pgsql-hackers
On 2012-11-21 14:57:14 -0800, Jeff Janes wrote: > On Thu, Nov 15, 2012 at 9:13 AM, Andres Freund <andres@2ndquadrant.com> wrote: > > On 2012-11-15 09:06:23 -0800, Jeff Janes wrote: > >> On Wed, Nov 14, 2012 at 5:17 PM, Andres Freund <andres@2ndquadrant.com> wrote: > >> > --- > >> > src/bin/Makefile | 2 +- > >> > src/bin/xlogdump/Makefile | 25 +++ > >> > src/bin/xlogdump/xlogdump.c | 468 ++++++++++++++++++++++++++++++++++++++++++++ > >> > 3 files changed, 494 insertions(+), 1 deletion(-) > >> > create mode 100644 src/bin/xlogdump/Makefile > >> > create mode 100644 src/bin/xlogdump/xlogdump.c > >> > >> Is this intended to be the successor of > >> https://github.com/snaga/xlogdump which will then be deprecated? > > > > As-is this is just a development tool which was sorely needed for the > > development of this patchset. But yes I think that once ready > > (xlogreader infrastructure, *_desc routines splitted) it should > > definitely be able to do most of what the above xlogdump can do and it > > should live in bin/. I think mostly some filtering is missing. > > > > That doesn't really "deprecate" the above though. > > > > Does that answer your question? > > Yes, I think so. Thanks. > > (I've just recently gotten the original xlogdump to work for me in > 9.2, and I had been wonder if back-porting yours to 9.2 would have > been an easier way to go.) I don't think you would have much fun doing so - the WAL format changes between 9.2 and 9.3 make this larger than one might think. I had a version that worked with the previous format but there have been some interface changes since then... Greetings, Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Background worker processes
- da07a1e85651 9.3.0 cited
-
Rearrange storage of data in xl_running_xacts.
- 5c11725867ac 9.3.0 cited
-
Basic binary heap implementation.
- 7a2fe9bd0371 9.3.0 cited
-
Embedded list interface
- a66ee69add6e 9.3.0 cited
-
Refactor xlog.c to create src/backend/postmaster/startup.c
- 9aceb6ab3c20 9.2.0 cited