Content-Length: 296602 | pFad | http://github.com/postgrespro/postgres/commit/5c5ffee80f3547625021c29f45b37321d8c710bf

E5 Fix get_object_address argument type for extension statement · postgrespro/postgres@5c5ffee · GitHub
Skip to content

Commit 5c5ffee

Browse files
committed
Fix get_object_address argument type for extension statement
Commit 3f88672 neglected to update the AlterExtensionContentsStmt production in the grammar to use TypeName to represent types when passing objects to get_object_address. Reported as a pg_upgrade failure by Jeff Janes.
1 parent 1f9bf05 commit 5c5ffee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/parser/gram.y

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,13 +3907,13 @@ AlterExtensionContentsStmt:
39073907
n->objname = $6;
39083908
$$ = (Node *)n;
39093909
}
3910-
| ALTER EXTENSION name add_drop DOMAIN_P any_name
3910+
| ALTER EXTENSION name add_drop DOMAIN_P Typename
39113911
{
39123912
AlterExtensionContentsStmt *n = makeNode(AlterExtensionContentsStmt);
39133913
n->extname = $3;
39143914
n->action = $4;
39153915
n->objtype = OBJECT_DOMAIN;
3916-
n->objname = $6;
3916+
n->objname = list_make1($6);
39173917
$$ = (Node *)n;
39183918
}
39193919
| ALTER EXTENSION name add_drop FUNCTION function_with_argtypes
@@ -4082,13 +4082,13 @@ AlterExtensionContentsStmt:
40824082
n->objname = list_make1(makeString($6));
40834083
$$ = (Node *)n;
40844084
}
4085-
| ALTER EXTENSION name add_drop TYPE_P any_name
4085+
| ALTER EXTENSION name add_drop TYPE_P Typename
40864086
{
40874087
AlterExtensionContentsStmt *n = makeNode(AlterExtensionContentsStmt);
40884088
n->extname = $3;
40894089
n->action = $4;
40904090
n->objtype = OBJECT_TYPE;
4091-
n->objname = $6;
4091+
n->objname = list_make1($6);
40924092
$$ = (Node *)n;
40934093
}
40944094
;

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/5c5ffee80f3547625021c29f45b37321d8c710bf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy