diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-26 12:56:09 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-26 12:56:09 -0500 |
commit | e10838026b373f01d1de0f4f7ea80a60c30565da (patch) | |
tree | 7e8b23843316870d57ef37b2418fa665d51331e5 /src/backend/access/transam/commit_ts.c | |
parent | 2e947ba977eba1c0c31a2981d090b7b1897c49c2 (diff) | |
download | postgresql-e10838026b373f01d1de0f4f7ea80a60c30565da.tar.gz postgresql-e10838026b373f01d1de0f4f7ea80a60c30565da.zip |
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
Diffstat (limited to 'src/backend/access/transam/commit_ts.c')
0 files changed, 0 insertions, 0 deletions