postgresql/src/backend/commands
Tom Lane 19e972d558 Rethink node-level representation of partial-aggregation modes.
The original coding had three separate booleans representing partial
aggregation behavior, which was confusing, unreadable, and error-prone,
not least because the booleans weren't always listed in the same order.
It was also inadequate for the allegedly-desirable future extension to
support intermediate partial aggregation, because we'd need separate
markers for serialization and deserialization in such a case.

Merge these bools into an enum "AggSplit" to provide symbolic names for
the supported operating modes (and document what those are).  By assigning
the values of the enum constants carefully, we can treat AggSplit values
as options bitmasks so that tests of what to do aren't noticeably more
expensive than before.

While at it, get rid of Aggref.aggoutputtype.  That's not needed since
commit 59a3795c2 got rid of setrefs.c's special-purpose Aggref comparison
code, and it likewise seemed more confusing than helpful.

Assorted comment cleanup as well (there's still more that I want to do
in that line).

catversion bump for change in Aggref node contents.  Should be the last
one for partial-aggregation changes.

Discussion: <29309.1466699160@sss.pgh.pa.us>
2016-06-26 14:33:38 -04:00
..
Makefile Support CREATE ACCESS METHOD 2016-03-23 23:01:35 -03:00
aggregatecmds.c Fix type-safety problem with parallel aggregate serial/deserialization. 2016-06-22 16:52:41 -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 pgindent run for 9.6 2016-06-09 18:02:36 -04:00
async.c Make all built-in lwlock tranche IDs fixed. 2016-02-02 06:45:55 -05:00
cluster.c Fix various common mispellings. 2016-06-03 16:08:45 +01:00
collationcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05: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 pgindent run for 9.6 2016-06-09 18:02:36 -04:00
createas.c Stop the executor if no more tuples can be sent from worker to leader. 2016-06-06 14:52:58 -04:00
dbcommands.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
define.c Update copyright for 2016 2016-01-02 13:33:40 -05: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 Type names should not be quoted 2016-04-01 13:35:48 -03:00
explain.c Rethink node-level representation of partial-aggregation modes. 2016-06-26 14:33:38 -04:00
extension.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
foreigncmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
functioncmds.c Fix parallel-safety code for parallel aggregation. 2016-04-05 16:06:15 -04:00
indexcmds.c Disallow creation of indexes on system columns (except for OID). 2016-04-16 12:11:41 -04:00
lockcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
matview.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
opclasscmds.c Fix broken dependency-mongering for index operator classes/families. 2016-04-13 23:33:31 -04:00
operatorcmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
policy.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
portalcmds.c Widen query numbers-of-tuples-processed counters to uint64. 2016-03-12 16:05:29 -05:00
prepare.c On second thought, disable parallelism for prepared statements. 2016-02-26 16:33:37 +05:30
proclang.c pgindent run for 9.6 2016-06-09 18:02:36 -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 Revert no-op changes to BufferGetPage() 2016-04-20 08:31:19 -05: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 pgindent run for 9.6 2016-06-09 18:02:36 -04:00
tsearchcmds.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
typecmds.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
user.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
vacuum.c Add VACUUM (DISABLE_PAGE_SKIPPING) for emergencies. 2016-06-17 15:48:57 -04:00
vacuumlazy.c Add VACUUM (DISABLE_PAGE_SKIPPING) for emergencies. 2016-06-17 15:48:57 -04:00
variable.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
view.c Update copyright for 2016 2016-01-02 13:33:40 -05:00