pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid rare race condition in privileges.sql regression test.
Date: Tue, 16 Oct 2018 17:57:21 +0000
Message-ID: <E1gCTar-0001vf-49@gemulon.postgresql.org> (raw)

Avoid rare race condition in privileges.sql regression test.

We created a temp table, then switched to a new session, leaving
the old session to clean up its temp objects in background.  If that
took long enough, the eventual attempt to drop the user that owns
the temp table could fail, as exhibited today by sidewinder.
Fix by dropping the temp table explicitly when we're done with it.

It's been like this for quite some time, so back-patch to all
supported branches.

Report: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=sidewinder&dt=2018-10-16%2014%3A45%3A00

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7249d1d64127b0856d81d3774c7641712ab3a6ef

Modified Files
--------------
src/test/regress/expected/privileges.out | 1 +
src/test/regress/sql/privileges.sql      | 1 +
2 files changed, 2 insertions(+)



view thread (7+ messages)  latest in thread

Message-ID: <E1gCTar-0001vf-49@gemulon.postgresql.org>
Permalink:  ../E1gCTar-0001vf-49@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gCTar-0001vf-49@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Avoid rare race condition in privileges.sql regression test.
  In-Reply-To: <E1gCTar-0001vf-49@gemulon.postgresql.org>
  References: <E1gCTar-0001vf-49@gemulon.postgresql.org>

* 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