DBLINK_GE...NNECTIONS(3)

πŸ“¦ version 18.6, in opensuse-leap 16.0

✨ NAME ✨

dblink_get_connections β€” bestie, this is the lil function that hands you back the names of every open named dblink connection. like, all of them. the whole roster. πŸ’…

it lives in the PostgreSQL 18.6 Documentation section 3, so you already know it's a library call situation 🫢


🌸 SYNOPSIS 🌸

dblink_get_connections() returns text[]

no arguments, no drama, it just shows up and tells you who's there πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so dblink_get_connections returns an array of the names of all open named dblink connections. that's it. that's the whole vibe. it's giving roll call at the beginning of class, except everyone on the list actually showed up and is currently connected πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

it returns a text array of connection names ✨

or NULL if there are none 😭 (yes, empty roster = NULL, not an empty array, we don't make the rules)


🌈 EXAMPLES 🌈

look at her go:

SELECT dblink_get_connections();

one line, iconic, does exactly what it says on the tin πŸ’œ


fr fr no cap: this is the "who's online rn" check for your dblink connections. screenshot it, frame it, put it in the group chat πŸ“Έ

written up in the PostgreSQL 18.6 Documentation, dated 2026, filed under DBLINK_GE...NNECTIONS(3) β€” mwah, go check your connections bestie, ily, bye πŸ’–πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from