Re: initdb fails - Mailing list pgsql-bugs

From Tom Lane
Subject Re: initdb fails
Date
Msg-id 12844.1097437148@sss.pgh.pa.us
Whole thread Raw
In response to initdb fails  ("Cherry Ann Alib" <alib.ch@g6v.cnt.ncos.nec.co.jp>)
List pgsql-bugs
"Cherry Ann Alib" <alib.ch@g6v.cnt.ncos.nec.co.jp> writes:
> I am currently having a problen initializing database in HPUX11.0.

> creating template1 database in /home/calib/data/base/1... ERROR:  invalid
> input syntax for type "oid": "select cast(($1 + $2) as timestamp with time
> zone)"

Hmm ... what Postgres version is this exactly?  How did you
build/install it?

The problem looks like the contents of the postgres.bki initialization
script are either wrong or being incorrectly interpreted by the
bootstrap loading code (specifically, I'm thinking that it's gotten off
by one column in the contents of pg_proc, so that a value meant for the
prosrc column is being put into an adjacent OID column).

IIRC we have seen cases in the past where postgres.bki got mangled by
buggy versions of "sed" or "awk", since we rely on those programs to
generate postgres.bki from the source files.  Not sure if that is your
problem here though.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: Not able to install 8.0-beta1-20040909
Next
From: Tom Lane
Date:
Subject: Re: COPY bug on 7.3.4 whe copying lots of data