pgsql: Fix brin_summarize_new_values() to check index type and ownershi

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix brin_summarize_new_values() to check index type and ownershi
Дата
Msg-id E1aCt4h-0005QU-Fk@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Fujii Masao
Дата:
Сообщение: pgsql: Improve SECURITY LABEL tab completion
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix brin_summarize_new_values() to check index type and ownershi