Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLYnN-0005pp-Sg for pgsql-committers@postgresql.org; Tue, 09 Oct 2012 12:20:21 +0000 Received: from smtprelay0034.b.hostedemail.com ([64.98.42.34] helo=smtprelay.b.hostedemail.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLYnK-00066f-Dc for pgsql-committers@postgresql.org; Tue, 09 Oct 2012 12:20:21 +0000 Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay02.b.hostedemail.com (Postfix) with SMTP id 9D8AB11F76C; Tue, 9 Oct 2012 12:20:12 +0000 (UTC) X-Panda: scanned! X-Session-Marker: 616C76686572726540616C76682E6E6F2D69702E6F7267 X-Filterd-Recvd-Size: 3217 Received: from perhan.alvh.no-ip.org (unknown [190.95.25.25]) (Authenticated sender: alvherre@alvh.no-ip.org) by omf04.b.hostedemail.com (Postfix) with ESMTPA; Tue, 9 Oct 2012 12:20:12 +0000 (UTC) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 005F86E139; Tue, 9 Oct 2012 09:20:09 -0300 (CLST) Date: Tue, 9 Oct 2012 09:20:09 -0300 From: Alvaro Herrera To: Tom Lane Cc: Alvaro Herrera , pgsql-committers@postgresql.org Subject: Re: pgsql: Fix thinko in previous commit Message-ID: <20121009122009.GB4214@alvh.no-ip.org> References: <20121009041314.GC28686@alvh.no-ip.org> <20695.1349757261@sss.pgh.pa.us> <2547.1349760458@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <2547.1349760458@sss.pgh.pa.us> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/122 X-Sequence-Number: 49431 Tom Lane wrote: > 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? >=20 > 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. Yeah, I had tried that, sorry for not making it explicit. > 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? Ahh, that makes a lot of sense, yes; and I see that the Python headers in my machine do mention USE_INLINE (though this is not defined, even on pyconfig.h), so it is indeed possible that on some other machines it is defined somewhere in those headers. I will go rename ours. Thanks for the research. > BTW, just noticing that this theory espoused in plpython.h: >=20 > * Undefine some things that get (re)defined in the Python headers. The= y aren't > * used by the PL/Python code, and all PostgreSQL headers should be inc= luded > * earlier, so this should be pretty safe. >=20 > 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. Ugh. I notice that this seems to be a recent development; I think it only started with 147c2482 (and I made it worse at 0a664ec2 and c219d9b0). Maybe we should just clean that up a bit. --=20 =C1lvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services