Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tsb3T-0003OO-WB for pgsql-sql@arkaria.postgresql.org; Tue, 08 Jan 2013 15:25:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tsb3S-0004cM-Vb for pgsql-sql@arkaria.postgresql.org; Tue, 08 Jan 2013 15:25:31 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tsb3S-0004cH-9v for pgsql-sql@postgresql.org; Tue, 08 Jan 2013 15:25:30 +0000 Received: from mail-pa0-f41.google.com ([209.85.220.41]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tsb3Q-00011Q-RY for pgsql-sql@postgresql.org; Tue, 08 Jan 2013 15:25:29 +0000 Received: by mail-pa0-f41.google.com with SMTP id bj3so393639pad.0 for ; Tue, 08 Jan 2013 07:25:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=TNm+AnxwicqvtR9KXU5kdI4plQ1zlHFDxriXzrwbiHU=; b=yOpCcHxhswVBgQGNQzVrB0Pjly23UZYB0Du6fm531DQ2TbkBbYywDe2xfqp7e5gewf SfLu/gaHkxry5lpVF6y4bsfg/MC4xXT7uTvDQGxRr8nteH4g1PY0YoVoeb164FoCaZ0B gjVrBPnuQx22EX2nxbwp2Q6tkdfcqHQ1mTFxutbTrm9JfNqBC4F3NHURmG1blgyvWAVr UvRIfuHjDVFN44hnNIHkIwZcpBKg/vgxy83HxmhV4AIcRgKCOtF++lvSTIGZ5bzv70qR FuemLYx1jpHS9+Jv+2wUn2MFkqu4FEvDRwx82Q9U/p7rZWoa3suwDdfSsGlIgaPGBWwq cVAg== X-Received: by 10.68.245.67 with SMTP id xm3mr199280602pbc.152.1357658728002; Tue, 08 Jan 2013 07:25:28 -0800 (PST) Received: from [192.168.0.2] (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id rk6sm39802443pbc.20.2013.01.08.07.25.26 (version=SSLv3 cipher=OTHER); Tue, 08 Jan 2013 07:25:26 -0800 (PST) Message-ID: <50EC3A65.6080203@gmail.com> Date: Tue, 08 Jan 2013 07:25:25 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "Edward W. Rouse" CC: pgsql-sql@postgresql.org Subject: Re: copy users/groups References: <021a01cdedb1$ff7340b0$fe59c210$@com> In-Reply-To: <021a01cdedb1$ff7340b0$fe59c210$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 01/08/2013 07:08 AM, Edward W. Rouse wrote: > We have a database that was updated from 7.4.1 to 9.1.3. I've gotten > everything working, but now it seems that the users and groups weren't > restored. Probably because they weren't backed up. Is there a way to dump > just the users and groups, plus the passwords and permissions, and restore > them without overwriting what's been manually added to the new database? Users/groups i.e roles are global to a cluster, you need to use pg_dumpall: http://www.postgresql.org/docs/9.1/interactive/app-pg-dumpall.html pg_dumpall -g Will dump only the global items. > > > Edward W. Rouse > > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql