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

tsearchcmds.c

  • Alvaro Herrera's avatar
    b42f09fc
    Fix REASSIGN OWNED for text search objects · b42f09fc
    Alvaro Herrera authored
    Trying to reassign objects owned by a user that had text search
    dictionaries or configurations used to fail with:
    ERROR:  unexpected classid 3600
    or
    ERROR:  unexpected classid 3602
    
    Fix by adding cases for those object types in a switch in pg_shdepend.c.
    
    Both REASSIGN OWNED and text search objects go back all the way to 8.1,
    so backpatch to all supported branches.  In 9.3 the alter-owner code was
    made generic, so the required change in recent branches is pretty
    simple; however, for 9.2 and older ones we need some additional
    reshuffling to enable specifying objects by OID rather than name.
    
    Text search templates and parsers are not owned objects, so there's no
    change required for them.
    
    Per bug #9749 reported by Michal Novotný
    b42f09fc
    History
    Fix REASSIGN OWNED for text search objects
    Alvaro Herrera authored
    Trying to reassign objects owned by a user that had text search
    dictionaries or configurations used to fail with:
    ERROR:  unexpected classid 3600
    or
    ERROR:  unexpected classid 3602
    
    Fix by adding cases for those object types in a switch in pg_shdepend.c.
    
    Both REASSIGN OWNED and text search objects go back all the way to 8.1,
    so backpatch to all supported branches.  In 9.3 the alter-owner code was
    made generic, so the required change in recent branches is pretty
    simple; however, for 9.2 and older ones we need some additional
    reshuffling to enable specifying objects by OID rather than name.
    
    Text search templates and parsers are not owned objects, so there's no
    change required for them.
    
    Per bug #9749 reported by Michal Novotný