Re: splitting *_desc routines

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Subject: Re: splitting *_desc routines
Date: 2012-08-30 17:42:55
Message-ID: CA+TgmoZ=XPY=fxyMpSUiqvzmv0Of3yfens=c1FERC+AaDPAckQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 30, 2012 at 12:14 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
>> An alternative thing that might be worth considering before you go all
>> in on this is whether the xlogdump functionality shouldn't just be part
>> of the regular server executable, ie you'd call it with
>>
>> postgres --xlogdump <arguments>
>>
>> and the only extra code needed is two lines for another redirect in
>> main.c. We've already done that for things like --describe-config.
>> This'd likely be a lot less work than getting the _desc routines to
>> be operable standalone ...
> It definitely would be simpler. It doesn't seem nice to pile more and more
> utilities into the main postgres binary though.

Agreed. Another advantage of making this standalone is that other
people might then be able to write code that does interesting things
with it. If we just add the functionality into core then nobody's any
better off than before.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2012-08-30 17:49:18 Re: Fix for gistchoose
Previous Message Robert Haas 2012-08-30 17:39:12 Re: Fix for gistchoose