From ad72256f82dfdec9a2945c36b8796a8cb8ecdb5f Mon Sep 17 00:00:00 2001 From: Shigeru HANADA Date: Mon, 27 Aug 2012 15:31:35 +0900 Subject: [PATCH] Remove too-much optimization. There was optimization to avoid overhead of error message construction, but it seems overkill at the moment. --- pg_hint_plan.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pg_hint_plan.c b/pg_hint_plan.c index a75426c..7a53b2e 100644 --- a/pg_hint_plan.c +++ b/pg_hint_plan.c @@ -1304,9 +1304,6 @@ set_config_option_wrapper(const char *name, const char *value, ErrorData *errdata; MemoryContext ecxt; - if (elevel >= ERROR) - PG_RE_THROW(); - ecxt = MemoryContextSwitchTo(ccxt); errdata = CopyErrorData(); FlushErrorState(); -- 2.11.0