summaryrefslogtreecommitdiff
path: root/src/include/commands/extension.h
diff options
context:
space:
mode:
authorPeter Eisentraut2016-11-12 17:00:00 +0000
committerPeter Eisentraut2017-03-06 18:31:47 +0000
commit8b6d6cf853aab12f0dc2adba7c99c3e458662734 (patch)
tree783806b4919b26f56dafde70e34bd6cd38bb261e /src/include/commands/extension.h
parent550214a4efb214dfc9c2a475607deeeea69da858 (diff)
Remove objname/objargs split for referring to objects
In simpler times, it might have worked to refer to all kinds of objects by a list of name components and an optional argument list. But this doesn't work for all objects, which has resulted in a collection of hacks to place various other nodes types into these fields, which have to be unpacked at the other end. This makes it also weird to represent lists of such things in the grammar, because they would have to be lists of singleton lists, to make the unpacking work consistently. The other problem is that keeping separate name and args fields makes it awkward to deal with lists of functions. Change that by dropping the objargs field and have objname, renamed to object, be a generic Node, which can then be flexibly assigned and managed using the normal Node mechanisms. In many cases it will still be a List of names, in some cases it will be a string Value, for types it will be the existing Typename, for functions it will now use the existing ObjectWithArgs node type. Some of the more obscure object types still use somewhat arbitrary nested lists. Reviewed-by: Jim Nasby <[email protected]> Reviewed-by: Michael Paquier <[email protected]>
Diffstat (limited to 'src/include/commands/extension.h')
-rw-r--r--src/include/commands/extension.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/commands/extension.h b/src/include/commands/extension.h
index 3f14c902671..7f027d9dc7a 100644
--- a/src/include/commands/extension.h
+++ b/src/include/commands/extension.h
@@ -48,7 +48,7 @@ extern ObjectAddress ExecAlterExtensionContentsStmt(AlterExtensionContentsStmt *
extern Oid get_extension_oid(const char *extname, bool missing_ok);
extern char *get_extension_name(Oid ext_oid);
-extern ObjectAddress AlterExtensionNamespace(List *names, const char *newschema,
+extern ObjectAddress AlterExtensionNamespace(const char *extensionName, const char *newschema,
Oid *oldschema);
extern void AlterExtensionOwner_oid(Oid extensionOid, Oid newOwnerId);