Skip to content
Snippets Groups Projects
  • Andrew Dunstan's avatar
    3c000fd9
    Fix two small bugs in json's populate_record_worker · 3c000fd9
    Andrew Dunstan authored
    The first bug is not releasing a tupdesc when doing an early return out
    of the function. The second bug is a logic error in choosing when to do
    an early return if given an empty jsonb object.
    
    Bug reports from Pavel Stehule and Tom Lane respectively.
    
    Backpatch to 9.4 where these were introduced.
    3c000fd9
    History
    Fix two small bugs in json's populate_record_worker
    Andrew Dunstan authored
    The first bug is not releasing a tupdesc when doing an early return out
    of the function. The second bug is a logic error in choosing when to do
    an early return if given an empty jsonb object.
    
    Bug reports from Pavel Stehule and Tom Lane respectively.
    
    Backpatch to 9.4 where these were introduced.