DBLINK_GE...NNECTIONS(3)
β¨ 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
- alpine 3.23: postgresql18-doc 18.6-r0 Β· PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 Β· PostgreSQL
- arch rolling: postgresql 18.6-4 Β· PostgreSQL
- fedora 43: postgresql-contrib 18.6-1.fc43 Β· PostgreSQL
- fedora 44: postgresql-contrib 18.6-1.fc44 Β· PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-doc-18 18.6-0ubuntu0.26.04.1 Β· PostgreSQL
- ubuntu stonking: postgresql-doc-18 18.6-3build2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms