Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uQkGL-00Gu0T-7w for pgsql-admin@arkaria.postgresql.org; Sun, 15 Jun 2025 10:06:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uQkGJ-00CJdr-4I for pgsql-admin@arkaria.postgresql.org; Sun, 15 Jun 2025 10:06:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uQkGI-00CJdi-P6 for pgsql-admin@lists.postgresql.org; Sun, 15 Jun 2025 10:06:51 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uQkGH-0026PA-1a for pgsql-admin@lists.postgresql.org; Sun, 15 Jun 2025 10:06:50 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-3138e64b42aso3911780a91.0 for ; Sun, 15 Jun 2025 03:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749982008; x=1750586808; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pUa+G4sWDMz4jUe1f14liUfRl6kXfonlb3IjZtvQ8/A=; b=bZrFkNI0ei1Yzck7NoUZ+SeJ/FG5+cROQd0nYfbLtDzZsk1hXcyhP6iAFZQlypVdYM KWkJEa0eLe6yr28wLLewRnBr7DwBeSd1/Y/uf55c90lQyqGGOacHooeSMnqccqifPpa+ +h2HzHg/6mHdMxnyIIlYE5lP8260Z0Rhe5R/wV4Lpgr1Myar9s4JkKIyQy1/NoaGb6Qs xhTufeDs9uKvsOtGpq7dvj433SQ4atAzp9p9r7S0k5BbxH74/uextYwT+cACuhWs0coJ ybwwR+CG4t1R0WIvhuHdNUPphYExdcSjqthunwQAgPNgEX68s+L8x/2n3S3att5lol9q /YLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749982008; x=1750586808; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pUa+G4sWDMz4jUe1f14liUfRl6kXfonlb3IjZtvQ8/A=; b=jFY7bEmGuZ0fX6n2Cuo1sL1JYqWN1O0GDlXMjSeBuvbQ9+sfeTwyfNIwBFxRz9ks7X wD6a1G9zRPT6FsyTlNoExDqpr5nU2oKEyAFNbTbytooupSedFgtAew7iFtegsnMEfV+n sU7CvFRvcpGVHrObXbWNgqt+EpCvb/z2EoSM6P0Z3wOGBl1kEV5UbN3tOK8U5ko6/jIg o+gThTgd7eHUvAOhwcPQR64FHqFNXLinlldHjH0KGQNMPQQ5ORK+s3JmJLXz9q2vam+5 uyGrHV5Vo6wSyPeajD8B/p9QLKBQ6vZmuQJ44cV34Ovp21QLST9lE8+HQynHrKpnLABM jKYg== X-Gm-Message-State: AOJu0Yw44cF2JwUvxpfhI2MXp2/1Uz3pFZgjT/S5PQQrApvY3DJ36ArD +x30yRjVWnIvOE6TRSTGoXi6jJRqcxxk7pQyjia0j5hr5NzN7dW5s6YSjjIOr9+bvN9anB2tE2C 3pFnVCTl/+n7d44BIunhOabRrW15+Qm8= X-Gm-Gg: ASbGncscaCBBlyd/vxRyA+kQ3zgGewc1UtJdO8cPRYUpVKVMcHD/THtGcmqTTPqQqdp YDJ+apD9xinYa7G1S8ZoDZLs4rt6kT4WDGdqlznXg/I2IOtbKpzEyaux4X8F1yZkV7hvXK7estC EXyNdQjhAJsnEBt4ic4kGjcIRDFEgefKhtfqYeboVuw6Lv2TGwjIYh3w== X-Google-Smtp-Source: AGHT+IEl0dqFvcjaKT7o50xIHn14IuiLqpq5EYb+okpmcxSBw8fU4hnm9mtZl2jPnRnOKI4NvNA0DJ8GeAo+BPY1BaA= X-Received: by 2002:a17:90b:57e8:b0:313:1ea2:a577 with SMTP id 98e67ed59e1d1-313f1d3072bmr8655509a91.29.1749982008328; Sun, 15 Jun 2025 03:06:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Edwin UY Date: Sun, 15 Jun 2025 22:06:11 +1200 X-Gm-Features: AX0GCFt4-oVKyJyy4_1ZiABGRjph9BL8Mknk5sg7EBH7UFVrRP3GKGgGdD6xwA8 Message-ID: Subject: Re: GRANT USAGE ON SCHEMA To: "David G. Johnston" Cc: Pgsql-admin Content-Type: multipart/alternative; boundary="000000000000f84df10637996f27" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f84df10637996f27 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi David J, Yeah, sorry, I should have used different names, but yeah, I have also created the a and b roles named the same as the schema. Should have used schema_a, schema_b, role_a, role_b. On Sun, Jun 15, 2025 at 11:19=E2=80=AFAM David G. Johnston < david.g.johnston@gmail.com> wrote: > On Sat, Jun 14, 2025 at 3:09=E2=80=AFPM Edwin UY wro= te: > >> I thought it was supposed to all 'full' access of one schema to the othe= r >> > > Where did you get the idea that objects (aside from roles) ever get > privileges on other objects? Or did you also create roles "a" and "b" an= d > are just using the wrong terminology here? > > There is also no such thing as permissions on one type of object somehow > affecting your privileges on other object types. Your privileges on > schemas will not influence (directly) your permissions on tables. Neithe= r > to grant additional privileges or to block them - say if you don't have > usage on schema but do have select on a contained table. Corner-cases th= at > do behave this way notwithstanding - it isn't reliable. > > David J. > > --000000000000f84df10637996f27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi David J,

Yeah, sorry, I s= hould have used different names, but yeah, I have also created the a and b = roles named the same as the schema.
Should have used schema_a, sc= hema_b, role_a, role_b.



On Sun, Jun 15, 2025 at 11:19=E2=80=AFAM David G. Johnston <david.g.johnston@gmail.com> = wrote:
On Sat, Jun 14, 2025 at 3:09=E2=80=AFPM Edwin UY <edwin.uy@gmail.com> wrote= :
I thought it was supposed=C2=A0to all 'full' access of one schema= to the other
=C2=A0
Where did y= ou get the idea that objects (aside from roles) ever get privileges on othe= r objects?=C2=A0 Or did you also create roles "a" and "b&quo= t; and are just using the wrong terminology here?

<= div class=3D"gmail_default" style=3D"font-family:arial,helvetica,sans-serif= ">There is also no such thing as permissions on one type of object somehow = affecting your privileges on other object=C2=A0types.=C2=A0 Your privileges= on schemas will not influence (directly) your permissions on tables.=C2=A0= Neither to grant additional privileges or to block them - say if you don&#= 39;t have usage on schema but do have select on a contained table.=C2=A0 Co= rner-cases that do behave this way notwithstanding - it isn't reliable.=

David J.

--000000000000f84df10637996f27--