pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
existing dblinks
2+ messages / 2 participants
[nested] [flat]

* existing dblinks
@ 2019-10-21 22:26  Julie Nishimura <juliezain@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Julie Nishimura @ 2019-10-21 22:26 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general

Hello, is there any way to find if there are any dblink exist on the 9.6 postgresql server?

Thanks

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: existing dblinks
@ 2019-10-22 15:27  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Julie Nishimura <juliezain@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Adrian Klaver @ 2019-10-22 15:27 UTC (permalink / raw)
  To: Julie Nishimura <juliezain@hotmail.com>; pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>; pgsql-general

On 10/21/19 3:26 PM, Julie Nishimura wrote:
> Hello, is there any way to find if there are any dblink exist on the 9.6 
> postgresql server?

Are looking for whether the extension was installed?

If so then in psql:

\dx

will tell you.

Or are you looking for code that uses dblink?

AFAIK dblink creates connections on demand not from information in a 
persistent store. So there is no table you can query to get the 
information. You would have to search your code(internal and external) 
for references to it.

If there are open connections you can use:

https://www.postgresql.org/docs/11/contrib-dblink-get-connections.html

dblink_get_connections — returns the names of all open named dblink 
connections

> 
> Thanks


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-10-22 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-10-21 22:26 existing dblinks Julie Nishimura <juliezain@hotmail.com>
2019-10-22 15:27 ` Adrian Klaver <adrian.klaver@aklaver.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox