September 26, 2024: PostgreSQL 17 Released!
Unsupported versions: 7.0 / 6.5 / 6.4
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

pg_lo_lseek

Name

pg_lo_lseek — seek to a position in a large object
pg_lo_lseek conn fd offset whence

Inputs

conn

Specifies a valid database connection.

fd

File descriptor for the large object from pg_lo_open.

offset

Specifies a zero-based offset in bytes.

whence

whence can be "SEEK_CUR", "SEEK_END", or "SEEK_SET"

Outputs

None

Description

pg_lo_lseek positions to offset bytes from the beginning of the large object.

Usage

whence can be "SEEK_CUR", "SEEK_END", or "SEEK_SET".