postgresql/src
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
..
backend Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
bin Fix client-only installation 2014-01-17 23:08:22 -05:00
common Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
include Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
interfaces Split ecpg_execute() in constituent parts 2014-01-16 18:06:50 -03:00
makefiles Remove leftovers of IRIX port 2013-11-12 06:39:36 -05:00
pl docs: update PL/pgSQL docs about the use of := and = 2014-01-16 16:40:58 -05:00
port Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
template Remove leftovers of IRIX port 2013-11-12 06:39:36 -05:00
test Disallow LATERAL references to the target table of an UPDATE/DELETE. 2014-01-11 19:03:12 -05:00
timezone Update copyright for 2014 2014-01-07 16:05:30 -05:00
tools Move username lookup functions from /port to /common 2014-01-10 18:03:28 -05:00
tutorial Update copyright for 2014 2014-01-07 16:05:30 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS
Makefile Create libpgcommon, and move pg_malloc et al to it 2013-02-12 11:21:05 -03:00
Makefile.global.in build: pass EXTRA_REGRESS_OPTS to secondary regression tests 2013-12-04 10:14:45 -05:00
Makefile.shlib Remove IRIX port. 2013-10-18 08:14:21 -04:00
bcc32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
nls-global.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
win32.mak Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00