PG_ESCAPE_BYTEA(n)
π NAME π
okay bestie, this page is PG_ESCAPE_BYTEA() from the PostgreSQL Tcl Interface Documentation, and it does exactly one iconic thing: pg_escape_bytea β escapes a binary string for inclusion into SQL statements. periodt. β¨
β¨ SYNOPSIS β¨
pg_escape_bytea string
π¦ DESCRIPTION π¦
pg_escape_bytea escapes a binary string, making it safe for inclusion into SQL statements. like, it's giving βSQL-safe binary stringβ main character energy, no cap. π
hereβs the example exactly as it appears, bestie:
pg_exec $conn "insert into foo values ([pg_escape_binary $name]);"
π ARGUMENTS π
binary_stringβ the binary string to be escaped. thatβs the whole vibe. π«Ά
πΈ RETURN VALUE πΈ
Returns the binary string, escaped for inclusion into SQL queries. slay. π₯
mwah π β this little page is from the PostgreSQL Tcl Interface Documentation, dated 17 September 2020. iconic, honestly. π
π¦ 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