• Andres Freund's avatar
    Represent columns requiring insert and update privileges indentently. · 2c8f4836
    Andres Freund authored
    Previously, relation range table entries used a single Bitmapset field
    representing which columns required either UPDATE or INSERT privileges,
    despite the fact that INSERT and UPDATE privileges are separately
    cataloged, and may be independently held.  As statements so far required
    either insert or update privileges but never both, that was
    sufficient. The required permission could be inferred from the top level
    statement run.
    
    The upcoming INSERT ... ON CONFLICT UPDATE feature needs to
    independently check for both privileges in one statement though, so that
    is not sufficient anymore.
    
    Bumps catversion as stored rules change.
    
    Author: Peter Geoghegan
    Reviewed-By: Andres Freund
    2c8f4836
outfuncs.c 77.1 KB