X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E0BA6529BF for ; Tue, 12 Jul 2005 16:12:57 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50921-10 for ; Tue, 12 Jul 2005 19:12:55 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 27E1A529B0 for ; Tue, 12 Jul 2005 16:12:54 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6CJCoLR021464; Tue, 12 Jul 2005 15:12:50 -0400 (EDT) To: "Graham Vickrage" Cc: pgsql-sql@postgresql.org Subject: Re: Copy user privileges In-reply-to: <013301c586dc$369ad110$0c67a8c0@gvickrage> References: <013301c586dc$369ad110$0c67a8c0@gvickrage> Comments: In-reply-to "Graham Vickrage" message dated "Tue, 12 Jul 2005 13:21:21 +0100" Date: Tue, 12 Jul 2005 15:12:50 -0400 Message-ID: <21463.1121195570@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/102 X-Sequence-Number: 22080 "Graham Vickrage" writes: > I want to keep all the privileges but assign them to a new user. > What is the best way of doing this? How about just renaming the old user to a new name? I don't think we have an ALTER command for that, but an UPDATE on pg_shadow would get the job done just as well. regards, tom lane