Re: Let's stop with the retail rebuilds of src/port/ files already

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Let's stop with the retail rebuilds of src/port/ files already
Date: 2018-09-26 23:13:31
Message-ID: 20180926231331.pngbiyqaawrxgnwf@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2018-09-26 19:10:40 -0400, Tom Lane wrote:
> I'm getting tired of having to make fixes like ce4887bd0. I think
> we should rearrange things so that src/port/ and src/common/ compile
> all their files a third time using shared-library-friendly switches,
> put them into new .a files, and have libpq and the ecpg libraries
> just include those libraries instead of what they're doing now.

> This would result in compiling some of the port+common files uselessly,
> since they'd never actually get pulled in by any shared library.
> But I think we're approaching the point where we might have a net savings
> of build time anyway, due to not having to compile the same files multiple
> times in different subdirectories. And it'd sure be a savings of
> developer brain-cells and sanity.

+1

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-09-26 23:32:05 Re: Performance improvements for src/port/snprintf.c
Previous Message Tom Lane 2018-09-26 23:12:50 Re: Allowing printf("%m") only where it actually works