DBLINK_GET_CONNECTIONS(3pg16)
β¨ NAME β¨
dblink_get_connections β bestie, this one hands you back the names of all the open named dblink connections π
(this is from the PostgreSQL 16.15 docs btw, section 3, iykyk π«Ά)
πΈ SYNOPSIS πΈ
dblink_get_connections() returns text[]
literally that's it, no args, she just vibes and returns a text[] β¨
π¦ DESCRIPTION π¦
okay so dblink_get_connections returns an array of the names of all the open named dblink connections. that's the whole gig. she's giving "who's in the group chat rn" energy π
π RETURN VALUE π
you get back a text array of connection names π
or NULL if there are none β so if it comes back NULL, the group chat is empty, nobody's connected, it's giving crickets π
π EXAMPLES π
SELECT dblink_get_connections();
that's the whole example. short and iconic, no cap β
lowkey obsessed with how simple this one is β but fr fr, remember: she only reports the named connections, that's the vibe check here π§
and that's the whole page, bestie! π this cutie comes to you courtesy of PostgreSQL 16.15, dated 2026, manual section 3 β go forth and slay your connections π₯π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms