postgresql/src/backend
Tom Lane 8b49a6044d Cache catalog lookup data across groups in ordered-set aggregates.
The initial commit of ordered-set aggregates just did all the setup work
afresh each time the aggregate function is started up.  But in a GROUP BY
query, the catalog lookups need not be repeated for each group, since the
column datatypes and sort information won't change.  When there are many
small groups, this makes for a useful, though not huge, performance
improvement.  Per suggestion from Andrew Gierth.

Profiling of these cases suggests that it might be profitable to avoid
duplicate lookups within tuplesort startup as well; but changing the
tuplesort APIs would have much broader impact, so I left that for
another day.
2014-01-05 12:28:39 -05:00
..
access Handle 5-char filenames in SlruScanDirectory 2014-01-02 18:17:29 -03:00
bootstrap Allow on-detach callbacks for dynamic shared memory segments. 2013-12-18 13:09:09 -05:00
catalog Restore some comments lost during 15732b34e8 2014-01-03 13:22:03 -03:00
commands Restore some comments lost during 15732b34e8 2014-01-03 13:22:03 -03:00
executor Support ordered-set (WITHIN GROUP) aggregates. 2013-12-23 16:11:35 -05:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib Use improved vsnprintf calling logic in more places. 2013-10-24 21:43:57 -04:00
libpq Fix incorrect error message reported for non-existent users 2013-12-18 12:16:21 -05:00
main Fix incorrect error message reported for non-existent users 2013-12-18 12:16:21 -05:00
nodes Support ordered-set (WITHIN GROUP) aggregates. 2013-12-23 16:11:35 -05:00
optimizer Remove dead code now that orindxpath.c is history. 2013-12-30 12:50:31 -05:00
parser Fix portability issue in ordered-set patch. 2013-12-23 20:24:07 -05:00
po Translation updates 2013-12-02 00:17:07 -05:00
port Remove IRIX port. 2013-10-18 08:14:21 -04:00
postmaster Ooops, should use double not single quotes in StaticAssertStmt(). 2014-01-02 21:54:20 -05:00
regex Fix regex match failures for backrefs combined with non-greedy quantifiers. 2013-07-18 21:22:37 -04:00
replication Add ALTER SYSTEM command to edit the server configuration file. 2013-12-18 23:42:44 +09:00
rewrite Refine our definition of what constitutes a system relation. 2013-11-28 20:57:20 -05:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Change the way we mark tuples as frozen. 2013-12-22 15:49:09 -05:00
tcop Add ALTER SYSTEM command to edit the server configuration file. 2013-12-18 23:42:44 +09:00
tsearch pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
utils Cache catalog lookup data across groups in ordered-set aggregates. 2014-01-05 12:28:39 -05:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
Makefile Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
nls.mk Add libpgcommon to backend gettext source files 2013-10-19 13:49:05 -04:00