Revision 12369
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
597 | 597 |
|
598 | 598 |
|
599 | 599 |
-- |
600 |
-- Name: append_comment(regclass, text); Type: FUNCTION; Schema: util; Owner: - |
|
601 |
-- |
|
602 |
|
|
603 |
CREATE FUNCTION append_comment(table_ regclass, comment text) RETURNS void |
|
604 |
LANGUAGE sql STRICT |
|
605 |
AS $_$ |
|
606 |
SELECT util.set_comment($1, concat(util.comment($1), $2)) |
|
607 |
$_$; |
|
608 |
|
|
609 |
|
|
610 |
-- |
|
611 |
-- Name: FUNCTION append_comment(table_ regclass, comment text); Type: COMMENT; Schema: util; Owner: - |
|
612 |
-- |
|
613 |
|
|
614 |
COMMENT ON FUNCTION append_comment(table_ regclass, comment text) IS ' |
|
615 |
comment: must start and end with a newline |
|
616 |
'; |
|
617 |
|
|
618 |
|
|
619 |
-- |
|
600 | 620 |
-- Name: array_fill(anyelement, integer); Type: FUNCTION; Schema: util; Owner: - |
601 | 621 |
-- |
602 | 622 |
|
Also available in: Unified diff
schemas/util.sql: added append_comment(regclass)