diff options
author | Tatsuo Ishii | 2012-10-06 23:36:48 +0000 |
---|---|---|
committer | Tatsuo Ishii | 2012-10-06 23:36:48 +0000 |
commit | 461ef73f0977c95c9452680495bc161618db9227 (patch) | |
tree | ef9883b9fbbb57875a7ec7023fce944f840afb71 /src/include/postgres_ext.h | |
parent | ae835c7d6e202e99796c58093ef781477e54c459 (diff) |
Add API for 64-bit large object access. Now users can access up to
4TB large objects (standard 8KB BLCKSZ case). For this purpose new
libpq API lo_lseek64, lo_tell64 and lo_truncate64 are added. Also
corresponding new backend functions lo_lseek64, lo_tell64 and
lo_truncate64 are added. inv_api.c is changed to handle 64-bit
offsets.
Patch contributed by Nozomi Anzai (backend side) and Yugo Nagata
(frontend side, docs, regression tests and example program). Reviewed
by Kohei Kaigai. Committed by Tatsuo Ishii with minor editings.
Diffstat (limited to 'src/include/postgres_ext.h')
-rw-r--r-- | src/include/postgres_ext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/postgres_ext.h b/src/include/postgres_ext.h index b6ebb7aac3f..76502de647b 100644 --- a/src/include/postgres_ext.h +++ b/src/include/postgres_ext.h @@ -56,4 +56,9 @@ typedef unsigned int Oid; #define PG_DIAG_SOURCE_LINE 'L' #define PG_DIAG_SOURCE_FUNCTION 'R' +#ifndef NO_PG_INT64 +#define HAVE_PG_INT64 1 +typedef long long int pg_int64; +#endif + #endif |