Re: splitting *_desc routines - Mailing list pgsql-hackers

From Robert Haas
Subject Re: splitting *_desc routines
Date
Msg-id CA+TgmoZ=XPY=fxyMpSUiqvzmv0Of3yfens=c1FERC+AaDPAckQ@mail.gmail.com
Whole thread Raw
In response to Re: splitting *_desc routines  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: splitting *_desc routines
List pgsql-hackers
On Thu, Aug 30, 2012 at 12:14 PM, Andres Freund <andres@2ndquadrant.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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Fix for gistchoose
Next
From: Alexander Korotkov
Date:
Subject: Re: Fix for gistchoose