diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-24 21:08:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-07-24 21:08:42 +0000 |
commit | 8af12bca3b19305e9219ce9c8230ed8003b870f6 (patch) | |
tree | 00f662171f5aac72b19b5e06a19a13678073a010 /src/include/lib/stringinfo.h | |
parent | a7e587863cab80b8896593f20b41e53d65155932 (diff) | |
download | postgresql-8af12bca3b19305e9219ce9c8230ed8003b870f6.tar.gz postgresql-8af12bca3b19305e9219ce9c8230ed8003b870f6.zip |
Assorted minor refactoring in EXPLAIN.
This is believed to not change the output at all, with one known exception:
"Subquery Scan foo" becomes "Subquery Scan on foo". (We can fix that if
anyone complains, but it would be a wart, because the old code was clearly
inconsistent.) The main intention is to remove duplicate coding and
provide a cleaner base for subsequent EXPLAIN patching.
Robert Haas
Diffstat (limited to 'src/include/lib/stringinfo.h')
-rw-r--r-- | src/include/lib/stringinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/include/lib/stringinfo.h b/src/include/lib/stringinfo.h index 39a31dca8c9..9afb5b5f336 100644 --- a/src/include/lib/stringinfo.h +++ b/src/include/lib/stringinfo.h @@ -10,7 +10,7 @@ * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/lib/stringinfo.h,v 1.36 2009/01/01 17:23:59 momjian Exp $ + * $PostgreSQL: pgsql/src/include/lib/stringinfo.h,v 1.37 2009/07/24 21:08:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -132,6 +132,12 @@ extern void appendStringInfoChar(StringInfo str, char ch); (void)((str)->data[(str)->len] = (ch), (str)->data[++(str)->len] = '\0')) /*------------------------ + * appendStringInfoSpaces + * Append a given number of spaces to str. + */ +extern void appendStringInfoSpaces(StringInfo str, int count); + +/*------------------------ * appendBinaryStringInfo * Append arbitrary binary data to a StringInfo, allocating more space * if necessary. |