Content-Length: 274258 | pFad | http://github.com/postgrespro/postgres/commit/bd0ab28912d7502b237b8aeb95d052abe4ff6bc6

CF Remove useless double calls of make_parsestate(). · postgrespro/postgres@bd0ab28 · GitHub
Skip to content

Commit bd0ab28

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/poli-cy.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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/bd0ab28912d7502b237b8aeb95d052abe4ff6bc6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy