Skip to content

Instantly share code, notes, and snippets.

@fabriziomello
Last active October 5, 2022 12:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriziomello/3ac53a70ab262e37f9bca8d425c7263e to your computer and use it in GitHub Desktop.
Save fabriziomello/3ac53a70ab262e37f9bca8d425c7263e to your computer and use it in GitHub Desktop.
pgbouncer-show-dblink-fdw
@ichux
Copy link

ichux commented May 10, 2020

There should be COMMIT; at the end of your query since it started with a BEGIN;

@fabriziomello
Copy link
Author

There should be COMMIT; at the end of your query since it started with a BEGIN;

@ichux Fixed thanks!

Anyway this gist is just an example. I strongly recommend you use something like pgbouncer_fdw created by @keithf4. Also you can find more useful information about it on this blog post.

@ichux
Copy link

ichux commented May 11, 2020

Thanks for the pointers, I will do as you have advised. I appreciate your help @fabriziomello

I had issues around setting the IP address for all the containers on my PC but only succeeded in doing it some minutes ago using
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 idev

@roberto-mello
Copy link

This is now bundled in the pgbouncer_fdw extension available at https://github.com/CrunchyData/pgbouncer_fdw and used in pgMonitor (https://github.com/CrunchyData/pgmonitor)

@fabriziomello
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment