Re: LDAP check flapping on crake due to race - Mailing list pgsql-hackers

From Noah Misch
Subject Re: LDAP check flapping on crake due to race
Date
Msg-id 20200803002857.GC43516@rfd.leadboat.com
Whole thread Raw
In response to Re: LDAP check flapping on crake due to race  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: LDAP check flapping on crake due to race  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-hackers
On Mon, Aug 03, 2020 at 12:12:57PM +1200, Thomas Munro wrote:
> On Mon, Aug 3, 2020 at 4:09 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > I'm inclined to suggest that the LDAP test's test_access could use
> > an empty stdin and pass "-c 'SELECT 1'" as a command line option
> > instead.  (Maybe that's exactly what you meant, but I'm not sure.)
> 
> Good idea.  Here's a patch like that.

While I had meant a different approach, this is superior.

> > I've not been able to duplicate this locally, so I have no idea if
> > that'd really fix it.
> 
> Me neither -- I guess someone who enjoys perl could hack IPC::Run to
> take a short nap at the right moment.

Not essential to reproduce first, I think.



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: Comment simplehash/dynahash trade-offs
Next
From: Thomas Munro
Date:
Subject: Re: LDAP check flapping on crake due to race