pgsql: Can't completely get rid of #ifndef FRONTEND in palloc.h :-( - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Can't completely get rid of #ifndef FRONTEND in palloc.h :-(
Date
Msg-id E1WeaJI-0006gF-EW@gemulon.postgresql.org
Whole thread Raw
Responses Re: pgsql: Can't completely get rid of #ifndef FRONTEND in palloc.h :-(  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-committers
Can't completely get rid of #ifndef FRONTEND in palloc.h :-(

pg_controldata includes postgres.h not postgres_fe.h, so utils/palloc.h
must be able to compile in a "#define FRONTEND" context.  It appears that
Solaris Studio is smart enough to persuade us to define PG_USE_INLINE,
but not smart enough to not make a copy of unreferenced static functions;
which leads to an unsatisfied reference to CurrentMemoryContext.  So we
need an #ifndef FRONTEND around that declaration.  Per buildfarm.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/36825f38dd44d8630b07be843dfc1619fe9f8d5c

Modified Files
--------------
src/include/utils/palloc.h |    7 +++++++
1 file changed, 7 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Improve generation algorithm for database system identifier.
Next
From: Tom Lane
Date:
Subject: pgsql: Can't completely get rid of #ifndef FRONTEND in palloc.h :-(