aboutsummaryrefslogtreecommitdiff
path: root/src/backend/bootstrap/bootstrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
-rw-r--r--src/backend/bootstrap/bootstrap.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/backend/bootstrap/bootstrap.c b/src/backend/bootstrap/bootstrap.c
index 8905596c0b1..9d1d8e37ccc 100644
--- a/src/backend/bootstrap/bootstrap.c
+++ b/src/backend/bootstrap/bootstrap.c
@@ -835,7 +835,6 @@ InsertOneValue(char *value, int i)
Oid typioparam;
Oid typinput;
Oid typoutput;
- char *prt;
AssertArg(i >= 0 && i < MAXATTR);
@@ -849,9 +848,14 @@ InsertOneValue(char *value, int i)
&typinput, &typoutput);
values[i] = OidInputFunctionCall(typinput, value, typioparam, -1);
- prt = OidOutputFunctionCall(typoutput, values[i]);
- elog(DEBUG4, "inserted -> %s", prt);
- pfree(prt);
+
+ /*
+ * We use ereport not elog here so that parameters aren't evaluated unless
+ * the message is going to be printed, which generally it isn't
+ */
+ ereport(DEBUG4,
+ (errmsg_internal("inserted -> %s",
+ OidOutputFunctionCall(typoutput, values[i]))));
}
/* ----------------