• Tom Lane's avatar
    Fix brin_summarize_new_values() to check index type and ownership. · 3d2b31e3
    Tom Lane authored
    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
    3d2b31e3
brin.c 33.7 KB