Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4QOr-0006zz-6D for pgsql-admin@arkaria.postgresql.org; Wed, 31 Jul 2013 07:00:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4QOq-0007cr-Ku for pgsql-admin@arkaria.postgresql.org; Wed, 31 Jul 2013 07:00:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4QOp-0007bZ-BV for pgsql-admin@postgresql.org; Wed, 31 Jul 2013 07:00:43 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4QOm-0001Io-3C for pgsql-admin@postgresql.org; Wed, 31 Jul 2013 07:00:43 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1V4QOk-0000HD-Qg for pgsql-admin@postgresql.org; Wed, 31 Jul 2013 00:00:38 -0700 Date: Wed, 31 Jul 2013 00:00:38 -0700 (PDT) From: Samrat Revagade To: pgsql-admin@postgresql.org Message-ID: <1375254038816-5765716.post@n5.nabble.com> In-Reply-To: <6E551FFA49836D4290CA09616AE1CB9BB14718@EX01.SPDFRAK.BLN> References: <6E551FFA49836D4290CA09616AE1CB9BB14718@EX01.SPDFRAK.BLN> Subject: Re: Restore after using pg_dumpall MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.9 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org >pg_dumpall > alldb.sql (store) >and >psql -f alldb.sql postgres (restore) >is it necessary to drop existing objects (for example roles, ...) ? >Any help is appreciated. I think it is not necessary. pg_dumpall supports dumping of the entire contents of a database cluster, It backs up each database in a given cluster, and also *preserves cluster-wide data such as role and tablespace definition*s. hence if you want to take backup for entire cluster then you can directly use pg_dumpall. or if you have any specific need then you can use pg_dump and manually preserve/delete other database objects . ----- Greetings, Samrat Revagade, NTT-DATA-OSS Center (Pune) -- View this message in context: http://postgresql.1045698.n5.nabble.com/Restore-after-using-pg-dumpall-tp5765452p5765716.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin