]> granicus.if.org Git - postgresql/commit
Don't allow data_directory to be set in postgresql.auto.conf by ALTER SYSTEM.
authorFujii Masao <fujii@postgresql.org>
Thu, 19 Jun 2014 11:31:20 +0000 (20:31 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 19 Jun 2014 11:32:55 +0000 (20:32 +0900)
commitfc5cf383d9ae894e3c9e94701ce5dc468d334433
tree7e74ef81b0ced5dd4200ca384b99c02bcd9907a4
parenta6896e00058c55692347f898a9bc2a2974520df8
Don't allow data_directory to be set in postgresql.auto.conf by ALTER SYSTEM.

data_directory could be set both in postgresql.conf and postgresql.auto.conf so far.
This could cause some problematic situations like circular definition. To avoid such
situations, this commit forbids a user to set data_directory in postgresql.auto.conf.

Backpatch this to 9.4 where ALTER SYSTEM command was introduced.

Amit Kapila, reviewed by Abhijit Menon-Sen, with minor adjustments by me.
doc/src/sgml/ref/alter_system.sgml
src/backend/utils/misc/guc.c
src/include/utils/guc.h