]> granicus.if.org Git - postgresql/commit
Recurse to sequences on ownership change for all relkinds
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 15 Jun 2018 03:22:14 +0000 (23:22 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 26 Sep 2018 18:19:15 +0000 (20:19 +0200)
commit0320ddaf3c08ea17d616549d0e7f45239592fc76
tree61398555e1b1093eeafbe5a5d320b111476316cb
parentd6c55de1f99a9028540516316b95321a7b12a540
Recurse to sequences on ownership change for all relkinds

When a table ownership is changed, we must apply that also to any owned
sequences.  (Otherwise, it would result in a situation that cannot be
restored, because linked sequences must have the same owner as the
table.)  But this was previously only applied to regular tables and
materialized views.  But it should also apply to at least foreign
tables.  This patch removes the relkind check altogether, because it
doesn't save very much and just introduces the possibility of similar
omissions.

Bug: #15238
Reported-by: Christoph Berg <christoph.berg@credativ.de>
src/backend/commands/tablecmds.c