pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix brin_summarize_new_values() to check index type and ownershi
2+ messages / 1 participants
[nested] [flat]

* pgsql: Fix brin_summarize_new_values() to check index type and ownershi
@ 2015-12-26 17:56  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-12-26 17:56 UTC (permalink / raw)
  To: pgsql-committers

Fix brin_summarize_new_values() to check index type and ownership.

brin_summarize_new_values() did not check that the passed OID was for
an index at all, much less that it was a BRIN index, and would fail in
obscure ways if it wasn't (possibly damaging data first?).  It also
lacked any permissions test; by analogy to VACUUM, we should only allow
the table's owner to summarize.

Noted by Jeff Janes, fix by Michael Paquier and me

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/e10838026b373f01d1de0f4f7ea80a60c30565da

Modified Files
--------------
src/backend/access/brin/brin.c     |   42 +++++++++++++++++++++++++++++++++---
src/test/regress/expected/brin.out |   11 ++++++++++
src/test/regress/sql/brin.sql      |    5 +++++
3 files changed, 55 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


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

* pgsql: Fix brin_summarize_new_values() to check index type and ownershi
@ 2015-12-26 17:56  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2015-12-26 17:56 UTC (permalink / raw)
  To: pgsql-committers

Fix brin_summarize_new_values() to check index type and ownership.

brin_summarize_new_values() did not check that the passed OID was for
an index at all, much less that it was a BRIN index, and would fail in
obscure ways if it wasn't (possibly damaging data first?).  It also
lacked any permissions test; by analogy to VACUUM, we should only allow
the table's owner to summarize.

Noted by Jeff Janes, fix by Michael Paquier and me

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3d2b31e30e2931b3edb5ab9d0eafca13e7bcffe5

Modified Files
--------------
src/backend/access/brin/brin.c     |   42 +++++++++++++++++++++++++++++++++---
src/test/regress/expected/brin.out |   11 ++++++++++
src/test/regress/sql/brin.sql      |    5 +++++
3 files changed, 55 insertions(+), 3 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


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


end of thread, other threads:[~2015-12-26 17:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-26 17:56 pgsql: Fix brin_summarize_new_values() to check index type and ownershi Tom Lane <tgl@sss.pgh.pa.us>
2015-12-26 17:56 pgsql: Fix brin_summarize_new_values() to check index type and ownershi Tom Lane <tgl@sss.pgh.pa.us>

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