Обсуждение: backend closed the channel unexpectedly

Поиск
Список
Период
Сортировка

backend closed the channel unexpectedly

От
pxn
Дата:
We have a system developed on PostgreSQL 7.1 on a Mac OS X 10.1
(FreeBSD) system -- which works well there.  Now we're trying to port
the code to another box, running RedHat Linux 6.2 -- which has
PostgresSQL already installed:

    PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66

Several files defining PL/pqSQL stored procedures need to be loaded, but
the "psql" command interpreter dies part way through loading with the
error message:

-----

pqReadData() -- backend closed the channel unexpectedly.
         This probably means the backend terminated abnormally
         before or while processing the request.
We have lost the connection to the backend, so further processing is
impossible.  Terminating.

----

If the files are split into smaller parts, one can keep loading stored
procedures (Oracle 8.0.5.1 had a bug like that...) but "psql" still dies
with the same error after each successive procedure is loaded.

For what it's worth, the database server is launched from RedHat's
script "/etc/rc.d/init.d/postgresql" via the line:

    su -l postgres -c '/usr/bin/postmaster -i -S -D/var/lib/pgsql'

Are we breaking some kind of limit on stored procedure definitions?  I'm
new to PostgreSQL, aside from development mentioned on Mac OS X.
Compared with previous work in Oracle and MySQL, this rocks!

Thanks --

Paco Nathan
paco@famous.aspect.to

"a little Java + XML + SQL + X3D = conversational characters"


Re: backend closed the channel unexpectedly

От
Tom Lane
Дата:
pxn <paco@famous.aspect.to> writes:
> PostgresSQL already installed:
>     PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66

That's a long time and a lot of bugs ago.  I do not recommend using
6.5.3; update to 7.1.3 and things will be better.

As for the specific problem, you didn't give us enough info to guess.
Output from the postmaster log file, or a stack trace from the crashed
backend, might help.  But I'm not sure if it's worth worrying about
given the old PG version.

            regards, tom lane