pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: Anoo Sivadasan Pillai <aspillai@in.rm.com>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: FW: max_connections and shared_buffers
Date: Mon, 03 Sep 2007 09:42:21 -0400
Message-ID: <7894.1188826941@sss.pgh.pa.us> (raw)
In-Reply-To: <dcc563d10709030028s3ec40330lc6beb2256c7279a6@mail.gmail.com>
References: <772CDA49C515244FA14E34443F62E56402F173E0@EX-INDIA1.internal.rmplc.net>
	<dcc563d10709022347j19305a58q9c9a2dc987768e5@mail.gmail.com>
	<772CDA49C515244FA14E34443F62E56402F17455@EX-INDIA1.internal.rmplc.net>
	<dcc563d10709030028s3ec40330lc6beb2256c7279a6@mail.gmail.com>

"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> Not sure with Windows.  I'm strictly a unix type of guy.  I'm guessing
> that Windows is detecting too many connections / out of memory and
> shutting down the service.

The whole thing is pretty strange.  "received fast shutdown request"
means that the postmaster got SIGINT --- a moment's look at the code
proves there is no other possibility.  Now what sent it SIGINT?
AFAICS there are only two possible paths: "pg_ctl stop -m fast" or
this little bit of code in win32/signal.c:

/* Console control handler will execute on a thread created
   by the OS at the time of invocation */
static BOOL WINAPI
pg_console_handler(DWORD dwCtrlType)
{
    if (dwCtrlType == CTRL_C_EVENT ||
        dwCtrlType == CTRL_BREAK_EVENT ||
        dwCtrlType == CTRL_CLOSE_EVENT ||
        dwCtrlType == CTRL_SHUTDOWN_EVENT)
    {
        pg_queue_signal(SIGINT);
        return TRUE;
    }
    return FALSE;
}

Can any Windows hackers speculate on causes of this?

			regards, tom lane



view thread (7+ messages)

Message-ID: <7894.1188826941@sss.pgh.pa.us>
Permalink:  ../7894.1188826941@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7894.1188826941@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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott.marlowe@gmail.com, aspillai@in.rm.com, pgsql-hackers@postgresql.org
  Subject: Re: FW: max_connections and shared_buffers
  In-Reply-To: <7894.1188826941@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