pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dietmar May <dcmay@dmis.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Race condition with libpq
Date: Mon, 26 May 2003 13:05:19 -0400
Message-ID: <2388.1053968719@sss.pgh.pa.us> (raw)
In-Reply-To: <00a001c323a6$cbb02d90$fb02a8c0@muskrat>
References: <00a001c323a6$cbb02d90$fb02a8c0@muskrat>

"Dietmar May" <dcmay@dmis.com> writes:
> So, why can't the server-side code that closes the connection release any
> resources associated with that connection before the socket is closed? It
> seems that doing so could fix this problem quite cleanly.

How would that help?  The client isn't waiting around for it, because it
already closed its socket.

> Perhaps I'm misunderstanding the manual - "4.1: When a new database is
> created, the template database [template1] is essentially cloned.

At least in recent versions, template1 is only the default template,
not the sole possibility.

In theory you could in fact run without any template1, but it would
break enough client-side code that I doubt anyone would find it useful
to do so in practice.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <2388.1053968719@sss.pgh.pa.us>
Permalink:  ../2388.1053968719@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2388.1053968719@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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dcmay@dmis.com
  Subject: Re: Race condition with libpq
  In-Reply-To: <2388.1053968719@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