Original query:

database=#  SELECT substring(pg_catalog.pg_get_expr(d.adbin, d.adrelid, true) for 128)
   FROM pg_catalog.pg_attrdef d, pg_attribute a
   WHERE d.adrelid = a.attrelid AND d.adnum = a.attnum AND a.atthasdef
and a.attrelid = 50044;