diff options
Diffstat (limited to 'databases/postgresql92-server/files')
-rw-r--r-- | databases/postgresql92-server/files/pkg-message-server.in | 7 | ||||
-rw-r--r-- | databases/postgresql92-server/files/postgresql.in | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/databases/postgresql92-server/files/pkg-message-server.in b/databases/postgresql92-server/files/pkg-message-server.in index 3650316fba7b..ae43d123e1af 100644 --- a/databases/postgresql92-server/files/pkg-message-server.in +++ b/databases/postgresql92-server/files/pkg-message-server.in @@ -63,6 +63,13 @@ For postmaster settings, see ~pgsql/data/postgresql.conf NB. FreeBSD's PostgreSQL port logs to syslog by default See ~pgsql/data/postgresql.conf for more info +NB. If you're not using a checksumming filesystem like ZFS, you might + wish to enable data checksumming. It can only be enabled during + the initdb phase, by adding the "--data-checksums" flag to + the postgres_initdb_flags rcvar. Check the initdb(1) manpage + for more info and make sure you understand the performance + implications. + ====================================================================== To run PostgreSQL at startup, add diff --git a/databases/postgresql92-server/files/postgresql.in b/databases/postgresql92-server/files/postgresql.in index b6724571bd29..f6ea340f7f0f 100644 --- a/databases/postgresql92-server/files/postgresql.in +++ b/databases/postgresql92-server/files/postgresql.in @@ -50,6 +50,8 @@ status_cmd="postgresql_command status" initdb_cmd="postgresql_initdb" +su_cmd="/usr/bin/su" + if [ -n "$2" ]; then profile="$2" if [ "x${postgresql_profiles}" != "x" ]; then @@ -103,12 +105,12 @@ command_args="-D ${postgresql_data} ${postgresql_flags}" postgresql_command() { - su -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" + ${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" } postgresql_initdb() { - su -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" + ${su_cmd} -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" } run_rc_command "$1" |