From 9ba78fb0b9e6c5a7115592c2c3116fca16b5184e Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Thu, 19 Jun 2014 20:31:20 +0900 Subject: 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/alter_system.sgml b/doc/src/sgml/ref/alter_system.sgml index 081b3722a0b..d11f6beeed7 100644 --- a/doc/src/sgml/ref/alter_system.sgml +++ b/doc/src/sgml/ref/alter_system.sgml @@ -76,6 +76,16 @@ ALTER SYSTEM SET configuration_parameter + + Notes + + + This command can't be used to set + and any parameters (e.g., preset options) + that are not allowed in postgresql.conf. + + + Examples -- cgit v1.2.3