Re: [HACKERS] limit to default display in psql

2009-11-15 Thread Tom Lane
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.

[HACKERS] limit to default display in psql

2009-11-15 Thread Robert Treat
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