PG_LO_TELL(n)

πŸ“¦ version 3.1.1, in alpine 3.22, alpine 3.23, alpine 3.24, nixpkgs unstable

πŸ’… 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 from pg_lo_open. this is the large-object handle you got from pg_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