pg_lo_tell64
Prev | 4.6.Large Object Processing Commands | Next

## pg_lo_tell64

pg_lo_tell — 64ビット偏移を使って､現在の巨大対象の捜索位置を返す Return the current seek position of a large object, using 64-bit offsets

## Synopsis

    pg_lo_tell64 conn descriptor

## Description

pg_lo_tell64 は現在の 読み/書き 位置を､巨大対象の先頭からのバイト単位で返す｡ 返される値は､64ビット整数で､pg_lo_tell に較べると､巨大な寸法の対象を許容している｡ `pg_lo_tell64` returns the current read/write position in bytes from the beginning of the large object. The return value is a 64-bit integer, allowing for larger size objects compare to pg_lo_tell.

## Arguments

`conn`

  接続の把持子 The handle of the connection.

`descriptor`

  pg_lo_openからの､巨大対象に関する記述子 A descriptor for the large object from pg_lo_open.

## Return Value

現在の､巨大対象内の零-基準の64ビット整数としてのバイト偏移､pg_lo_lseek64の使用に適す｡ The current zero-based byte offset in the large object, as a 64-bit integer, suitable for use with pg_lo_lseek64.

不都合が生じると､Tcl不都合が発せられる｡ A Tcl error will be thrown if an error occurs.

## Notes

全ての巨大対象操作はSQL翻訳区域内部で行われねばならない｡ All large object manipulation must take place within an SQL transaction block.

この命令はpgtclng-2.1.0とpgintcl-3.5.0に加えられた｡ This command was added in pgtclng-2.1.0 and in pgintcl-3.5.0.

この命令はPostgreSQL libpq 機能 lo_lseek64 を使うか模擬する｡ pg_lo_lseek64を利用可能に且つ使用可能にする為には､(pgintcl以外の)外部函数は､PostgreSQL libpq 9.3.0版以降と共に二進翻訳､連結し､PostgreSQL 中央集中処理装置9.3.0版以降に接続せねばならない｡ This command uses or emulates the PostgreSQL libpq function `lo_tell64`. Support for 64-bit large object offsets was added to PostgreSQL-9.3.0. In order for `pg_lo_tell64` to be available and usable, the library must be be built and linked with PostgreSQL libpq 9.3.0 or higher (does not apply to pgintcl), and be connected to a PostgreSQL server version 9.3.0 or higher.

Prev | Up | Next
pg_lo_tell | Home | pg_lo_truncate