dbTalk Databases Forums  

[Fwd: Abrupt close of pgsql backend]

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss [Fwd: Abrupt close of pgsql backend] in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Deepa K
 
Posts: n/a

Default [Fwd: Abrupt close of pgsql backend] - 10-26-2004 , 12:00 AM








---------------------------- Original Message ----------------------------
Subject: Abrupt close of pgsql backend
From: "Deepa K" <kdeepa (AT) midascomm (DOT) com>
Date: Mon, October 25, 2004 8:04 pm
To: postgresql-general (AT) postgresql (DOT) org
--------------------------------------------------------------------------

Hi,
I am running postgresql 7.1.3 in RedHat Linux 7.2. From an external C
application, three connections are established with postmaster (it is
started with -i option) through unix sockets. Two times I received EPIPE
error when trying to send a query to postmaster. This is because of the
abrupt closure of pgsql backend.

The query sent is formed dynamically and hence I'm unable to get
the query whose processing may have led to such abrupt closure. But this
application is working for 2 years till now without any such
problems. So I don't really suspect the query.

The postgresql todo lists that usage of views can lead to
such abrupt closure. But there are no views used in my application.
The last reason, for abnormal closure that I understand is if
the hard disk is full. But this is also not the case under study.

Coming to the question,
a. What are the (other) reasons for postmaster closing
sockets abnormally?

b. How can the application detect such a abnormal closure of
socket?

--
regards,
Deepa K



--
regards,
Deepa K

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
  #2  
Old   
Richard Huxton
 
Posts: n/a

Default Re: [Fwd: Abrupt close of pgsql backend] - 10-26-2004 , 03:36 AM






Deepa K wrote:
Quote:
Hi,
I am running postgresql 7.1.3 in RedHat Linux 7.2. From an external C
application, three connections are established with postmaster (it is
started with -i option) through unix sockets. Two times I received EPIPE
error when trying to send a query to postmaster. This is because of the
abrupt closure of pgsql backend.
Your logs should say something about why a backend crashed, and if you
alter the settings will record each statement too.

--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org



Reply With Quote
  #3  
Old   
Scott Marlowe
 
Posts: n/a

Default Re: [Fwd: Abrupt close of pgsql backend] - 10-26-2004 , 09:27 PM



On Mon, 2004-10-25 at 23:00, Deepa K wrote:

Quote:
Hi,
I am running postgresql 7.1.3 in RedHat Linux 7.2. From an external C
application, three connections are established with postmaster (it is
started with -i option) through unix sockets. Two times I received EPIPE
error when trying to send a query to postmaster. This is because of the
abrupt closure of pgsql backend.

The query sent is formed dynamically and hence I'm unable to get
the query whose processing may have led to such abrupt closure.
Were you running a later version, you'd have the option of logging your
queries. I don't think 7.1 supported that though.

Quote:
But this
application is working for 2 years till now without any such
problems. So I don't really suspect the query.
You may be having a bigger overall problem that is hard to see,
especially since 7.1 suffered from several conditions, like index
bloating, that the fix is reindexing the database.

Quote:
The postgresql todo lists that usage of views can lead to
such abrupt closure. But there are no views used in my application.
You'll be glad to know views are MUCH more robust and performant since
7.1 was introduced.

Quote:
The last reason, for abnormal closure that I understand is if
the hard disk is full. But this is also not the case under study.
Anything that could cause a major error or a backend crash could cause
your abnormal closures.

Quote:
Coming to the question,
a. What are the (other) reasons for postmaster closing
sockets abnormally?

b. How can the application detect such a abnormal closure of
socket?
You're asking a question about why an outdated version of PostgreSQL
that has known (and possible unknown) issues. While I'm sure folks will
be more than willing to try and help you, it's quite likely that many
problems you'll find in 7.1.x will have been fixed in the intervening
years, and the very real solution might wind up being an upgrade. If
you've already been thinking of upgrading, it might be worth trying it
now on a test server to see how it goes. If an upgrade isn't too hard,
it might be the easiest solution there is. And if it DOESN'T fix the
problem, people in the general (and then the hackers group if general
can't fix it,) will be much more interested in it.


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
  #4  
Old   
Andrew Sullivan
 
Posts: n/a

Default Re: [Fwd: Abrupt close of pgsql backend] - 10-27-2004 , 07:56 AM



On Tue, Oct 26, 2004 at 08:27:31PM -0600, Scott Marlowe wrote:
Quote:
Were you running a later version, you'd have the option of logging your
queries. I don't think 7.1 supported that though.
It certainly did. I can't remember the invocation. You'd better
have a log rotator, though, if you log all your queries, because your
logs get real big real fast.

That isn't to say that moving off 7.1 isn't a really good idea.


--
Andrew Sullivan | ajs (AT) crankycanuck (DOT) ca
The plural of anecdote is not data.
--Roger Brinner

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.