Skip site navigation (1) Skip section navigation (2)

Initdb error

From: "Daniel A(dot) Melo" <daniel(at)codata(dot)com(dot)br>
To: "J(dot)H(dot)M(dot) Dassen (Ray)" <jdassen(at)cistron(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Initdb error
Date: 2001-03-15 13:21:49
Message-ID: 3AB0C1ED.ABD88DA4@codata.com.br (view raw or flat)
Thread:
Lists: pgsql-generalpgsql-novice
Hi All,
Hi Ray,
Thanks for help,

i typed  "sh -x /path/to/initdb" e here are the messages that make no sense to
me:

++ basename /usr/local/pgsql/bin/initdb
+ CMDNAME=initdb
+ '[' '' ']'
+ TEMPFILE=/tmp/initdb.1070
+ echo '\c'
+ grep -s c
+ ECHO_N=echo -n
+ ECHO_C=
+ echo /usr/local/pgsql/bin/initdb
+ grep /
++ echo /usr/local/pgsql/bin/initdb
++ sed 's,/[^/]*$,,'
+ PGPATH=/usr/local/pgsql/bin
+ '[' '!' -x /usr/local/pgsql/bin/postgres ']'
+ '[' '!' -x /usr/local/pgsql/bin/pg_version ']'
+ '[' '!' -x /usr/local/pgsql/bin/pg_id ']'
++ /usr/local/pgsql/bin/pg_id -n -u
+ EffectiveUser=postgres
+ '[' -z postgres ']'
++ /usr/local/pgsql/bin/pg_id -u
+ '[' 562 -eq 0 ']'
+ MULTIBYTEID=0
+ MULTIBYTE=
+ debug=0
+ noclean=0
+ template_only=0
+ show_setting=0
+ POSTGRES_SUPERUSERNAME=postgres
++ /usr/local/pgsql/bin/pg_id -u
+ POSTGRES_SUPERUSERID=562
+ '[' 2 -gt 0 ']'
+ PGDATA=/usr/local/pgsql/data
+ shift
+ shift
+ '[' 0 -gt 0 ']'
+ '[' '' ']'
+ '[' '' ']'
+ '[' -z /usr/local/pgsql/data ']'
+ echo /usr/local/pgsql/data
+ grep '^/'
+ '[' 0 -ne 0 ']'
+ '[' -z '' ']'
+ '[' -f /usr/local/pgsql/bin/../lib/global1.bki.source ']'
+ PGLIB=/usr/local/pgsql/bin/../lib
+ break
+ '[' -z /usr/local/pgsql/bin/../lib ']'
+ TEMPLATE=/usr/local/pgsql/bin/../lib/local1_template1.bki.source
+ GLOBAL=/usr/local/pgsql/bin/../lib/global1.bki.source
+ PG_HBA_SAMPLE=/usr/local/pgsql/bin/../lib/pg_hba.conf.sample
+ TEMPLATE_DESCR=/usr/local/pgsql/bin/../lib/local1_template1.description
+ GLOBAL_DESCR=/usr/local/pgsql/bin/../lib/global1.description
+ PG_GEQO_SAMPLE=/usr/local/pgsql/bin/../lib/pg_geqo.sample
+
PG_POSTMASTER_OPTS_DEFAULT_SAMPLE=/usr/local/pgsql/bin/../lib/postmaster.opts.default.sample

+ '[' 0 -eq 1 ']'
+ '[' '!' -f /usr/local/pgsql/bin/../lib/local1_template1.bki.source ']'
+ '[' '!' -f /usr/local/pgsql/bin/../lib/global1.bki.source ']'
+ '[' '!' -f /usr/local/pgsql/bin/../lib/pg_hba.conf.sample ']'
+ '[' 0 -ne 0 ']'
+ '[' 0 -eq 0 ']'
+ '[' 0 -ne 0 ']'
+ '[' 0 -ne 0 ']'
+ trap 'echo "Caught signal." ; exit_nicely' 1 2 3 15
+ echo 'This database system will be initialized with username "postgres".'
+ echo 'This user will own all the data files and must also own the server
process.'
+ echo
+ umask 077
+ '[' -f /usr/local/pgsql/data/PG_VERSION ']'
+ '[' '!' -d /usr/local/pgsql/data ']'
+ echo 'Creating database system directory /usr/local/pgsql/data'
+ mkdir /usr/local/pgsql/data
+ '[' '!' -d /usr/local/pgsql/data/base ']'
+ echo 'Creating database system directory /usr/local/pgsql/data/base'
+ mkdir /usr/local/pgsql/data/base
+ '[' '!' -d /usr/local/pgsql/data/pg_xlog ']'
+ echo 'Creating database XLOG directory /usr/local/pgsql/data/pg_xlog'
+ mkdir /usr/local/pgsql/data/pg_xlog
+ rm -rf /usr/local/pgsql/data/base/template1
+ mkdir /usr/local/pgsql/data/base/template1
+ '[' 0 -eq 1 ']'
+ BACKEND_TALK_ARG=-Q
+ BACKENDARGS=-boot -C -F -D/usr/local/pgsql/data -Q
+ FIRSTRUN=-boot -x -C -F -D/usr/local/pgsql/data -Q
+ echo 'Creating template database in /usr/local/pgsql/data/base/template1'
+ '[' 0 -ne 0 ']'
+ cat /usr/local/pgsql/bin/../lib/local1_template1.bki.source
+ sed -e s/PGUID/562/g
+ /usr/local/pgsql/bin/postgres -boot -x -C -F -D/usr/local/pgsql/data -Q
template1
ERROR:  Error: unknown type 'ame'.

ERROR:  Error: unknown type 'ame'.

+ /usr/local/pgsql/bin/pg_version /usr/local/pgsql/data/base/template1
+ '[' 0 -eq 0 ']'
+ echo 'Creating global relations in /usr/local/pgsql/data/base'
+ '[' 0 -ne 0 ']'
+ cat /usr/local/pgsql/bin/../lib/global1.bki.source
+ sed -e s/POSTGRES/postgres/g -e s/PGUID/562/g
+ /usr/local/pgsql/bin/postgres -boot -C -F -D/usr/local/pgsql/data -Q
template1
ERROR:  Error: unknown type 'ame'.

ERROR:  Error: unknown type 'ame'.

+ /usr/local/pgsql/bin/pg_version /usr/local/pgsql/data
+ cp /usr/local/pgsql/bin/../lib/pg_hba.conf.sample
/usr/local/pgsql/data/pg_hba.conf
+ cp /usr/local/pgsql/bin/../lib/pg_geqo.sample
/usr/local/pgsql/data/pg_geqo.sample
+ cp /usr/local/pgsql/bin/../lib/postmaster.opts.default.sample
/usr/local/pgsql/data/postmaster.opts.default
+ echo 'Adding template1 database to pg_database'
+ echo 'open pg_database'
+ echo 'insert (template1 562 0 template1)'
+ echo 'close pg_database'
+ '[' 0 -ne 0 ']'
+ /usr/local/pgsql/bin/postgres -boot -C -F -D/usr/local/pgsql/data -Q
template1
/usr/local/pgsql/bin/initdb: line 481:  1100 Falha de segmentação    (core
dumped) "$PGPATH"/postgres $BACKENDARGS template1 <"$TEMPFILE"
+ retval=139
+ rm -f /tmp/initdb.1070
+ '[' 139 -ne 0 ']'
+ exit_nicely
+ stty echo
+ echo
+ echo 'initdb failed.'
+ '[' 0 -eq 0 ']'
+ echo 'Removing /usr/local/pgsql/data.'
+ rm -rf /usr/local/pgsql/data
+ echo 'Removing temp file /tmp/initdb.1070.'
+ rm -rf /tmp/initdb.1070
+ exit 1

][]´s

Daniel A.





In response to

pgsql-novice by date

Next:From: Dax DuskinDate: 2001-03-15 14:51:44
Subject: perl problems
Previous:From: G. Anthony ReinaDate: 2001-03-15 00:43:38
Subject: Re: SELECT query

pgsql-general by date

Next:From: Oliver ElphickDate: 2001-03-15 13:33:56
Subject: Re: Re: LIKE and indexes?
Previous:From: Christopher SawtellDate: 2001-03-15 13:21:14
Subject: Minor disaster after upgrading with cvs.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group