diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-01-18 18:09:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-01-18 18:09:02 +0000 |
commit | 2eebcddeaa2a60fe836a8a10ac6c697bdd36bf8e (patch) | |
tree | 2699b6abf13f885f2c158ce4929e8a3f5d075a54 /src/bin/pg_dump/common.c | |
parent | 6c25ea23422a200b8b4394b9f95220999dbf9fa9 (diff) | |
download | postgresql-2eebcddeaa2a60fe836a8a10ac6c697bdd36bf8e.tar.gz postgresql-2eebcddeaa2a60fe836a8a10ac6c697bdd36bf8e.zip |
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
Diffstat (limited to 'src/bin/pg_dump/common.c')
-rw-r--r-- | src/bin/pg_dump/common.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/pg_dump/common.c b/src/bin/pg_dump/common.c index 9b6d6414188..f111ca57ab7 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 * @@ -292,6 +292,14 @@ dumpSchema(FILE *fout, 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) fprintf(stderr, "%s dumping out user-defined types %s\n", g_comment_start, g_comment_end); dumpTypes(fout, finfo, numFuncs, tinfo, numTypes); |