pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: gav <gav@nlr.ru>
Cc: pgsql-general@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] pqReadData...
Date: Sun, 23 Jan 2000 11:18:13 -0500
Message-ID: <6052.948644293@sss.pgh.pa.us> (raw)
In-Reply-To: <13697.000123@nlr.ru>
References: <13697.000123@nlr.ru>

gav <gav@nlr.ru> writes:
> I have the database created with the postgresql 6.5.3. I make many
> inserts (10-30 thousands) in one of tables in one transaction.
> Sometimes I receive the error:

> pqReadData() -- backend closed the channel unexpectedly.
>        This probably means the backend terminated abnormally
>        before or while processing the request

> What is it? Is this a bug?

It's a bug, but we'll need a lot more info than that to fix it.
For example: what were the last few commands you issued before
the crash?  Is there anything in the postmaster log file?
(6.5.* libpq has a bad habit of dropping backend error messages
if the channel is closed immediately after the message arrives.
So if the backend reports a FATAL error and quits, the above is
all you see.  But the FATAL message ought to be logged in the
postmaster log file.)  Is there a core dump file from the failed
backend?  (It'd be in .../data/base/yourdatabasename/core)  If
so, can you use gdb to get a backtrace from the core file?

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <6052.948644293@sss.pgh.pa.us>
Permalink:  ../6052.948644293@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6052.948644293@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gav@nlr.ru, pgsql-general@postgreSQL.org
  Subject: Re: [SQL] pqReadData...
  In-Reply-To: <6052.948644293@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox