Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 9CD5E101438B for ; Thu, 1 Mar 2012 15:45:06 -0400 (AST) Received: from mail-gy0-f174.google.com ([209.85.160.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S3Bvz-0001ja-67 for pgsql-sql@postgresql.org; Thu, 01 Mar 2012 19:45:05 +0000 Received: by ghrr11 with SMTP id r11so463334ghr.19 for ; Thu, 01 Mar 2012 11:44:50 -0800 (PST) Received-SPF: pass (google.com: domain of adrian.klaver@gmail.com designates 10.68.220.67 as permitted sender) client-ip=10.68.220.67; Authentication-Results: mr.google.com; spf=pass (google.com: domain of adrian.klaver@gmail.com designates 10.68.220.67 as permitted sender) smtp.mail=adrian.klaver@gmail.com; dkim=pass header.i=adrian.klaver@gmail.com Received: from mr.google.com ([10.68.220.67]) by 10.68.220.67 with SMTP id pu3mr6405478pbc.61.1330631090150 (num_hops = 1); Thu, 01 Mar 2012 11:44:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PWwLnCcXTlBQyx8evJAA+ZU6xKzuyj+4uLN0+Ch7lF0=; b=fsZVXCBHLpTcND/rOl55WuywNdooMHCGf/06CbHfEkOt84ykTvwJuk+AA4djB7X2Iu 1RiAcyVul0DhFLWDTD21ThrbOVBaGroHgK9yc2XNz9uNUFCD/xUJsqtDjnGtctiws49a h5od9GzcDRQZy0HpeigBseQW2Su3kEw68DLq7+d/s5ufHpW96kLhEoKVqDSKc+E+nOqi trn02+GUatiPy7OKZLSTvJdnT4+PUT+PBqGTLZ99lRy5xTgpedSRqYrsikRW7Id3oyxy 6PO/t6Ci1N1uCtY7DcpEzgMp+kzFNWrmX1c0TdjS06oHm7a+etmScREHMTNN5WgKHJT/ JZKg== Received: by 10.68.220.67 with SMTP id pu3mr5267329pbc.61.1330631090042; Thu, 01 Mar 2012 11:44:50 -0800 (PST) Received: from [192.168.200.17] ([74.94.73.222]) by mx.google.com with ESMTPS id a1sm2811900pbj.72.2012.03.01.11.44.48 (version=SSLv3 cipher=OTHER); Thu, 01 Mar 2012 11:44:48 -0800 (PST) Message-ID: <4F4FD1AD.90501@gmail.com> Date: Thu, 01 Mar 2012 11:44:45 -0800 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Carlos Mennens CC: "PostgreSQL (SQL)" Subject: Re: Change Ownership Recursively References: <4F4FA622.70002@affinitas.de> <4F4FC1A1.6070702@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201203/15 X-Sequence-Number: 36410 On 03/01/2012 11:37 AM, Carlos Mennens wrote: > I changed to the suggested database which is owned by 'Carlos' and did > as instructed. Everything worked fine. Thank you! In your previous post my guess is this: iamunix=# \c postgres was really meant to be: iamunix=# \c - postgres The first changes to database postgres as current user, the second changes the user while remaining on the current database. > > On Thu, Mar 1, 2012 at 11:23 AM, Carlos Mennens > wrote: >> I did do a Google search for "PostgreSQL 9.1 change ownership >> recursively" but either couldn't find what I was looking for or >> missed it. > > On Thu, Mar 1, 2012 at 1:36 PM, Adrian Klaver wrote: >> For future reference including the Postgres version would be >> helpful. This area ownership/grants/etc has undergone a lot of changes over >> the various versions. > > I specified above I was using 9.1 PostgreSQL. Oops, my mistake, I never got to the PS:( -- Adrian Klaver adrian.klaver@gmail.com