On Thu, Nov 30, 2017 at 7:48 AM, Chapman Flack <c...@anastigmatix.net> wrote: > For the "master" one, what capabilities will it need to simply > enumerate the current names of known databases? I suppose I could > have it connect to the null dbname and query pg_database. Would > that be the civilized way to do it, or am I missing a simpler way?
Yes. That's actually what the autovacuum launcher does. It connects using InitPostgres(NULL, InvalidOid, NULL, NULL), and then scans pg_database to fetch a list (see get_database_list). -- Michael