pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Recurse to sequences on ownership change for all relkinds
7+ messages / 1 participants
[nested] [flat]

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/5f6b0e6d69f1087847c8456b3f69761c950d52c6

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/26b877d280eeb23d57b507a1ebb14f240d317eb8

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL9_6_STABLE

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

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6485469606c15ae219977b1c228a266087eb30ca

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0320ddaf3c08ea17d616549d0e7f45239592fc76

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/992f8542a370d6885fc19e79e0fc46a1ebf902cb

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Recurse to sequences on ownership change for all relkinds
@ 2018-09-26 18:53  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2018-09-26 18:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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>

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/14ce78e478b1708bc146685ea1870cc18d6181a4

Modified Files
--------------
src/backend/commands/tablecmds.c | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2018-09-26 18:53 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>
2018-09-26 18:53 pgsql: Recurse to sequences on ownership change for all relkinds Peter Eisentraut <peter_e@gmx.net>

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