• Tom Lane's avatar
    Remove use_json_as_text options from json_to_record/json_populate_record. · a749a23d
    Tom Lane authored
    The "false" case was really quite useless since all it did was to throw
    an error; a definition not helped in the least by making it the default.
    Instead let's just have the "true" case, which emits nested objects and
    arrays in JSON syntax.  We might later want to provide the ability to
    emit sub-objects in Postgres record or array syntax, but we'd be best off
    to drive that off a check of the target field datatype, not a separate
    argument.
    
    For the functions newly added in 9.4, we can just remove the flag arguments
    outright.  We can't do that for json_populate_record[set], which already
    existed in 9.3, but we can ignore the argument and always behave as if it
    were "true".  It helps that the flag arguments were optional and not
    documented in any useful fashion anyway.
    a749a23d
jsonb.out 47 KB