pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Make inherited TRUNCATE perform access permission checks on pare
7+ messages / 1 participants
[nested] [flat]

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:47 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/56bc82a5111737d76f211356eeb2b1a8e657e8b4

Modified Files
--------------
src/backend/commands/tablecmds.c         | 67 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 84 insertions(+), 18 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:47 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:47 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/606f350de92a15fdb2c6a3c209f60cf74d2825e7

Modified Files
--------------
src/backend/commands/tablecmds.c         | 67 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 84 insertions(+), 18 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:48 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/928e755d22de56e998b0b76596ebda1941e0e323

Modified Files
--------------
src/backend/commands/tablecmds.c         | 67 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 84 insertions(+), 18 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:48 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4b96c03a0a2a6bdf685a0bef9fff1fb5f04516aa

Modified Files
--------------
src/backend/commands/tablecmds.c         | 69 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 85 insertions(+), 19 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:48 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/commands/tablecmds.c         | 70 +++++++++++++++++++++++---------
src/test/regress/expected/privileges.out | 21 ++++++++++
src/test/regress/sql/privileges.sql      | 14 +++++++
3 files changed, 86 insertions(+), 19 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:48 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:48 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
REL_12_STABLE

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

Modified Files
--------------
src/backend/commands/tablecmds.c         | 32 +++++++++++++++++++++++++-------
src/test/regress/expected/privileges.out | 21 +++++++++++++++++++++
src/test/regress/sql/privileges.sql      | 14 ++++++++++++++
3 files changed, 60 insertions(+), 7 deletions(-)



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

* pgsql: Make inherited TRUNCATE perform access permission checks on pare
@ 2020-01-30 15:49 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2020-01-30 15:49 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Make inherited TRUNCATE perform access permission checks on parent table only.

Previously, TRUNCATE command through a parent table checked the
permissions on not only the parent table but also the children tables
inherited from it. This was a bug and inherited queries should perform
access permission checks on the parent table only. This commit fixes
that bug.

Back-patch to all supported branches.

Author: Amit Langote
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/CAHGQGwFHdSvifhJE+-GSNqUHSfbiKxaeQQ7HGcYz6SC2n_oDcg@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/commands/tablecmds.c         | 32 +++++++++++++++++++++++++-------
src/test/regress/expected/privileges.out | 21 +++++++++++++++++++++
src/test/regress/sql/privileges.sql      | 14 ++++++++++++++
3 files changed, 60 insertions(+), 7 deletions(-)



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


end of thread, other threads:[~2020-01-30 15:49 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30 15:47 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:47 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:48 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:48 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:48 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:48 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>
2020-01-30 15:49 pgsql: Make inherited TRUNCATE perform access permission checks on pare Fujii Masao <fujii@postgresql.org>

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