Re: porting question: funky uid names?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mark Bixby <mark(at)bixby(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: porting question: funky uid names?
Date: 2001-03-09 20:57:45
Message-ID: Pine.LNX.4.30.0103092152180.929-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Bixby writes:

> Creating global relations in /blah/blah/blah
> ERROR: pg_atoi: error in "BIXBY": can't parse "BIXBY"
> ERROR: pg_atoi: error in "BIXBY": can't parse "BIXBY"
> syntax error 25 : -> .

I'm curious about that last line. Is that the shell complaining?

The offending command seems to be

insert OID = 0 ( POSTGRES PGUID t t t t _null_ _null_ )

in the file global1.bki.source. (This is the file the creates the global
relations.) The POSTGRES and PGUID quantities are substituted when initdb
runs:

cat "$GLOBAL" \
| sed -e "s/POSTGRES/$POSTGRES_SUPERUSERNAME/g" \
-e "s/PGUID/$POSTGRES_SUPERUSERID/g" \
| "$PGPATH"/postgres $BACKENDARGS template1

For some reason the line probably ends up being

insert OID = 0 ( MGR BIXBY 484 t t t t _null_ _null_ )
^
which causes the observed failure to parse BIXBY as user id. This brings
us back to why the dot disappears, which seems to be related to the error
message

syntax error 25 : -> .
^^^

Can you try using a different a sed command (e.g, GNU sed)?

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-09 20:58:43 Re: undefined reference pq
Previous Message Tom Lane 2001-03-09 20:48:33 Re: Internationalized error messages