From 461ef73f0977c95c9452680495bc161618db9227 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Sun, 7 Oct 2012 08:36:48 +0900 Subject: 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. --- src/include/postgres_ext.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/include/postgres_ext.h') 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 -- cgit v1.2.3