PG_LO_TRUNCATE(n)
β¨ PG_LO_TRUNCATE() β¨
okay so this page is from the PostgreSQL Tcl Interface Documentation, and it's all about pg_lo_truncate, which is giving βresize my large objectβ energy. π«Ά
πΈ NAME πΈ
pg_lo_truncate β truncate a large object to a given length. periodt. π
π¦ SYNOPSIS π¦
pg_lo_truncate conn descriptor length
π DESCRIPTION π
pg_lo_truncate truncates the specified large object to the given length. If the length is greater than the current large object length, the large object is extended with null bytes. no cap, that's the whole vibe. β¨
π ARGUMENTS π
connβ the handle of a connection to the database in which the large object exists. basically your entry ticket to the right database. πdescriptorβ a descriptor for the large object frompg_lo_open. it's giving large-object ID card. πͺͺlengthβ the length to which the large object is to be truncated or padded. yes, it can go shorter or get padded. π
π RETURN VALUE π
A zero-based offset in bytes suitable for input to pg_lo_lseek. so like, it hands you a byte offset you can feed straight into pg_lo_lseek. slay. π«
not me emphasizing the important bit: zero-based offset, in bytes, suitable for input to pg_lo_lseek. iykyk. π§
π«Ά that's the PostgreSQL Tcl Interface Documentation tea, 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