postgresql/src/include/utils
Tom Lane 0d79c0a8cc Make various variables const (read-only).
These changes should generally improve correctness/maintainability.
A nice side benefit is that several kilobytes move from initialized
data to text segment, allowing them to be shared across processes and
probably reducing copy-on-write overhead while forking a new backend.
Unfortunately this doesn't seem to help libpq in the same way (at least
not when it's compiled with -fpic on x86_64), but we can hope the linker
at least collects all nominally-const data together even if it's not
actually part of the text segment.

Also, make pg_encname_tbl[] static in encnames.c, since there seems
no very good reason for any other code to use it; per a suggestion
from Wim Lewis, who independently submitted a patch that was mostly
a subset of this one.

Oskari Saarenmaa, with some editorialization by me
2014-01-18 16:04:32 -05:00
..
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
acl.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
array.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ascii.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
attoptcache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
builtins.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
bytea.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
cash.h Add casts from int4 and int8 to numeric. 2011-04-05 09:35:43 -04:00
catcache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
combocid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
date.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
datetime.h Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
datum.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
dynahash.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
dynamic_loader.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
elog.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
evtcache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
fmgrtab.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
formatting.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
geo_decls.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
guc.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
guc_tables.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
help_config.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
hsearch.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
inet.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
int8.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
inval.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
json.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
jsonapi.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
logtape.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
lsyscache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
memdebug.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
memutils.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
nabstime.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
numeric.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
palloc.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_crc.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_crc_tables.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_locale.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
pg_lzcompress.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pg_rusage.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
plancache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
portal.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
ps_status.h Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
rangetypes.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
rbtree.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
rel.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relcache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relfilenodemap.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
relmapper.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
reltrigger.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
resowner.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
resowner_private.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
selfuncs.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
snapmgr.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
snapshot.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
sortsupport.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
spccache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
syscache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
timeout.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
timestamp.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tqual.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tuplesort.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tuplestore.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
typcache.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
tzparser.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
uuid.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
varbit.h Update copyright for 2014 2014-01-07 16:05:30 -05:00
xml.h Update copyright for 2014 2014-01-07 16:05:30 -05:00