mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user