Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGpIP-00044u-Rr for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2020 20:05:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kGpIO-0005k0-Ni for pgsql-hackers@arkaria.postgresql.org; Fri, 11 Sep 2020 20:05:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGpIO-0005jt-HD for pgsql-hackers@lists.postgresql.org; Fri, 11 Sep 2020 20:05:20 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kGpIM-0003Qn-1g for pgsql-hackers@postgresql.org; Fri, 11 Sep 2020 20:05:20 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id ef16so5830169qvb.8 for ; Fri, 11 Sep 2020 13:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HW6bbeHBTqGXvJ2mNLAKUz4nA1R0O9B7zwtyl7ts+Gg=; b=0JBL2OcGOm33hYVeUKNfrZ8j3taOSNUcsQNfnu+nxU6wrJFYH+IZEruxW7II2o2Chb dSwBt+48C+XfNA/frIvb5Qhjqsio9JheMppnnMlrpZQXBkO/vXSlss6R6qR3KwsZXC8w fFHkvY5m1KVicd4uXuAT51pL+ouFEti1qmDkLT7GRJu7ntQ7ZIQ8zuaFjNjPuLp/NV5A ac5vJRlCnIKhZzdG6YqdEJYohYsEXknjxjKr1Pz8UT1qzNWsiekdARQXclMuthRRnuRO SBmrfekC9VUhjn//EbTfZeSS4XB9XzLxSq2ZRAJ7NA1hI09M4oB1rJIwSbJPNE2m3abM jFpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=HW6bbeHBTqGXvJ2mNLAKUz4nA1R0O9B7zwtyl7ts+Gg=; b=U1GAcUEckdgdwSuvh26Fj3UoJXOxIWB0ePKOyPgJT0dSY2nELNyhBwZZPPPgGBdHmQ s7ldIQUc8Qn9vqSgp1BLxScX0y18lBDky9DZeJKQ2WREYgLO4gqoZS8aXcZ2y4edV+qV 4j9QNL/+NmqOtmzQfOEvcCuZGlf+YTTGeccjV2Owzk2z7qhUiK0NC5rBbciFoRNRWLtP ICAjSrty3q85sMH7v42eLtbGMHZ8aucPj8oaHcCyc9P3lsgLs4z3N4OeayTOvsKn9bsM +QfxHGEkOwRndihBIR+OF7f+kmscw8j9SNtlZ4G2ERB4kpa9IHiWWeeyHH5zEb2z62Vh 6bXw== X-Gm-Message-State: AOAM53030fynabmgg+UXH0Xq7KzxovPNIfHhS1BeX366vqlGsVUeecsW hzJa7f3aFIV+gdNuphaKf8Cx1JkSQIIZyQ== X-Google-Smtp-Source: ABdhPJwpKE5fMw16OwGJlp50IhOXj++zUGT5XZzfHXLJYr7OUtz7H9JDhdsGPycJWdXkmJTbZ0xtWw== X-Received: by 2002:a0c:e543:: with SMTP id n3mr3645478qvm.11.1599854716596; Fri, 11 Sep 2020 13:05:16 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id k72sm3696717qke.121.2020.09.11.13.05.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 13:05:15 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C2D5F2A1506; Fri, 11 Sep 2020 17:05:13 -0300 (-03) Date: Fri, 11 Sep 2020 17:05:13 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers Subject: Re: Allow CURRENT_ROLE in GRANTED BY Message-ID: <20200911200513.GA1096@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Aug-26, Peter Eisentraut wrote: > Here is another patch that also makes comprehensive updates to the rolenames > tests under src/test/modules/unsafe_tests/. Looks good to me. You need to DROP ROLE "current_role" at the bottom of rolenames.sql, though (as well as DROP OWNED BY, I suppose.) > I think this should now cover all the required ancillary changes. \o/ -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services