pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [PATCHES] Infrastructure changes for recovery (v8)
Date: Mon, 17 Nov 2008 15:33:13 +0000
Message-ID: <1226935993.3790.12.camel@ebony.2ndQuadrant> (raw)
In-Reply-To: <49217D3F.9050603@enterprisedb.com>
References: <1222815151.4445.1397.camel@ebony.2ndQuadrant>
	<48EC9CC5.6060803@enterprisedb.com>
	<1223468660.4747.294.camel@ebony.2ndQuadrant>
	<1223472898.4747.310.camel@ebony.2ndQuadrant>
	<49217D3F.9050603@enterprisedb.com>


On Mon, 2008-11-17 at 16:18 +0200, Heikki Linnakangas wrote:

> > +
> > +                       /*
> > +                        * Load the flat authorization file into
> postmaster's ca
> > +                        * startup process won't have recomputed
> this from the d
> > +                        * yet, so it may change following recovery.
> > +                        */
> > +                       load_role();
> 
> Is there a race condition here too, if the startup process is writing 
> the auth file at the same time? I guess we'd have the same problem
> with flat files in general, so maybe there's something else that
> mitigates the problem?

The flat file is not race condition proof. When the file is read it is
just a guide and the real data is re-accessed from catalog. So the
problem you see does exist, but is handled elsewhere - not in this
patch.

-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support




view thread (25+ messages)  latest in thread

Message-ID: <1226935993.3790.12.camel@ebony.2ndQuadrant>
Permalink:  ../1226935993.3790.12.camel@ebony.2ndQuadrant/
Also on:    postgresql.org/message-id/1226935993.3790.12.camel@ebony.2ndQuadrant

 · 

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-patches@postgresql.org
  Cc: simon@2ndQuadrant.com, heikki.linnakangas@enterprisedb.com, pgsql-hackers@postgresql.org
  Subject: Re: [PATCHES] Infrastructure changes for recovery (v8)
  In-Reply-To: <1226935993.3790.12.camel@ebony.2ndQuadrant>

* 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