Re: pgsql: Simplify validate_exec() by using access(2) to check file - Mailing list pgsql-committers

From Bruce Momjian
Subject Re: pgsql: Simplify validate_exec() by using access(2) to check file
Date
Msg-id 201001140438.o0E4cav10760@momjian.us
Whole thread Raw
In response to Re: pgsql: Simplify validate_exec() by using access(2) to check file  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-committers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Are there any outside code modifications now that this is thread-safe?
> > I can't find any myself.
>
> I only saw the note to not trust the function in threadable code.
> It might let us do some things later, but there doesn't seem to be
> an immediate application.

Thanks.  That's what I thought too. We do have some code in libpq to
handle non-thread-safe functions (by taking a thread lock), but I didn't
see any cases where we did that when we called this code.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Simplify validate_exec() by using access(2) to check file
Next
From: sriggs@postgresql.org (Simon Riggs)
Date:
Subject: pgsql: First part of refactoring of code for ResolveRecoveryConflict.