postgresql/src/backend
Noah Misch 79e0f87a15 Use type "int64" for memory accounting in tuplesort.c/tuplestore.c.
Commit 263865a489 switched tuplesort.c and
tuplestore.c variables representing memory usage from type "long" to
type "Size".  This was unnecessary; I thought doing so avoided overflow
scenarios on 64-bit Windows, but guc.c already limited work_mem so as to
prevent the overflow.  It was also incomplete, not touching the logic
that assumed a signed data type.  Change the affected variables to
"int64".  This is perfect for 64-bit platforms, and it reduces the need
to contemplate platform-specific overflow scenarios.  It also puts us
close to being able to support work_mem over 2 GiB on 64-bit Windows.

Per report from Andres Freund.
2013-07-04 23:13:54 -04:00
..
access Fix typo in comment. 2013-07-05 02:47:49 +09:00
bootstrap Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. 2013-07-02 09:47:01 -04:00
catalog Get rid of pg_class.reltoastidxid. 2013-07-04 03:24:09 +09:00
commands Get rid of pg_class.reltoastidxid. 2013-07-04 03:24:09 +09:00
executor Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. 2013-07-02 09:47:01 -04:00
foreign Arrange to cache FdwRoutine structs in foreign tables' relcache entries. 2013-03-06 23:48:09 -05:00
lib pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
libpq Avoid reading below the start of a stack variable in tokenize_file(). 2013-06-12 19:50:52 -04:00
main Renovate display of non-ASCII messages on Windows. 2013-06-26 11:17:33 -04:00
nodes Add a convenience routine makeFuncCall to reduce duplication. 2013-07-01 14:46:54 -04:00
optimizer Prevent pushing down WHERE clauses into unsafe UNION/INTERSECT nests. 2013-06-05 23:45:11 -04:00
parser Add a convenience routine makeFuncCall to reduce duplication. 2013-07-01 14:46:54 -04:00
po Translation updates 2013-06-24 14:16:44 -04:00
port Use SA_RESTART for all signals, including SIGALRM. 2013-06-15 15:39:51 -04:00
postmaster Add new GUC, max_worker_processes, limiting number of bgworkers. 2013-07-04 11:24:24 -04:00
regex pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
replication Support clean switchover. 2013-06-26 02:14:37 +09:00
rewrite Get rid of pg_class.reltoastidxid. 2013-07-04 03:24:09 +09:00
snowball Update copyrights for 2013 2013-01-01 17:15:01 -05:00
storage Add new GUC, max_worker_processes, limiting number of bgworkers. 2013-07-04 11:24:24 -04:00
tcop Change errcode for lock_timeout to match NOWAIT 2013-06-29 00:57:25 +01:00
tsearch pgindent run for release 9.3 2013-05-29 16:58:43 -04:00
utils Use type "int64" for memory accounting in tuplesort.c/tuplestore.c. 2013-07-04 23:13:54 -04:00
.gitignore Add gitignore for mingw/cygwin build outputs 2011-06-09 18:11:47 +02:00
common.mk Call check_keywords.pl in maintainer-check 2012-02-27 13:53:12 +02:00
Makefile Move relpath() to libpgcommon 2013-02-21 22:46:17 -03:00
nls.mk Translation updates 2013-05-05 22:34:23 -04:00