• Tom Lane's avatar
    Make psql's \d+ show reloptions for all relkinds. · c1f3c045
    Tom Lane authored
    Formerly it would only show them for relkinds 'r' and 'f' (plain tables
    and foreign tables).  However, as of 9.2, views can also have reloptions,
    namely security_barrier.  The relkind restriction seems pointless and
    not at all future-proof, so just print reloptions whenever there are any.
    
    In passing, make some cosmetic improvements to the code that pulls the
    "tableinfo" fields out of the PGresult.
    
    Noted and patched by Dean Rasheed, with adjustment for all relkinds by me.
    c1f3c045
describe.c 117 KB