aboutsummaryrefslogtreecommitdiff
path: root/src
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:35 -0400
commitbd0ab28912d7502b237b8aeb95d052abe4ff6bc6 (patch)
tree11c212ea0f4020ff2290d21ea3cae8ea5ada5264 /src
parentc27033ff7c17b5100d02c454a0eebb95ec7b91cc (diff)
downloadpostgresql-bd0ab28912d7502b237b8aeb95d052abe4ff6bc6.tar.gz
postgresql-bd0ab28912d7502b237b8aeb95d052abe4ff6bc6.zip
Remove useless double calls of make_parsestate().
Aleksander Alekseev
Diffstat (limited to 'src')
-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 bb735ac0206..93d15e477af 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);