PG_LO_LSEEK(n)
β¨ NAME β¨
Okay bestie, welcome to the pg_lo_lseek(n) page from the PostgreSQL Tcl Interface Documentation π
β this one is all about pg_lo_lseek, the function that lets you seek to a position of a large object. No cap, that's the whole vibe.
β¨ SYNOPSIS β¨
pg_lo_lseek conn descriptor offset whence
β¨ DESCRIPTION β¨
pg_lo_lseek moves the current read/write position to offset bytes from the position specified by whence. That's it, that's the tea β β it's giving "jump to exactly where you need to be in the large object." π¦
β¨ ARGUMENTS β¨
connβ the handle of a connection to the database in which the large object exists. π«Άdescriptorβ a descriptor for the large object frompg_lo_open. Iconic little handle, honestly.offsetβ the new seek position in bytes. πwhenceβ specified from where to calculate the new seek position:SEEK_CUR(from current position),SEEK_END(from end), orSEEK_SET(from start). β¨
Lowkey important: whence is the one choosing the starting point for the seek math, so keep those three values close. π
β¨ RETURN VALUE β¨
None. Literally none, bestie β no return value to catch. ππ
With love from the PostgreSQL Tcl Interface Documentation, dated 17 September 2020. πβ¨
π¦ where this page comes from
- alpine 3.22: pgtcl-doc 3.1.0-r0 Β· BSD-3-Clause
- alpine 3.23: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- alpine 3.24: pgtcl-doc 3.1.1-r0 Β· BSD-3-Clause
- nixpkgs unstable: pgtcl 3.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms