postgresql/src/backend/tsearch
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
..
dict_ispell.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict_simple.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict_synonym.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict_thesaurus.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dict.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
hunspell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.affix Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
ispell_sample.dict Add regression tests for ispell, synonym and thesaurus dictionaries. 2007-09-11 11:54:42 +00:00
Makefile Update copyright for 2014 2014-01-07 16:05:30 -05:00
regis.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
spell.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
synonym_sample.syn Add prefix support for synonym dictionary 2009-08-14 14:53:20 +00:00
thesaurus_sample.ths Remove extra newlines at end and beginning of files, add missing newlines 2010-08-19 05:57:36 +00:00
to_tsany.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_locale.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_parse.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_selfuncs.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_typanalyze.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
ts_utils.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
wparser_def.c Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
wparser.c Update copyright for 2014 2014-01-07 16:05:30 -05:00