Re: preventing encoding conversion while starting up - Mailing list pgsql-hackers

From Hannu Krosing
Subject Re: preventing encoding conversion while starting up
Date
Msg-id 1027009106.8551.16.camel@taru.tm.ee
Whole thread Raw
In response to preventing encoding conversion while starting up  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Responses Re: preventing encoding conversion while starting up
List pgsql-hackers
On Thu, 2002-07-18 at 06:55, Tatsuo Ishii wrote:
> I have faced a problem with encoding conversion while the database is
> starting up. If postmaster accepts a connection request while in the
> state, it issues a fatal message "The database system is starting
> up". Then the encoding conversion system tries to convert the message
> to client encoding if neccessary (e.g. PGCLIENTENCODING is set for
> postmaster process). Then it calles recomputeNamespacePath() which
> calls GetUserId(), it ends up with an assersion error (see below).
> 
> To prevent this, I would like to add a public function to postmaster.c
> to know we are in the database starting up phase:

Why can't we just open the listening socket _after_ the database has
completed starting up phase ?

------------------
Hannu



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: regression in CVS HEAD
Next
From: Bruce Momjian
Date:
Subject: Re: regression in CVS HEAD