Re: common fe/be library (was Re: [PATCH] binary heap implementation) - Mailing list pgsql-hackers

From Merlin Moncure
Subject Re: common fe/be library (was Re: [PATCH] binary heap implementation)
Date
Msg-id CAHyXU0ycs+1aqae3hPNTJcjp_sDO4kKyuD+3T-jh_LWgGaNozw@mail.gmail.com
Whole thread Raw
In response to common fe/be library (was Re: [PATCH] binary heap implementation)  (Abhijit Menon-Sen <ams@2ndQuadrant.com>)
List pgsql-hackers
On Mon, Jan 14, 2013 at 4:55 AM, Abhijit Menon-Sen <ams@2ndquadrant.com> wrote:
> At 2012-11-15 12:08:12 -0500, robertmhaas@gmail.com wrote:
>>
>> Still, maybe we could have a src/framework directory that uses the
>> same trick to produce a libpgframework that frontend code can use,
>> and a lib pgframework_srv that can be linked into the backend.
>> That's might not actually be that much work; we'd just need to
>> clone all the existing src/port logic.
>
> Does anyone have further comments about Robert's idea above? Or
> alternative suggestions about how to structure a library of routines
> that can be used in either the backend or in client code (like the
> binary heap implementation)?

A couple observations:
*) Not sure about the name: something like "libcommon"?

*) This is useful and potentially good for many things.  For example,
maybe type manipulation code could be pushed into the common library
at some point.

merlin



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: [PATCH] COPY .. COMPRESSED
Next
From: Tom Lane
Date:
Subject: Re: pg_ctl idempotent option