postgresql/src/backend/commands
Tom Lane e1e60694b4 Make CREATE AGGREGATE complain if the initcond is invalid for the datatype.
The initial transition value is stored as a text string and not fed to the
transition type's input function until runtime (so that values such as
"now" don't get frozen at creation time).  Previously, CREATE AGGREGATE
didn't do anything with it but that, which meant that even erroneous values
would be accepted and not complained of until the aggregate is used.  This
seems unhelpful, and it's confused at least one user, as in Rhys Stewart's
recent report.  It seems worth taking a few more cycles to invoke the input
function and verify that the value is acceptable.  We can't do this if the
transition type is polymorphic, but in normal aggregates we know the actual
transition type so we can call the right input function.
2012-10-04 17:54:53 -04:00
..
aggregatecmds.c Make CREATE AGGREGATE complain if the initcond is invalid for the datatype. 2012-10-04 17:54:53 -04:00
alter.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
analyze.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00
async.c Fix NOTIFY to cope with I/O problems, such as out-of-disk-space. 2012-06-29 00:51:34 -04:00
cluster.c Replace int2/int4 in C code with int16/int32 2012-06-25 01:51:46 +03:00
collationcmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
comment.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
constraint.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
conversioncmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
copy.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
createas.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
dbcommands.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
define.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
discard.c Update copyright notices for year 2012. 2012-01-01 18:01:58 -05:00
dropcmds.c Refactor "ALTER some-obj SET SCHEMA" implementation 2012-10-02 18:13:54 -03:00
event_trigger.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
explain.c Improve ruleutils.c's heuristics for dealing with rangetable aliases. 2012-09-21 19:03:10 -04:00
extension.c Support CREATE SCHEMA IF NOT EXISTS. 2012-10-03 19:47:11 -04:00
foreigncmds.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
functioncmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
indexcmds.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
lockcmds.c Repair comment mangled by a pgindent run long ago 2012-06-21 15:37:05 -04:00
Makefile Syntax support and documentation for event triggers. 2012-07-18 10:16:16 -04:00
opclasscmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
operatorcmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
portalcmds.c Restructure SELECT INTO's parsetree representation into CreateTableAsStmt. 2012-03-19 21:38:12 -04:00
prepare.c Centralize the logic for detecting misplaced aggregates, window funcs, etc. 2012-08-10 11:36:15 -04:00
proclang.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
schemacmds.c Support CREATE SCHEMA IF NOT EXISTS. 2012-10-03 19:47:11 -04:00
seclabel.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
sequence.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
tablecmds.c Comment fixes. 2012-08-30 10:42:28 -04:00
tablespace.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
trigger.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
tsearchcmds.c refactor ALTER some-obj SET OWNER implementation 2012-10-03 18:07:46 -03:00
typecmds.c Allow IF NOT EXISTS when add a new enum label. 2012-09-22 12:53:31 -04:00
user.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
vacuum.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
vacuumlazy.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
variable.c Split tuple struct defs from htup.h to htup_details.h 2012-08-30 16:52:35 -04:00
view.c Run pgindent on 9.2 source tree in preparation for first 9.3 2012-06-10 15:20:04 -04:00