pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Samuel Stearns <SStearns@internode.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Shoaib Mir <shoaibmir@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Postgres Crash
Date: Fri, 10 Dec 2010 15:27:14 +1030
Message-ID: <68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au> (raw)
In-Reply-To: <14434.1291956744@sss.pgh.pa.us>
References: <68B59BEDCD36854AADBDF17E91B2937A07844CD029@EXCHMAIL.staff.internode.com.au>
	<AANLkTikYRT15R61-ZByCzs_PoMT50JHbQFWeymeYjtjn@mail.gmail.com>
	<68B59BEDCD36854AADBDF17E91B2937A07844CD02E@EXCHMAIL.staff.internode.com.au>
	<13055.1291952802@sss.pgh.pa.us>
	<68B59BEDCD36854AADBDF17E91B2937A07844CD04D@EXCHMAIL.staff.internode.com.au>
	<13945.1291954973@sss.pgh.pa.us>
	<68B59BEDCD36854AADBDF17E91B2937A07844CD059@EXCHMAIL.staff.internode.com.au>
	<14104.1291955542@sss.pgh.pa.us>
	<68B59BEDCD36854AADBDF17E91B2937A07844CD061@EXCHMAIL.staff.internode.com.au>
	<14434.1291956744@sss.pgh.pa.us>

Tom,

So you are in agreement that the fix is:

This simple patch seem to fix the problem

--- src/backend/postmaster/postmaster.c.orig    2010-10-27
19:07:42.000000000 +0400
+++ src/backend/postmaster/postmaster.c 2010-10-27 19:08:25.000000000 +0400
@@ -1917,7 +1917,7 @@
                if (port->sock >= 0)
                        StreamClose(port->sock);
                ConnFree(port);
-               port = NULL;
+               return NULL;
        }
        else
        {

--



view thread (22+ messages)  latest in thread

Message-ID: <68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au>
Permalink:  ../68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au/
Also on:    postgresql.org/message-id/68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: SStearns@internode.com.au, tgl@sss.pgh.pa.us, shoaibmir@gmail.com
  Subject: Re: Postgres Crash
  In-Reply-To: <68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au>
  References: <68B59BEDCD36854AADBDF17E91B2937A07844CD029@EXCHMAIL.staff.internode.com.au> <AANLkTikYRT15R61-ZByCzs_PoMT50JHbQFWeymeYjtjn@mail.gmail.com> <68B59BEDCD36854AADBDF17E91B2937A07844CD02E@EXCHMAIL.staff.internode.com.au> <13055.1291952802@sss.pgh.pa.us> <68B59BEDCD36854AADBDF17E91B2937A07844CD04D@EXCHMAIL.staff.internode.com.au> <13945.1291954973@sss.pgh.pa.us> <68B59BEDCD36854AADBDF17E91B2937A07844CD059@EXCHMAIL.staff.internode.com.au> <14104.1291955542@sss.pgh.pa.us> <68B59BEDCD36854AADBDF17E91B2937A07844CD061@EXCHMAIL.staff.internode.com.au> <14434.1291956744@sss.pgh.pa.us> <68B59BEDCD36854AADBDF17E91B2937A07844CD06C@EXCHMAIL.staff.internode.com.au>

* 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