Revision 13950
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1073 | 1073 |
|
1074 | 1074 |
|
1075 | 1075 |
-- |
1076 |
-- Name: cols(regclass); Type: FUNCTION; Schema: util; Owner: - |
|
1077 |
-- |
|
1078 |
|
|
1079 |
CREATE FUNCTION cols(table_ regclass) RETURNS SETOF col_ref |
|
1080 |
LANGUAGE sql STABLE |
|
1081 |
AS $_$ |
|
1082 |
SELECT ($1, name)::util.col_ref FROM util.col_names($1) name |
|
1083 |
$_$; |
|
1084 |
|
|
1085 |
|
|
1086 |
-- |
|
1076 | 1087 |
-- Name: comment(col_ref); Type: FUNCTION; Schema: util; Owner: - |
1077 | 1088 |
-- |
1078 | 1089 |
|
Also available in: Unified diff
schemas/util.sql: added cols(regclass)