PG_LO_TELL(n)
π pg_lo_tell β bestie edition π
okay so this little icon lives in the PostgreSQL Tcl Interface Documentation, and she is here to tell you where youβre at inside a large object. no cap, itβs giving βcursor location checkβ energy π
β¨ NAME β¨
pg_lo_tell β return the current seek position of a large object π
πΈ SYNOPSIS πΈ
pg_lo_tell conn descriptor
π¦ DESCRIPTION π¦
pg_lo_tell returns the current read/write position in bytes from the beginning of the large object. literally just βwhere are we rnβ but for a large object, and yes she ate π
π ARGUMENTS π
connβ the handle of a connection to the database in which the large object exists. bestie, this is your database connection β¨descriptorβ a descriptor for the large object frompg_lo_open. this is the large-object handle you got frompg_lo_openπ«Ά
π RETURN VALUE π
a zero-based offset in bytes suitable for input to pg_lo_lseek. so like, you can take this number and hand it straight to pg_lo_lseek β slay π
lowkey important: itβs a zero-based offset in bytes, not vibes. keep it exact, iykyk π
mwah π this iconic little page is from the PostgreSQL Tcl Interface Documentation, dated 17 September 2020 β periodt πβ¨
π¦ 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