Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 53FD737C04A for ; Fri, 3 Oct 2008 17:12:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60524-02 for ; Fri, 3 Oct 2008 17:12:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.chappy.com (mail1.chappy.com [67.132.255.10]) by postgresql.org (Postfix) with ESMTP id 48A0037C067 for ; Fri, 3 Oct 2008 17:12:50 -0300 (ADT) Received: from nas01.chappy.com (nas01.chappy.com [192.168.40.21]) by mail1.chappy.com (Postfix) with ESMTP id 1E11C71052; Fri, 3 Oct 2008 16:12:14 -0400 (EDT) Received: from tech-pc04.chappy.com (tech-pc04.chappy.com [192.168.105.223]) by nas01.chappy.com (Postfix) with ESMTP id 7A16863F32; Fri, 3 Oct 2008 16:12:56 -0400 (EDT) Date: Fri, 3 Oct 2008 16:12:13 -0400 (EDT) From: Yauheni Labko To: Julie Warden Cc: pgsql-admin@postgresql.org Subject: Re: pg_dump and roles In-Reply-To: <4k6ce45tvg8aqhnol6s8n6s3sn41bdc7q1@4ax.com> Message-ID: References: <4k6ce45tvg8aqhnol6s8n6s3sn41bdc7q1@4ax.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Chappy-MailScanner: Found to be clean X-Chappy-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.399, required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-Chappy-MailScanner-From: yyl@chappy.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/16 X-Sequence-Number: 30472 > Is there a method to dump just the roles from a database, or otherwise > select them, so I can build a script to reload the roles? Otherwise, I > guess I'll just read the tables for each database and build the > security script from that. from man pg_dumpall: -r --roles-only Dump only roles, no databases or tablespaces. Eugene