postgresql/src/backend/commands
Tom Lane 55c3391d1e Be pickier about converting between Name and Datum.
We were misapplying NameGetDatum() to plain C strings in some places.
This worked, because it was just a pointer cast anyway, but it's a type
cheat in some sense.  Use CStringGetDatum instead, and modify the
NameGetDatum macro so it won't compile if applied to something that's
not a pointer to NameData.  This should result in no changes to
generated code, but it is logically cleaner.

Mark Dilger, tweaked a bit by me

Discussion: <EFD8AC94-4C1F-40C1-A5EA-304080089C1B@gmail.com>
2016-09-13 17:17:48 -04:00
..
aggregatecmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
alter.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
amcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
analyze.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
async.c Fix several mistakes around parallel workers and client_encoding. 2016-06-30 18:35:32 -04:00
cluster.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
collationcmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
comment.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
constraint.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
conversioncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
copy.c Add a HINT for client-vs-server COPY failure cases. 2016-09-06 23:55:55 -04:00
createas.c Fix CREATE MATVIEW/CREATE TABLE AS ... WITH NO DATA to not plan the query. 2016-06-27 15:57:50 -04:00
dbcommands.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
define.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
discard.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
dropcmds.c Fix DROP ACCESS METHOD IF EXISTS. 2016-05-27 11:03:18 -04:00
event_trigger.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
explain.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
extension.c Allow CREATE EXTENSION to follow extension update paths. 2016-09-11 14:15:07 -04:00
foreigncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
functioncmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
indexcmds.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
lockcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Support CREATE ACCESS METHOD 2016-03-23 23:01:35 -03:00
matview.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
opclasscmds.c Add SQL-accessible functions for inspecting index AM properties. 2016-08-13 18:31:14 -04:00
operatorcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
policy.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
portalcmds.c Fix TOAST access failure in RETURNING queries. 2016-08-07 17:46:08 -04:00
prepare.c On second thought, disable parallelism for prepared statements. 2016-02-26 16:33:37 +05:30
proclang.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
schemacmds.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
seclabel.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sequence.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
tablecmds.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
tablespace.c Remove various special checks around default roles 2016-05-06 14:06:50 -04:00
trigger.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
tsearchcmds.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
typecmds.c Be pickier about converting between Name and Datum. 2016-09-13 17:17:48 -04:00
user.c Add location field to DefElem 2016-09-06 12:00:00 -04:00
vacuum.c Add macros to make AllocSetContextCreate() calls simpler and safer. 2016-08-27 17:50:38 -04:00
vacuumlazy.c Fix VACUUM_TRUNCATE_LOCK_WAIT_INTERVAL 2016-09-06 15:35:47 +01:00
variable.c Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
view.c Add location field to DefElem 2016-09-06 12:00:00 -04:00