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

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a9baeb361d635963a19a0268a7d60636c813d2ee
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2014-04-28T01:24:19Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/include/utils/palloc.h modified +7 −0