Skip site navigation (1) Skip section navigation (2)

pg_dumpall default database

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: (view raw, whole thread or download thread mbox)
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

Regards, Dave

Attachment: pg_dumpall_default_database.diff
Description: text/plain (3.7 KB)


pgsql-patches by date

Next:From: Gurjeet SinghDate: 2007-01-15 14:12:50
Subject: Re: [PATCHES] [HACKERS] [Fwd: Index Advisor]
Previous:From: CNDate: 2007-01-15 12:01:56
Subject: Re: BCC55 and libpq 8.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group