From: | Paul Smith <paul(at)pscs(dot)co(dot)uk> |
---|---|
To: | Ron <ronljohnsonjr(at)gmail(dot)com>, <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: vacuumdb maintenance-db?? |
Date: | 2022-11-09 20:38:00 |
Message-ID: | 1845e1d2840.2923.9bfe8bcc586ac955e423c0e3d5444448@pscs.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I think it's just because a connection has to be to a database, any
database. Then, it'll do a "select * from pg_database" (or similar)
I expect this option is if the "postgres" database isn't accessible for
some reason
Paul
On 9 November 2022 20:30:14 Ron <ronljohnsonjr(at)gmail(dot)com> wrote:
>
> https://www.postgresql.org/docs/13/app-vacuumdb.html
>
>
> --maintenance-db=dbname Specifies the name of the database to connect to to
> discover which databases should be vacuumed, when -a/--all is used. If not
> specified, the postgres database will be used, or if that does not exist,
> template1 will be used.
> Presumably this means that I can create a tiny database with one table that
> lists a set of databases. Or maybe not.
>
> Where is this documented?
>
> Thanks
>
>
> --
> Angular momentum makes the world go 'round.
--
Paul Smith Computer Services
Tel: 01484 855800
Vat No: GB 685 6987 53
Sign up for news & updates at http://www.pscs.co.uk/go/subscribe
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2022-11-09 20:39:42 | Re: vacuumdb maintenance-db?? |
Previous Message | Ron | 2022-11-09 20:29:44 | vacuumdb maintenance-db?? |