Re: [HACKERS] datetime.h defines like PM conflict with externallibraries - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] datetime.h defines like PM conflict with externallibraries
Date
Msg-id 20180207042834.7fshnbh7jdoxc2aj@alvherre.pgsql
Whole thread Raw
In response to Re: [HACKERS] datetime.h defines like PM conflict with externallibraries  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund wrote:

> Medium term, it
> seems to me, we should start actually move a lot of the adt code into a
> library that can be included (or possibly just compiled?) both by
> frontend and backend code.  Which kinda seems to imply we'd need
> compatible elog support for frontend code, which I'd wished for many
> times.

I remember looking into moving this code into src/common/ a couple of
years ago, but the API was not identical in ecpg than backend mostly
because of the use of a few GUC vars, so I didn't finish it.  In many
cases it seemed possible to resolve easily (just change hardcoded use of
a GUC in the function with a parameter), but I'm not sure it was the
case everywhere.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem
Next
From: Ashutosh Bapat
Date:
Subject: Re: [HACKERS] advanced partition matching algorithm forpartition-wise join