Skip to content
Snippets Groups Projects
  • Christoph Moench-Tegeder's avatar
    52ade184
    cdr_pgsql cel_pgsql res_config_pgsql: compatibility with PostgreSQL 12 · 52ade184
    Christoph Moench-Tegeder authored
    PostgreSQL 12 finally removed column adsrc from table pg_catalog.pg_attrdef
    (column default values), which has been deprecated since version 8.0.
    Since then, the official/correct/supported way to retrieve the column
    default value from the catalog is function pg_catalog.pg_get_expr().
    
    This change breaks compatibility with pre-8.0 PostgreSQL servers,
    but has reached end-of-support more than a decade ago.
    cdr_pgsql and res_config_pgsql still have support for pre-7.3
    servers, but cleaning that up is perhaps a topic for a major release,
    not this bugfix.
    
    ASTERISK-28571
    
    Change-Id: I834cb3addf1937e19e87ede140bdd16cea531ebe
    52ade184
    History
    cdr_pgsql cel_pgsql res_config_pgsql: compatibility with PostgreSQL 12
    Christoph Moench-Tegeder authored
    PostgreSQL 12 finally removed column adsrc from table pg_catalog.pg_attrdef
    (column default values), which has been deprecated since version 8.0.
    Since then, the official/correct/supported way to retrieve the column
    default value from the catalog is function pg_catalog.pg_get_expr().
    
    This change breaks compatibility with pre-8.0 PostgreSQL servers,
    but has reached end-of-support more than a decade ago.
    cdr_pgsql and res_config_pgsql still have support for pre-7.3
    servers, but cleaning that up is perhaps a topic for a major release,
    not this bugfix.
    
    ASTERISK-28571
    
    Change-Id: I834cb3addf1937e19e87ede140bdd16cea531ebe