pg_lo_truncate64
Prev | 4.6.Large Object Processing Commands | Next

## pg_lo_truncate64

pg_lo_truncate64 — Truncate a large object, changing its size, using a 64-bit offset

## Synopsis

    pg_lo_truncate64 conn descriptor length

## Description

pg_lo_truncate64 は巨大対象の寸法をバイトで指定された数に変更する｡もし､新寸法が現在の寸法より小さいと､巨大対象は切詰められる｡新寸法が､現寸法より大きいと､巨大対象はヌルバイトが充填される｡新寸法は64ビット整数で､巨大対象の寸法をpg_lo_truncateと比較する事を許容している｡ `pg_lo_truncate64` changes the size of a large object to a specified number of bytes. If the new size is smaller than the current size, the large object is truncated. If the new size is larger than the current size, the large object is padded with null bytes. The new size is a 64-bit integer, allowing for larger size objects compare to pg_lo_truncate.

## Arguments

`conn`

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

`descriptor`

  巨大対象の為の pg_lo_open からの記述子｡ A descriptor for the large object from pg_lo_open.

`length`

  巨大対象の為のバイト単位の望ましい新しい､64ビット整数としての寸法｡ The desired new size in bytes for the large object, as a 64-bit integer.

## Return Value

なし｡ もし不都合が生じるとtcl不都合が発せられる｡ Nothing. 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_truncate64 を使うか模擬する｡ pg_lo_truncate64 が利用でき且つ､使用できる為に､(pgintcl除く)外部函数は PostgreSQL 9.3.0 以上と共に機械語翻訳し連結せねばならない｡ This command uses or emulates the PostgreSQL libpq function `lo_truncate64`. In order for `pg_lo_truncate64` 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_truncate | Home | pg_lo_unlink