From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
Cc: | "Diogo Biazus" <diogob(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: xlog viewer proposal |
Date: | 2006-06-22 17:57:16 |
Message-ID: | 1744.1150999036@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
"Jonah H. Harris" <jonah(dot)harris(at)gmail(dot)com> writes:
> On 6/22/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> Yes it would. The most obvious point is that memory management and
>> error handling conventions inside the backend are quite different from
>> what you'd expect to employ in a standalone program.
> No, this wouldn't really be that hard, especially if he created a few
> macros to handle the differences.
Jonah, I've been working with this system for years, and it's not that
easy to "handle the differences with a few macros". I've seen people
try, repeatedly, and seen their code break repeatedly. The relatively
small number of files that we use in both frontend and backend scenarios
are all extremely limited-in-function and tend to break easily. I would
never try to build something nontrivial that would work both ways
... especially not on a very tight time budget. Diogo will have enough
challenges delivering something useful that works in one environment.
> The goal
> was to start with xlogdump and enhance it, so starting with
> command-line is probably the best anyway.
Diogo, are you working from my old xlogdump hack? If so what version?
I can send you the latest off-list. I add stuff to it periodically when
I need it, and I don't think I've published it lately.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Lukas Smith | 2006-06-22 18:03:13 | Re: vacuum, performance, and MVCC |
Previous Message | Mark Woodward | 2006-06-22 17:56:56 | Re: vacuum, performance, and MVCC |