[GENERAL] getting domain information from query results

2014-01-09 Thread Marco Baringer
hi, i have this schema: create domain almost_a_string AS text; create table object ( name_like_thing almost_a_string ); and i'm trying to go from the results, using postgresql's frontend/backend protocol, of this query: select name_like_thing from object; to the domain of the column nam

[GENERAL] getting domain information from query results

2014-01-09 Thread Marco Baringer
i am trying to access a value's (a particular column of a row of query results) domain information; but all i seem to be able to get at, using the frontend/backend protocol, is the underlying type. assuming i have this schema: create domain almost_a_string AS text; create table object ( name