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: Fix missing dependency for pg_dump's ENABLE ROW LEVEL SECURITY i
Date: Mon, 27 Aug 2018 19:11:27 +0000
Message-ID: <E1fuMv9-0004oc-HB@gemulon.postgresql.org> (raw)

Fix missing dependency for pg_dump's ENABLE ROW LEVEL SECURITY items.

The archive should show a dependency on the item's table, but it failed
to include one.  This could cause failures in parallel restore due to
emitting ALTER TABLE ... ENABLE ROW LEVEL SECURITY before restoring
the table's data.  In practice the odds of a problem seem low, since
you would typically need to have set FORCE ROW LEVEL SECURITY as well,
and you'd also need a very high --jobs count to have any chance of this
happening.  That probably explains the lack of field reports.

Still, it's a bug, so back-patch to 9.5 where RLS was introduced.

Discussion: https://postgr.es/m/19784.1535390902@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c5e235ff8ad0f4907a736a6440dc4be6f939e65c

Modified Files
--------------
src/bin/pg_dump/pg_dump.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1fuMv9-0004oc-HB@gemulon.postgresql.org>
Permalink:  ../E1fuMv9-0004oc-HB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fuMv9-0004oc-HB@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: Fix missing dependency for pg_dump's ENABLE ROW LEVEL SECURITY i
  In-Reply-To: <E1fuMv9-0004oc-HB@gemulon.postgresql.org>
  References: <E1fuMv9-0004oc-HB@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