PG_BLOCKING(n)

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

πŸ¦‹ PG_BLOCKING() πŸ¦‹

πŸŽ€ NAME πŸŽ€

pg_blocking β€” see or set whether or not a connection is set to blocking or nonblocking. she's part of the PostgreSQL Tcl Interface Documentation, and she's literally here to help you vibe-check your connection. πŸ’…


✨ SYNOPSIS ✨

pg_blocking conn [mode]

πŸ’– DESCRIPTION πŸ’–

okay so pg_blocking can set the connection to either blocking or nonblocking, and it can also see which way the connection is currently set. two jobs, one icon, she ate. 🫢

🌸 ARGUMENTS 🌸

  • conn β€” the handle of a connection to the database in which the large object exists. yep, that connection. πŸ”Œ
  • mode β€” if present, sets the mode of the connection to nonblocking if it's 0. otherwise, it sets the connection to blocking. no cap. πŸ’€

⭐ RETURN VALUE ⭐

  • if you call her with the mode argument, she returns nothing. like, void energy. πŸ«₯
  • otherwise, she returns 1 if the connection is set for blocking, or 0 if the connection is set for nonblocking. iconic behavior, honestly. πŸ‘‘

🫢 that's the whole page, bestie β€” from the PostgreSQL Tcl Interface Documentation, dated 17 September 2020. periodt. πŸ’…

πŸ“¦ where this page comes from