8000 Remove useless double calls of make_parsestate(). · prmdeveloper/postgres@e52e22d · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e52e22d

Browse files
committed
Remove useless double calls of make_parsestate().
Aleksander Alekseev
1 parent d0a585c commit e52e22d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/policy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
10811081
if (!attr_isnull)
10821082
{
10831083
char *qual_value;
1084-
ParseState *qual_pstate = make_parsestate(NULL);
1084+
ParseState *qual_pstate;
10851085

10861086
/* parsestate is built just to build the range table */
10871087
qual_pstate = make_parsestate(NULL);
@@ -1122,7 +1122,7 @@ AlterPolicy(AlterPolicyStmt *stmt)
11221122
if (!attr_isnull)
11231123
{
11241124
char *with_check_value;
1125-
ParseState *with_check_pstate = make_parsestate(NULL);
1125+
ParseState *with_check_pstate;
11261126

11271127
/* parsestate is built just to build the range table */
11281128
with_check_pstate = make_parsestate(NULL);

0 commit comments

Comments
 (0)
0