]> 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:31:20 +0000 (20:31 +0900)
commit9ba78fb0b9e6c5a7115592c2c3116fca16b5184e
tree81a218879d4679312afe557015fde851c4e77d55
parentdf8b7bc9ffff5b00aacff774600b569992cddeb8
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