]> granicus.if.org Git - postgresql/commit
Fix missing dependency for pg_dump's ENABLE ROW LEVEL SECURITY items.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Aug 2018 19:11:12 +0000 (15:11 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 27 Aug 2018 19:11:12 +0000 (15:11 -0400)
commit3998e55af0505458e99b11bb0b77bb528e647696
treeda35d6a245fd701390d55e358db4fa35a38645af
parent8895daf1bdb206f374b50a723dd9a8e944b74c25
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
src/bin/pg_dump/pg_dump.c