| From: | Dave Page <dpage(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | pg_dumpall default database |
| Date: | 2007-01-15 13:44:42 |
| Message-ID: | 45AB854A.6000805@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
Per discussion on -hackers, the attached patch allow the default
database to be specified on the pg_dumpall command line, eg.
pg_dumpall [options...] [dbname]
If dbname is not specified, postgres/template1 are used per current
behaviour. If a connection cannot be made to dbname, an error is
returned and pg_dumpall exits. I've also added a similar error handler
to catch failures to connect to postgres and pg_dumpall (currently, the
dump will still be attempted).
This patch should be applied on top of my previous patch
(pg_dumpall_global_objects2.diff)
Regards, Dave
| Attachment | Content-Type | Size |
|---|---|---|
| pg_dumpall_default_database.diff | text/plain | 3.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gurjeet Singh | 2007-01-15 14:12:50 | Re: [PATCHES] [HACKERS] [Fwd: Index Advisor] |
| Previous Message | CN | 2007-01-15 12:01:56 | Re: BCC55 and libpq 8.2 |