Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN2QN-0007N1-Fo for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 21:10:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gN2QL-0006dC-ST for pgsql-general@arkaria.postgresql.org; Wed, 14 Nov 2018 21:10:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN2QL-0006a9-6L for pgsql-general@lists.postgresql.org; Wed, 14 Nov 2018 21:10:09 +0000 Received: from mx1.riseup.net ([198.252.153.129]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gN2QI-0002u0-8W for pgsql-general@lists.postgresql.org; Wed, 14 Nov 2018 21:10:08 +0000 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 663041A0C10 for ; Wed, 14 Nov 2018 13:10:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1542229803; bh=YrnHDIdQjMIfCJ/EZaczj8+vl0BYKBvXF8k2d4xd0K8=; h=Date:From:To:Subject:References:In-Reply-To:From; b=GyqbiBVgM3uw6sKqy+pf9flk6nvkQDRSy/g/RE0Oh5YhCJUJBdKGWJiPBtXdMX7Yh 3JKgLXmuo54Cn53JK28SohBXwn73BXvQnoxroJpVIeRWSdGUO33aRWAGPaN/jAMJJN 2a0+UPs4IhxuwuFShXsTVuiG5HeF5NxF9bhc4RMI= X-Riseup-User-ID: 35E96F9E289EC2FCEC76BDDA5D5A633EEA7A48ECDDDBA657DAA9E99BCE4AD397 Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id F2CEE1036B7 for ; Wed, 14 Nov 2018 13:10:02 -0800 (PST) Date: Wed, 14 Nov 2018 22:10:00 +0100 From: Nicolas Paris To: pgsql-general@lists.postgresql.org Subject: Re: Default Privilege Table ANY ROLE Message-ID: <20181114210746.jojpcnpq4lwdmliz@riseup.net> Mail-Followup-To: pgsql-general@lists.postgresql.org References: <20181114141608.ryvolxl7v7z2grzi@riseup.net> <306e4be880a264c701be5dfa667a1e95de76e175.camel@cybertec.at> <20181114202055.a23bgy354qnmo7jn@riseup.net> <12333.1542228819@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12333.1542228819@sss.pgh.pa.us> Priority: normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Nov 14, 2018 at 03:53:39PM -0500, Tom Lane wrote: > Maybe I'm missing something, but doesn't this solve your problem > as stated? > > ALTER DEFAULT PRIVILEGES IN SCHEMA myschema GRANT SELECT ON TABLES TO public; Not sure that's equivalent to what I am looking for below (but is not allowed): > ALTER DEFAULT PRIVILEGES FOR ROLE *.* IN SCHEMA "myschema" GRANT select ON TABLES TO "myuser" -- nicolas