postgresql/src/include/commands
Peter Eisentraut 8b6d6cf853 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 <Jim.Nasby@BlueTreble.com>
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
2017-03-06 13:31:47 -05:00
..
alter.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
async.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
cluster.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
collationcmds.h Add CREATE COLLATION IF NOT EXISTS clause 2017-02-15 10:01:28 -05:00
comment.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
conversioncmds.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
copy.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00
createas.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
dbcommands.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
dbcommands_xlog.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
defrem.h Reindent table partitioning code. 2017-01-24 10:20:02 -05:00
discard.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
event_trigger.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
explain.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00
extension.h Remove objname/objargs split for referring to objects 2017-03-06 13:31:47 -05:00
lockcmds.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
matview.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
policy.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
portalcmds.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00
prepare.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00
proclang.h Change many routines to return ObjectAddress rather than OID 2015-03-03 14:10:50 -03:00
progress.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
publicationcmds.h Update copyright years in some recently added files 2017-01-25 12:32:05 -05:00
schemacmds.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00
seclabel.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
sequence.h Add WAL consistency checking facility. 2017-02-08 15:45:30 -05:00
subscriptioncmds.h Disallow CREATE/DROP SUBSCRIPTION in transaction block 2017-03-03 23:29:13 -05:00
tablecmds.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
tablespace.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
trigger.h Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
typecmds.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
user.h Replace isMD5() with a more future-proof way to check if pw is encrypted. 2017-02-01 13:11:37 +02:00
vacuum.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
variable.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
view.h Change representation of statement lists, and add statement location info. 2017-01-14 16:02:35 -05:00