summaryrefslogtreecommitdiffstats
path: root/postgresql-config-comment.patch
diff options
context:
space:
mode:
authorPavel Kajaba <pkajaba@redhat.com>2015-11-18 10:02:17 +0100
committerPavel Kajaba <pkajaba@redhat.com>2015-11-18 10:02:17 +0100
commitf51c859081bdb81b89293fa7a4d52782ce8429cb (patch)
treee0941f50fe65bcbe241150915e584e868e9a8ae0 /postgresql-config-comment.patch
downloadpostgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.tar.gz
postgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.tar.xz
postgresql-f51c859081bdb81b89293fa7a4d52782ce8429cb.zip
Added initial files from branch rhscl-2.1-rh-postgresql94-rhel-7
Diffstat (limited to 'postgresql-config-comment.patch')
-rw-r--r--postgresql-config-comment.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/postgresql-config-comment.patch b/postgresql-config-comment.patch
new file mode 100644
index 0000000..9df0221
--- /dev/null
+++ b/postgresql-config-comment.patch
@@ -0,0 +1,19 @@
+Add note warning users that Postgres' port number is forced in the service
+file, mainly because it's traditional in Red Hat installations to set it
+there rather than in postgresql.conf. (There are minor usability benefits
+to doing it this way though, for example that the postmaster's port number
+is visible in "ps" as part of its command line.)
+
+
+diff -Naur postgresql-9.2rc1.orig/src/backend/utils/misc/postgresql.conf.sample postgresql-9.2rc1/src/backend/utils/misc/postgresql.conf.sample
+--- postgresql-9.2rc1.orig/src/backend/utils/misc/postgresql.conf.sample 2012-08-23 18:06:49.000000000 -0400
++++ postgresql-9.2rc1/src/backend/utils/misc/postgresql.conf.sample 2012-09-01 21:57:55.498629897 -0400
+@@ -61,6 +61,8 @@
+ # defaults to 'localhost'; use '*' for all
+ # (change requires restart)
+ #port = 5432 # (change requires restart)
++# Note: In RHEL/Fedora installations, you can't set the port number here;
++# adjust it in the service file instead.
+ #max_connections = 100 # (change requires restart)
+ # Note: Increasing max_connections costs ~400 bytes of shared memory per
+ # connection slot, plus lock space (see max_locks_per_transaction).