postgresql/src/include
Tom Lane 528c454b2a Don't #include utils/palloc.h in common/fe_memutils.h.
This breaks the principle that common/ ought not depend on anything in the
server, not only code-wise but in the headers.  The only arguable advantage
is avoidance of duplication of half a dozen extern declarations, and even
that is rather dubious, considering that the previous coding was wrong
about which declarations to duplicate: it exposed pnstrdup() to frontend
code even though no such function is provided in fe_memutils.c.

On the same principle, don't #include utils/memutils.h in the frontend
build of psprintf.c.  This requires duplicating the definition of
MaxAllocSize, but that seems fine to me: there's no a-priori reason why
frontend code should use the same size limit as the backend anyway.

In passing, clean up some rather odd layout and ordering choices that
were imposed on palloc.h to reduce the number of #ifdefs required by
the previous approach.

Per gripe from Christoph Berg.  There's still more work to do to make
include/common/ clean, but this part seems reasonably noncontroversial.
2014-04-26 14:14:28 -04:00
..
access Fix race when updating a tuple concurrently locked by another process 2014-04-24 15:41:55 -03:00
bootstrap Update copyright for 2014 2014-01-07 16:05:30 -05:00
catalog Fix incorrect pg_proc.proallargtypes entries for two built-in functions. 2014-04-23 21:21:05 -04:00
commands Offer triggers on foreign tables. 2014-03-23 02:16:34 -04:00
common Don't #include utils/palloc.h in common/fe_memutils.h. 2014-04-26 14:14:28 -04:00
datatype Update copyright for 2014 2014-01-07 16:05:30 -05:00
executor Update copyright for 2014 2014-01-07 16:05:30 -05:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Update copyright for 2014 2014-01-07 16:05:30 -05:00
libpq Fix assorted issues in client host name lookup. 2014-04-02 17:11:24 -04:00
mb Fix typo 2014-02-13 21:50:43 -05:00
nodes Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
optimizer Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
parser Allow polymorphic aggregates to have non-polymorphic state data types. 2014-04-23 19:17:41 -04:00
port Enable building with Visual Studion 2013. 2014-01-26 09:49:10 -05:00
portability Update copyright for 2014 2014-01-07 16:05:30 -05:00
postmaster Separate multixact freezing parameters from xid's 2014-02-13 19:36:31 -03:00
regex Allow regex operations to be terminated early by query cancel requests. 2014-03-01 15:20:56 -05:00
replication Allow logical decoding via the walsender interface. 2014-03-10 13:50:28 -04:00
rewrite Make security barrier views automatically updatable 2014-04-12 21:04:58 -04:00
snowball Update copyright for 2014 2014-01-07 16:05:30 -05:00
storage Get rid of the dynamic shared memory state file. 2014-04-08 11:39:55 -04:00
tcop Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
tsearch Allow opclasses to provide tri-valued GIN consistent functions. 2014-03-12 17:51:30 +02:00
utils Don't #include utils/palloc.h in common/fe_memutils.h. 2014-04-26 14:14:28 -04:00
.gitignore Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
c.h Prevent double macro definition of WIN32. 2014-01-17 11:49:44 -05:00
fmgr.h Fix documentation of FmgrInfo.fn_nargs. 2014-04-22 23:22:12 -04:00
funcapi.h Introduce jsonb, a structured format for storing json. 2014-03-23 16:40:19 -04:00
getaddrinfo.h Fix assorted issues in client host name lookup. 2014-04-02 17:11:24 -04:00
getopt_long.h Centralize getopt-related declarations in a new header file pg_getopt.h. 2014-02-15 14:31:30 -05:00
Makefile Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
miscadmin.h Make sure -D is an absolute path when starting server on Windows. 2014-04-04 18:42:13 -04:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.win32 Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_manual.h Fix typos in comments for ALTER SYSTEM. 2014-01-27 12:23:20 +09:00
pg_config.h.in Allow use of "z" flag in our printf calls, and use it where appropriate. 2014-01-23 17:18:33 -05:00
pg_config.h.win32 Enable building with Visual Studion 2013. 2014-01-26 09:49:10 -05:00
pg_getopt.h Centralize getopt-related declarations in a new header file pg_getopt.h. 2014-02-15 14:31:30 -05:00
pg_trace.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pgstat.h Fix some compiler warnings that clang emits with -pedantic. 2014-04-04 11:29:50 -04:00
pgtar.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pgtime.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
port.h Make sure -D is an absolute path when starting server on Windows. 2014-04-04 18:42:13 -04:00
postgres_ext.h Provide database object names as separate fields in error messages. 2013-01-29 17:08:26 -05:00
postgres_fe.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
postgres.h Further code review for pg_lsn data type. 2014-02-19 10:06:59 -05:00
rusagestub.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
windowapi.h Update copyright for 2014 2014-01-07 16:05:30 -05:00