PG_LO_READ(n)

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

πŸ’– NAME πŸ’–

pg_lo_read β€” read from a large object, bestie! This is the PG_LO_READ() page from the PostgreSQL Tcl Interface Documentation ✨


πŸŽ€ SYNOPSIS πŸŽ€

pg_lo_read conn descriptor bufVar len

🌸 DESCRIPTION 🌸

Okay so pg_lo_read reads at most len bytes from a large object into a variable named bufVar. That's the whole vibe πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • conn β€” the handle of a connection to the database in which the large object exists πŸ”Œ
  • descriptor β€” a descriptor for the large object, straight from pg_lo_open πŸ‘‘
  • bufVar β€” the name of a buffer variable that will contain the large object segment 🧺
  • len β€” the maximum number of bytes to read πŸ“

⭐ RETURN VALUE ⭐

The number of bytes actually read is returned, periodt. This could be less than the number requested if the end of the large object is reached first β€” lowkey important 😭 In the event of an error, the return value is negative πŸ’€


That's the whole page, bestie! 🫢 Source/version: PostgreSQL Tcl Interface Documentation; date: 17 September 2020. Mwah πŸ’‹

πŸ“¦ where this page comes from