postgresql/src/include
Thomas Munro aa55183042 Use 64 bit type for BufFileSize().
BufFileSize() can't use off_t, because it's only 32 bits wide on
some systems.  BufFile objects can have many 1GB segments so the
total size can exceed 2^31.  The only known client of the function
is parallel CREATE INDEX, which was reported to fail when building
large indexes on Windows.

Though this is technically an ABI break on platforms with a 32 bit
off_t and we might normally avoid back-patching it, the function is
brand new and thus unlikely to have been discovered by extension
authors yet, and it's fairly thoroughly broken on those platforms
anyway, so just fix it.

Defect in 9da0cc35.  Bug #15460.  Back-patch to 11, where this
function landed.

Author: Thomas Munro
Reported-by: Paul van der Linden, Pavel Oskin
Reviewed-by: Peter Geoghegan
Discussion: https://postgr.es/m/15460-b6db80de822fa0ad%40postgresql.org
Discussion: https://postgr.es/m/CAHDGBJP_GsESbTt4P3FZA8kMUKuYxjg57XHF7NRBoKnR%3DCAR-g%40mail.gmail.com
2018-11-15 13:13:57 +13:00
..
access Fix incorrect routine name in xlog_heapam.h 2018-11-10 08:58:55 +09:00
bootstrap
catalog Add a timezone-specific variant of date_trunc(). 2018-11-14 15:41:07 -05:00
commands Lower lock level for renaming indexes 2018-11-14 17:09:54 +01:00
common Add application_name to connection authorized msg 2018-09-28 19:04:50 -04:00
datatype
executor Don't require return slots for nodes without projection. 2018-11-09 17:19:39 -08:00
fe_utils Reorganize format options of psql in alphabetical order 2018-11-06 15:04:40 +09:00
foreign
jit Move EEOP_*_SYSVAR evaluation out of line. 2018-11-07 11:08:45 -08:00
lib Rename rbtree.c functions to use "rbt" prefix not "rb" prefix. 2018-11-06 13:25:24 -05:00
libpq Refactor pid, random seed and start time initialization. 2018-10-19 13:59:28 +13:00
mb
nodes Don't require return slots for nodes without projection. 2018-11-09 17:19:39 -08:00
optimizer Remove some unnecessary fields from Plan trees. 2018-10-07 14:33:17 -04:00
parser Sprinkle some const decorations 2018-10-23 12:25:17 +02:00
partitioning Refactor code creating PartitionBoundInfo 2018-11-14 10:01:49 +09:00
port Convert elog.c's useful_strerror() into a globally-used strerror wrapper. 2018-09-26 11:06:42 -04:00
portability
postmaster Refactor pid, random seed and start time initialization. 2018-10-19 13:59:28 +13:00
regex
replication Fix spelling errors and typos in comments 2018-11-02 13:56:52 +01:00
rewrite
snowball Sync our Snowball stemmer dictionaries with current upstream. 2018-09-24 17:29:38 -04:00
statistics
storage Use 64 bit type for BufFileSize(). 2018-11-15 13:13:57 +13:00
tcop Fix event triggers for partitioned tables 2018-10-06 19:17:46 -03:00
tsearch
utils Fix missing role dependencies for some schema and type ACLs. 2018-11-09 20:42:14 -05:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
c.h Improve unconstify() documentation 2018-10-25 01:02:46 +01:00
fmgr.h
funcapi.h Clean up in the wake of TupleDescGetSlot() removal / 10763358c3. 2018-09-27 11:38:11 -07:00
getaddrinfo.h
getopt_long.h
Makefile Refactor dlopen() support 2018-09-06 11:33:04 +02:00
miscadmin.h Refactor pid, random seed and start time initialization. 2018-10-19 13:59:28 +13:00
pg_config_ext.h.in
pg_config_ext.h.win32
pg_config_manual.h Improve error reporting for unsupported effective_io_concurrency setting. 2018-09-28 16:12:13 -04:00
pg_config.h.in Fix inadequate autoconfiscation of copyfile() usage. 2018-11-07 16:41:42 -05:00
pg_config.h.win32 Provide pg_pread() and pg_pwrite() for random I/O. 2018-11-07 09:50:01 +13:00
pg_getopt.h
pg_trace.h
pgstat.h Add pg_promote function 2018-10-25 09:46:00 +09:00
pgtar.h
pgtime.h
port.h Provide pg_pread() and pg_pwrite() for random I/O. 2018-11-07 09:50:01 +13:00
postgres_ext.h
postgres_fe.h
postgres.h
rusagestub.h
windowapi.h