From 2eebcddeaa2a60fe836a8a10ac6c697bdd36bf8e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 18 Jan 2000 18:09:02 +0000 Subject: Bruce, Attached is a patch which patches cleanly against the Sunday afternoon snapshot. It modifies pg_dump to dump COMMENT ON statements for user-definable descriptions. In addition, it also modifies comment.c so that the operator behavior is as Peter E. would like: a comment on an operator is applied to the underlying function. Thanks, Mike Mascari --- src/bin/pg_dump/common.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/bin/pg_dump/common.c') diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index 9b6d641418..f111ca57ab 100644 --- a/src/bin/pg_dump/common.c +++ b/src/bin/pg_dump/common.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.38 2000/01/18 07:29:58 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.39 2000/01/18 18:09:02 momjian Exp $ * * Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2 * @@ -289,6 +289,14 @@ dumpSchema(FILE *fout, g_comment_start, g_comment_end); flagInhAttrs(tblinfo, numTables, inhinfo, numInherits); + if (!tablename && fout) + { + if (g_verbose) + fprintf(stderr, "%s dumping out database comment %s\n", + g_comment_start, g_comment_end); + dumpDBComment(fout); + } + if (!tablename && fout) { if (g_verbose) -- cgit v1.2.1