Diff for /wikisrc/pkgsrc/how_to_install_a_postgresql_server.mdwn between versions 1.2 and 1.3

version 1.2, 2012/02/05 07:14:36 version 1.3, 2013/10/25 17:37:20
Line 35  Please copy the pgsql example script to  Line 35  Please copy the pgsql example script to 
     # cp /usr/pkg/share/examples/rc.d/pgsql /etc/rc.d      # cp /usr/pkg/share/examples/rc.d/pgsql /etc/rc.d
           
   
 If you want to keep the databse cluster other place than the default location, just change the user **pgsql'**s home directory, before proceeding to the initialisation:   If you want to keep the database cluster other place than the default location, just change the user **pgsql'**s home directory, before proceeding to the initialisation: 
           
     # usermode -d /var/db/pgsql pgsql      # usermod -d /var/db/pgsql pgsql
           
   
 This directory must be owned by pgsql:pgsql.   This directory must be owned by pgsql:pgsql. 
Line 71  to your /etc/rc.conf  Line 71  to your /etc/rc.conf 
   
 To create a database switch to the user pgsql   To create a database switch to the user pgsql 
           
     # su pgsql      # createdb -e -h 127.0.0.1 -U pgsql newdbname
           
   
 and create the database   and create the database 

Removed from v.1.2  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb