Owner@Thought1 ~ $ sh -x /usr/bin/initdb pgdata + basename /usr/bin/initdb + CMDNAME=initdb + VERSION=7.3.1 + bindir=/usr/bin + datadir=/usr/share/postgresql + echo \c + grep -s c + ECHO_N=echo -n + ECHO_C= + echo /usr/bin/initdb + grep / + echo /usr/bin/initdb + sed s,/[^/]*$,, + self_path=/usr/bin + [ x/usr/bin != x ] + [ -x /usr/bin/postgres ] + /usr/bin/postgres -V + [ xpostgres (PostgreSQL) 7.3.1 = xpostgres (PostgreSQL) 7.3.1 ] + PGPATH=/usr/bin + [ ! -x /usr/bin/pg_id ] + /usr/bin/pg_id -n -u + EffectiveUser=Owner + [ -z Owner ] + /usr/bin/pg_id -u + [ 1003 -eq 0 ] + echo 7.3.1 + sed -e s!^\([0-9][0-9]*\.[0-9][0-9]*\).*!\1! + short_version=7.3 + [ x7.3 = x ] + ENCODINGID=0 + debug= + noclean= + show_setting= + POSTGRES_SUPERUSERNAME=Owner + [ 1 -gt 0 ] + PGDATA=pgdata + shift + [ 0 -gt 0 ] + [ ] + [ ] + [ -z pgdata ] + POSTGRES_BKI=/usr/share/postgresql/postgres.bki + POSTGRES_DESCR=/usr/share/postgresql/postgres.description + PG_HBA_SAMPLE=/usr/share/postgresql/pg_hba.conf.sample + PG_IDENT_SAMPLE=/usr/share/postgresql/pg_ident.conf.sample + POSTGRESQL_CONF_SAMPLE=/usr/share/postgresql/postgresql.conf.sample + [ = yes ] + [ = yes ] + [ = yes ] + [ ! -f /usr/share/postgresql/postgres.bki ] + [ ! -f /usr/share/postgresql/postgres.description ] + [ ! -f /usr/share/postgresql/pg_hba.conf.sample ] + [ ! -f /usr/share/postgresql/pg_ident.conf.sample ] + [ ! -f /usr/share/postgresql/postgresql.conf.sample ] + sed 1q /usr/share/postgresql/postgres.bki + [ x# PostgreSQL 7.3 != x# PostgreSQL 7.3 ] + trap echo "Caught signal." ; exit_nicely 1 2 3 15 + echo The files belonging to this database system will be owned by user "Owner". The files belonging to this database system will be owned by user "Owner". + echo This user must also own the server process. This user must also own the server process. + echo + TAB= + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + pg_getlocale COLLATE + arg=COLLATE + unset ret + eval echo ${PGLC_COLLATE+set} + echo + varset= + eval echo $PGLC_COLLATE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_COLLATE+set} + echo + varset= + eval echo $LC_COLLATE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC = xC + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + pg_getlocale TIME + arg=TIME + unset ret + eval echo ${PGLC_TIME+set} + echo + varset= + eval echo $PGLC_TIME + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_TIME+set} + echo + varset= + eval echo $LC_TIME + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC = xC + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + pg_getlocale NUMERIC + arg=NUMERIC + unset ret + eval echo ${PGLC_NUMERIC+set} + echo + varset= + eval echo $PGLC_NUMERIC + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_NUMERIC+set} + echo + varset= + eval echo $LC_NUMERIC + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC = xC + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + pg_getlocale MONETARY + arg=MONETARY + unset ret + eval echo ${PGLC_MONETARY+set} + echo + varset= + eval echo $PGLC_MONETARY + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_MONETARY+set} + echo + varset= + eval echo $LC_MONETARY + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC = xC + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + pg_getlocale MESSAGES + arg=MESSAGES + unset ret + eval echo ${PGLC_MESSAGES+set} + echo + varset= + eval echo $PGLC_MESSAGES + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_MESSAGES+set} + echo + varset= + eval echo $LC_MESSAGES + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC = xC + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + echo The database cluster will be initialized with locale C. The database cluster will be initialized with locale C. + pg_getlocale COLLATE + arg=COLLATE + unset ret + eval echo ${PGLC_COLLATE+set} + echo + varset= + eval echo $PGLC_COLLATE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_COLLATE+set} + echo + varset= + eval echo $LC_COLLATE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + test xC != xC + echo + umask 077 + ls -A pgdata + pgdata_contents= + [ x != x ] + [ ! -d pgdata ] + echo -n creating directory pgdata... creating directory pgdata... + mkdir -p pgdata + made_new_pgdata=yes + echo ok ok + [ ! -d pgdata/base ] + echo -n creating directory pgdata/base... creating directory pgdata/base... + mkdir pgdata/base + echo ok ok + [ ! -d pgdata/global ] + echo -n creating directory pgdata/global... creating directory pgdata/global... + mkdir pgdata/global + echo ok ok + [ ! -d pgdata/pg_xlog ] + echo -n creating directory pgdata/pg_xlog... creating directory pgdata/pg_xlog... + mkdir pgdata/pg_xlog + echo ok ok + [ ! -d pgdata/pg_clog ] + echo -n creating directory pgdata/pg_clog... creating directory pgdata/pg_clog... + mkdir pgdata/pg_clog + echo ok ok + PGSQL_OPT=-F -Dpgdata + [ = yes ] + PGSQL_OPT=-F -Dpgdata -o /dev/null + echo -n creating template1 database in pgdata/base/1... creating template1 database in pgdata/base/1... + rm -rf pgdata/base/1 + mkdir pgdata/base/1 + echo 7.3 + cat /usr/share/postgresql/postgres.bki + sed -e s/POSTGRES/Owner/g -e s/ENCODING/0/g + pg_getlocale COLLATE + arg=COLLATE + unset ret + eval echo ${PGLC_COLLATE+set} + echo + varset= + eval echo $PGLC_COLLATE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_COLLATE+set} + echo + varset= + eval echo $LC_COLLATE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + LC_COLLATE=C + pg_getlocale CTYPE + arg=CTYPE + unset ret + eval echo ${PGLC_CTYPE+set} + echo + varset= + eval echo $PGLC_CTYPE + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_CTYPE+set} + echo + varset= + eval echo $LC_CTYPE + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + LC_CTYPE=C + export LC_COLLATE + export LC_CTYPE + unset LC_ALL + /usr/bin/postgres -boot -x1 -F -Dpgdata -o /dev/null template1 + echo 7.3 + echo ok ok + echo -n creating configuration files... creating configuration files... + cp /usr/share/postgresql/pg_hba.conf.sample pgdata/pg_hba.conf + cp /usr/share/postgresql/pg_ident.conf.sample pgdata/pg_ident.conf + cat /usr/share/postgresql/postgresql.conf.sample + echo + echo + echo # + echo # Locale settings + echo # + echo # (initialized by initdb -- may be changed) + pg_getlocale MESSAGES + arg=MESSAGES + unset ret + eval echo ${PGLC_MESSAGES+set} + echo + varset= + eval echo $PGLC_MESSAGES + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_MESSAGES+set} + echo + varset= + eval echo $LC_MESSAGES + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + echo LC_MESSAGES = 'C' + pg_getlocale MONETARY + arg=MONETARY + unset ret + eval echo ${PGLC_MONETARY+set} + echo + varset= + eval echo $PGLC_MONETARY + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_MONETARY+set} + echo + varset= + eval echo $LC_MONETARY + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + echo LC_MONETARY = 'C' + pg_getlocale NUMERIC + arg=NUMERIC + unset ret + eval echo ${PGLC_NUMERIC+set} + echo + varset= + eval echo $PGLC_NUMERIC + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_NUMERIC+set} + echo + varset= + eval echo $LC_NUMERIC + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + echo LC_NUMERIC = 'C' + pg_getlocale TIME + arg=TIME + unset ret + eval echo ${PGLC_TIME+set} + echo + varset= + eval echo $PGLC_TIME + echo + varval= + test = set + eval echo ${PGLOCALE+set} + echo + varset= + eval echo $PGLOCALE + echo + varval= + test = set + eval echo ${LC_ALL+set} + echo + varset= + eval echo $LC_ALL + echo + varval= + test = set + eval echo ${LC_TIME+set} + echo + varset= + eval echo $LC_TIME + echo + varval= + test = set + eval echo ${LANG+set} + echo + varset= + eval echo $LANG + echo + varval= + test = set + test != set + ret=C + echo C + echo LC_TIME = 'C' + chmod 0600 pgdata/pg_hba.conf pgdata/pg_ident.conf pgdata/postgresql.conf + echo ok ok + PGSQL_OPT=-F -Dpgdata -o /dev/null -O -c search_path=pg_catalog + echo -n initializing pg_shadow... initializing pg_shadow... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + [ ] + echo -n enabling unlimited row size for system tables... enabling unlimited row size for system tables... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + echo -n initializing pg_depend... initializing pg_depend... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + echo -n creating system views... creating system views... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + echo -n loading pg_description... loading pg_description... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + cat + cat /usr/share/postgresql/postgres.description + cat + echo ok ok + echo -n creating conversions... creating conversions... + grep -v ^DROP CONVERSION /usr/share/postgresql/conversion_create.sql + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + echo ok ok + echo -n setting privileges on built-in objects... setting privileges on built-in objects... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c+ cat search_path=pg_catalog template1 + echo ok ok + echo -n vacuuming database template1... vacuuming database template1... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + echo -n copying template1 to template0... copying template1 to template0... + /usr/bin/postgres -F -Dpgdata -o /dev/null -O -c search_path=pg_catalog template1 + [ 0 -ne 0 ] + echo ok ok + echo + echo Success. You can now start the database server using: Success. You can now start the database server using: + echo + echo /usr/bin/postmaster -D pgdata /usr/bin/postmaster -D pgdata + echo or or + echo /usr/bin/pg_ctl -D pgdata -l logfile start /usr/bin/pg_ctl -D pgdata -l logfile start + echo + exit 0 Owner@Thought1 ~ $