Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Sign up
Appearance settings

Commitfcbd1bb

Browse files
committed
Reduce variable scope and possibly useless palloc
Move the CreateStmt down to the branch that it's used in, thuspreventing the makeNode() call in cases where the CreateStmt isn't used.Author: Ranier Vilela <ranier.vf@gmail.com>Discussion:https://postgr.es/m/CAEudQAq=06YPWPhS+yyTbCwv5JLKRz8rm3dWx6JR5Uj_d_fQDA@mail.gmail.com
1 parent84b8fcc commitfcbd1bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/view.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
4747
{
4848
OidviewOid;
4949
LOCKMODElockmode;
50-
CreateStmt*createStmt=makeNode(CreateStmt);
5150
List*attrList;
5251
ListCell*t;
5352

@@ -223,6 +222,7 @@ DefineVirtualRelation(RangeVar *relation, List *tlist, bool replace,
223222
}
224223
else
225224
{
225+
CreateStmt*createStmt=makeNode(CreateStmt);
226226
ObjectAddressaddress;
227227

228228
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp