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/backend/utils/adt/ruleutils.c | |
parent | a7e587863cab80b8896593f20b41e53d65155932 (diff) |
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/backend/utils/adt/ruleutils.c')
-rw-r--r-- | src/backend/utils/adt/ruleutils.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 4345a529051..9767b9f1f50 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.303 2009/07/16 06:33:44 petere Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.304 2009/07/24 21:08:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -187,7 +187,6 @@ static RangeTblEntry *find_rte_by_refname(const char *refname, deparse_context *context); static const char *get_simple_binary_op_name(OpExpr *expr); static bool isSimpleNode(Node *node, Node *parentNode, int prettyFlags); -static void appendStringInfoSpaces(StringInfo buf, int count); static void appendContextKeyword(deparse_context *context, const char *str, int indentBefore, int indentAfter, int indentPlus); static void get_rule_expr(Node *node, deparse_context *context, @@ -4173,16 +4172,6 @@ isSimpleNode(Node *node, Node *parentNode, int prettyFlags) /* - * appendStringInfoSpaces - append spaces to buffer - */ -static void -appendStringInfoSpaces(StringInfo buf, int count) -{ - while (count-- > 0) - appendStringInfoChar(buf, ' '); -} - -/* * appendContextKeyword - append a keyword to buffer * * If prettyPrint is enabled, perform a line break, and adjust indentation. |