pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Fix thinko in previous commit
Date: Tue, 09 Oct 2012 01:27:38 -0400
Message-ID: <2547.1349760458@sss.pgh.pa.us> (raw)
In-Reply-To: <20695.1349757261@sss.pgh.pa.us>
References: <E1TLKxW-0005Jx-8N@gemulon.postgresql.org>
	<20121009041314.GC28686@alvh.no-ip.org>
	<20695.1349757261@sss.pgh.pa.us>

I wrote:
> But having said that, it seems there's something wrong with the
> STATIC_IF_INLINE patch for the case where USE_INLINE doesn't get set.
> I'm too tired to investigate right now, but if you manually disable
> USE_INLINE in pg_config.h after configuring, do you see a problem?

I summoned the energy to run a build with an old non-inline-aware
C compiler, and it went through, so the explanation is not that
simple.

Looking again at the spoonbill failure, it's striking that it gets as
far as plpython before choking.  The symptoms are consistent with the
theory that USE_INLINE is getting #define'd by some Python header or
other, after having *not* been defined by pg_config.h.  Maybe we should
rename that to PG_USE_INLINE?

BTW, just noticing that this theory espoused in plpython.h:

 * Undefine some things that get (re)defined in the Python headers. They aren't
 * used by the PL/Python code, and all PostgreSQL headers should be included
 * earlier, so this should be pretty safe.

is entirely full of it, as the plpy_*.h files feel free to pull in
random Postgres header files.  Maybe that area needs another look.
It's (probably) not contributing to this particular breakage, but I
can't say that I think undef'ing things like _POSIX_C_SOURCE midstream
is a bright idea at all.  Seems to me that could easily result in
inconsistent results from reading different system header files.

			regards, tom lane




view thread (9+ messages)  latest in thread

Message-ID: <2547.1349760458@sss.pgh.pa.us>
Permalink:  ../2547.1349760458@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2547.1349760458@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@2ndquadrant.com
  Subject: Re: pgsql: Fix thinko in previous commit
  In-Reply-To: <2547.1349760458@sss.pgh.pa.us>
  References: <E1TLKxW-0005Jx-8N@gemulon.postgresql.org> <20121009041314.GC28686@alvh.no-ip.org> <20695.1349757261@sss.pgh.pa.us> <2547.1349760458@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox