Re: Preliminary patch for FRONTEND - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Preliminary patch for FRONTEND
Date
Msg-id 200410020434.i924YDe06795@candle.pha.pa.us
Whole thread Raw
In response to Preliminary patch for FRONTEND  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian wrote:
> As many know, the FRONTEND usage of /src/port is very fragile.  It
> requires every binary that uses certain libpgport object files to create
> its own version, which is very fragile, and could easily break if a
> function call is added in a subrelease, especially on certain ports.
>
> The following patch addresses this issue by making libpgport usable
> unchanged by client applications, and makes a special server version for
> the backend.   This is much less fragile than trying to make sure you
> hit every single binary that uses libpgport.
>
> I originally tried abstracting out the #ifdef FRONTEND defines in pgport
> but found that that wasn't easily done so making separate libraries was
> cleaner.

Here is an updated version of the patch:

    ftp://candle.pha.pa.us/pub/postgresql/mypatches

I made the suggested modifications and added more comments.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Preliminary patch for FRONTEND
Next
From: Gaetano Mendola
Date:
Subject: error report on slru.c