PG_LO_CREAT(n)
π PG_LO_CREAT() π
ok so real talk, bestie β this page lives in the PostgreSQL Tcl Interface Documentation and it's giving "small but mighty." it's one function, one job, and honestly? it ate. let's get into it β¨
πΈ NAME πΈ
pg_lo_creat β create a large object π«Ά
β¨ SYNOPSIS β¨
pg_lo_creat conn mode
like, two args. that's it. that's the whole vibe. π
π¦ DESCRIPTION π¦
pg_lo_creat creates a large object. periodt. that's literally the entire description, no cap β she's concise, she's iconic, she doesn't over-explain herself. π
π ARGUMENTS π
connβ the handle of a connection to the database in which to create the large object. think of it as the group chat you're posting the large object into π¬modeβ the access mode for the large object. it can be any or'ing together ofINV_READandINV_WRITE. the "or" operator is|. for example:
[pg_lo_creat $conn "INV_READ|INV_WRITE"]
see how we smashed INV_READ and INV_WRITE together with that little |? that's the or'ing, bestie. that's the whole trick π₯
π RETURN VALUE π
the OID of the large object created. that's your receipt, your confirmation number, your little "it's done" text π
ngl, this one's short and sweet β but don't sleep on it, because theINV_READ/INV_WRITEor'ing is doing real work and you will want to get the|right. no skipping. π
and that's the whole page, bestie!! this one's from the PostgreSQL Tcl Interface Documentation, dated 17 September 2020 β literally older than some of our fave memes and still slaying π go create some large objects, you main character π§β
π¦ 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