Re: fgets failure in Solaris after patching - Mailing list pgsql-general

From Tom Lane
Subject Re: fgets failure in Solaris after patching
Date
Msg-id 7348.1343409670@sss.pgh.pa.us
Whole thread Raw
In response to fgets failure in Solaris after patching  ("Stephan, Richard" <RStephan@nyiso.com>)
Responses Re: fgets failure in Solaris after patching  ("Stephan, Richard" <RStephan@nyiso.com>)
List pgsql-general
"Stephan, Richard" <RStephan@nyiso.com> writes:
> Rebuilt the PostgreSQL server software because we were patching up from 9.0.4 to 9.0.8.  Deployed software and
receivedthe following error when trying to restart server. 
> fgets failure: Error 0
> The program postgres is needed by pg_ctl but was not found in the same directory as pg_ctl

Is that a verbatim copy of the error message?  When I try intentionally
provoking this type of failure (by renaming the postgres executable out
of the way), 9.0 pg_ctl gives me this:

$ pg_ctl start
The program "postgres" is needed by pg_ctl but was not found in the
same directory as "/home/tgl/version90/bin/pg_ctl".
Check your installation.
$

The lack of double quotes and the lack of a full path to the pg_ctl
program make me wonder if you're running some really old copy of
pg_ctl instead of the 9.0 version as intended.

Anyway, if you didn't copy-and-paste exactly, what the error indicates
is that pg_ctl tried to execute "postgres -V" and didn't get any output.
What happens when you try that directly?

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Switching from OSX to Linux, multi-line queries in \copy don't work anymore
Next
From: Alan Hodgson
Date:
Subject: Re: REINDEX and COPY is wainting since Jun 21!