Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 52FBD1337B6E for ; Thu, 30 Dec 2010 18:23:20 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 64128-07 for ; Thu, 30 Dec 2010 22:23:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f46.google.com (mail-vw0-f46.google.com [209.85.212.46]) by mail.postgresql.org (Postfix) with ESMTP id EF90C1337B68 for ; Thu, 30 Dec 2010 18:23:12 -0400 (AST) Received: by vws16 with SMTP id 16so4574775vws.19 for ; Thu, 30 Dec 2010 14:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:reply-to:to:subject:date :user-agent:cc:references:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=rueVR6ODxmBA4kaqNoT61QLhvSbj/VOCta3nV7+vsr4=; b=jBAok9G/LkyiQKPsAwlom6GqvtO/OQ0gZNmE8idqZn5F55FLoJ5UlslOWyXt10vzxt Y8jeGa+4IWvnaAHzBjqv709yPLcnaCUlfHWvFdwLEnD6uREUhgH8dqE3XlU1M0XI+iKs 0i6MOEUhfwhx+wO+Y/w9a2qo87s/sE94gG3YA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=IPVGt26nU1VEfh2ZBOmwE59ext2JsbuaAWS6bxdcT2G/R3qZj1PFRrG0vDxBbGk6l8 UM7eaA8uN49d9qc3Rgv/tylIV0Qo2rDtnatAzweSs9zSjAves475XZnD/iBvxdy+zNK8 HlScEJWP2v5tOH/F6jmODMR8cZLIknaxibb7U= Received: by 10.220.175.138 with SMTP id ba10mr951446vcb.104.1293747791471; Thu, 30 Dec 2010 14:23:11 -0800 (PST) Received: from tucker.local (c-24-17-164-54.hsd1.wa.comcast.net [24.17.164.54]) by mx.google.com with ESMTPS id ft27sm6109651vbb.18.2010.12.30.14.23.10 (version=SSLv3 cipher=RC4-MD5); Thu, 30 Dec 2010 14:23:10 -0800 (PST) From: Adrian Klaver Reply-To: adrian.klaver@gmail.com To: pgsql-sql@postgresql.org Subject: Re: create role Date: Thu, 30 Dec 2010 14:23:10 -0800 User-Agent: KMail/1.9.10 Cc: Tony Capobianco References: <1293747263.1650.7.camel@tony1.localdomain> In-Reply-To: <1293747263.1650.7.camel@tony1.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201012301423.10229.adrian.klaver@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.588 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201012/108 X-Sequence-Number: 34944 On Thursday 30 December 2010 2:14:23 pm Tony Capobianco wrote: > Hi, > I'm successfully executing the below: > > create role developer login; > alter role developer set default_tablespace=dev; > alter role developer set search_path=dev,staging, esave, support, email, > public; > > grant select on members to developer; > grant create on schema dev to developer; > > However, when I do this: > psql (8.4.5, server 8.4.2) > Type "help" for help. > > esave_dw=> \d members > Did not find any relation named "members". > esave_dw=> > esave_dw=> \d esave.members > Table "esave.members" > Column | Type | Modifiers > ---------------------+-----------------------------+----------- > memberid | numeric | not null > etc.... > > How can I get this so I don't have to preface the \d with the schema > name every time? > > Thanks. > Tony Did you log out and then back in as developer? Per: http://www.postgresql.org/docs/9.0/interactive/sql-alterrole.html "The remaining variants change a role's session default for a configuration variable, either for all databases or, when the IN DATABASE clause is specified, only for sessions in the named database. Whenever the role subsequently starts a new session, the specified value becomes the session default, overriding whatever setting is present in postgresql.conf or has been received from the postgres command line." -- Adrian Klaver adrian.klaver@gmail.com