postgresql/src/backend
Tom Lane af930e606a Again fix initialization of auto-tuned effective_cache_size.
The previous method was overly complex and underly correct; in particular,
by assigning the default value with PGC_S_OVERRIDE, it prevented later
attempts to change the setting in postgresql.conf, as noted by Jeff Janes.
We should just assign the default value with source PGC_S_DYNAMIC_DEFAULT,
which will have the desired priority relative to the boot_val as well as
user-set values.

There is still a gap in this method: if there's an explicit assignment of
effective_cache_size = -1 in the postgresql.conf file, and that assignment
appears before shared_buffers is assigned, the code will substitute 4 times
the bootstrap default for shared_buffers, and that value will then persist
(since it will have source PGC_S_FILE).  I don't see any very nice way
to avoid that though, and it's not a case to be expected in practice.
The existing comments in guc-file.l look forward to a redesign of the
DYNAMIC_DEFAULT mechanism; if that ever happens, we should consider this
case as one of the things we'd like to improve.
2014-03-20 12:58:30 -04:00
..
access Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
bootstrap Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
catalog Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
commands Fix relcache reference leak in refresh_by_match_merge(). 2014-03-18 11:36:53 -04:00
executor Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
foreign Update copyright for 2014 2014-01-07 16:05:30 -05:00
lib Fix typos in comments. 2014-03-17 20:47:28 +09:00
libpq Cleanups from the remove-native-krb5 patch 2014-03-16 15:22:45 +01:00
main C comments: remove odd blank lines after #ifdef WIN32 lines 2014-03-13 01:34:42 -04:00
nodes Avoid repeated name lookups during table and index DDL. 2014-02-17 09:33:31 -05:00
optimizer Again fix initialization of auto-tuned effective_cache_size. 2014-03-20 12:58:30 -04:00
parser Provide a FORCE NULL option to COPY in CSV mode. 2014-03-04 17:31:59 -05:00
po Translation updates 2013-12-02 00:17:07 -05:00
port Rename huge_tlb_pages to huge_pages, and improve docs. 2014-03-03 20:52:48 +02:00
postmaster Make it easy to detach completely from shared memory. 2014-03-18 07:58:53 -04:00
regex Fix memory leak during regular expression execution. 2014-03-19 11:09:24 -04:00
replication Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
rewrite Fix typos in comments. 2014-03-17 20:47:28 +09:00
snowball Prefer pg_any_to_server/pg_server_to_any over pg_do_encoding_conversion. 2014-02-23 16:59:05 -05:00
storage Setup error context callback for transaction lock waits 2014-03-19 15:10:36 -03:00
tcop Introduce logical decoding. 2014-03-03 16:32:18 -05:00
tsearch Avoid memcpy() with same source and destination address. 2014-03-07 13:14:33 +02:00
utils Again fix initialization of auto-tuned effective_cache_size. 2014-03-20 12:58:30 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
Makefile Get rid of use of dlltool in Mingw builds. 2014-02-11 12:56:20 -05:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00