Robert Treat writes:
> Is there some significance to the 128 other than simple formatting?
I think it's just an arbitrary restriction :-(
> Also, if anyone knows when pg_attrdef.adsrc became unreliable, that would
> save
> me some trouble. Thanks in advance.
It has never been reliable.
In the following query (used by psql to show attribute defaults)
SELECT a.attname,
pg_catalog.format_type(a.atttypid, a.atttypmod),
(SELECT substring(pg_catalog.pg_get_expr(d.adbin, d.adrelid) for 128)
FROM pg_catalog.pg_attrdef d
WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a