aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-03-17 16:46:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-03-17 16:46:23 -0400
commite52e22d93233e46b308c9bb778d17cf9bc5b0970 (patch)
treeaa7bb29db7b4abe891d5574141254acf909a40a4
parentd0a585c6997de6aebd5866c9c1791a1badfcee0a (diff)
downloadpostgresql-e52e22d93233e46b308c9bb778d17cf9bc5b0970.tar.gz
postgresql-e52e22d93233e46b308c9bb778d17cf9bc5b0970.zip
Remove useless double calls of make_parsestate().
Aleksander Alekseev
-rw-r--r--src/backend/commands/policy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/policy.c b/src/backend/commands/policy.c
index 5c73dfc8c46..42b9f149d99 100644
--- a/src/backend/commands/policy.c
+++ b/src/backend/commands/policy.c
@@ -1081,7 +1081,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull)
{
char *qual_value;
- ParseState *qual_pstate = make_parsestate(NULL);
+ ParseState *qual_pstate;
/* parsestate is built just to build the range table */
qual_pstate = make_parsestate(NULL);
@@ -1122,7 +1122,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
if (!attr_isnull)
{
char *with_check_value;
- ParseState *with_check_pstate = make_parsestate(NULL);
+ ParseState *with_check_pstate;
/* parsestate is built just to build the range table */
with_check_pstate = make_parsestate(NULL);