Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

postgres-lambda-diff

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Tom Lane authored
    get_relkind_objtype, and hence get_object_type, failed when applied to a
    toast table.  This is not a good thing, because it prevents reporting of
    perfectly legitimate permissions errors.  (At present, these functions
    are in fact *only* used to determine the ObjectType argument for
    acl_error() calls.)  It seems best to have them fall back to returning
    OBJECT_TABLE in every case where they can't determine an object type
    for a pg_class entry, so do that.
    
    In passing, make some edits to alter.c to make it more obvious that
    those calls of get_object_type() are used only for error reporting.
    This might save a few cycles in the non-error code path, too.
    
    Back-patch to v11 where this issue originated.
    
    John Hsu, Michael Paquier, Tom Lane
    
    Discussion: https://postgr.es/m/C652D3DF-2B0C-4128-9420-FB5379F6B1E4@amazon.com
    79186419
    History
    Name Last commit Last update