问题
is there any way to display all database names using the host address and port?
Like SELECT current_database() which shows currently connected db. I need to display all database names.
Thanks in advance.
回答1:
There is a table which shows all databases:
SELECT * FROM pg_database;
来源:https://stackoverflow.com/questions/48656360/display-all-database-names