Revision 13934
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
1073 | 1073 |
|
1074 | 1074 |
|
1075 | 1075 |
-- |
1076 |
-- Name: comment(col_ref); Type: FUNCTION; Schema: util; Owner: - |
|
1077 |
-- |
|
1078 |
|
|
1079 |
CREATE FUNCTION comment(col col_ref) RETURNS text |
|
1080 |
LANGUAGE sql STABLE |
|
1081 |
AS $_$ |
|
1082 |
SELECT description |
|
1083 |
FROM pg_description |
|
1084 |
WHERE |
|
1085 |
objoid = $1.table_ |
|
1086 |
AND classoid = 'pg_class'::regclass |
|
1087 |
AND objsubid = util.col_num($1) |
|
1088 |
$_$; |
|
1089 |
|
|
1090 |
|
|
1091 |
-- |
|
1076 | 1092 |
-- Name: comment(oid); Type: FUNCTION; Schema: util; Owner: - |
1077 | 1093 |
-- |
1078 | 1094 |
|
Also available in: Unified diff
schemas/util.sql: added comment(col_ref)