]> granicus.if.org Git - postgresql/commit
Add API for 64-bit large object access. Now users can access up to
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 6 Oct 2012 23:36:48 +0000 (08:36 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 6 Oct 2012 23:36:48 +0000 (08:36 +0900)
commit461ef73f0977c95c9452680495bc161618db9227
treeef9883b9fbbb57875a7ec7023fce944f840afb71
parentae835c7d6e202e99796c58093ef781477e54c459
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.
16 files changed:
doc/src/sgml/lobj.sgml
src/backend/libpq/be-fsstubs.c
src/backend/storage/large_object/inv_api.c
src/backend/utils/errcodes.txt
src/include/catalog/pg_proc.h
src/include/libpq/be-fsstubs.h
src/include/postgres_ext.h
src/include/storage/large_object.h
src/interfaces/libpq/exports.txt
src/interfaces/libpq/fe-lobj.c
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-int.h
src/test/examples/Makefile
src/test/examples/testlo64.c [new file with mode: 0644]
src/test/regress/input/largeobject.source
src/test/regress/output/largeobject.source