From 8af12bca3b19305e9219ce9c8230ed8003b870f6 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 24 Jul 2009 21:08:42 +0000 Subject: 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 --- src/backend/utils/adt/ruleutils.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/backend/utils/adt/ruleutils.c') 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, @@ -4172,16 +4171,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 * -- cgit v1.2.3