From 75fee4535d1a9741474b53bd46a3585ad3c66eb5 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 11 Nov 2002 03:02:20 +0000 Subject: Back out use of palloc0 in place if palloc/MemSet. Seems constant len to MemSet is a performance boost. --- src/backend/commands/explain.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/commands/explain.c') diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 84125280da0..e6075dd28f7 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.91 2002/11/10 07:25:13 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/explain.c,v 1.92 2002/11/11 03:02:18 momjian Exp $ * */ @@ -164,7 +164,8 @@ ExplainOneQuery(Query *query, ExplainStmt *stmt, TupOutputState *tstate) (double) endtime.tv_usec / 1000000.0; } - es = (ExplainState *) palloc0(sizeof(ExplainState)); + es = (ExplainState *) palloc(sizeof(ExplainState)); + MemSet(es, 0, sizeof(ExplainState)); es->printCost = true; /* default */ -- cgit v1.2.3