pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Neeraj M R <neerajmr12219@gmail.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: Restricting user to see schema structure
Date: Thu, 12 May 2022 23:08:06 -0400
Message-ID: <569304.1652411286@sss.pgh.pa.us> (raw)
In-Reply-To: <A0348203-9026-46A0-B53E-3720EA0401F6@yugabyte.com>
References: <CANV4nBEqKefjxaBJkYrucGDLM41Tr0QehG2WBmoM_D2BXTUrfg@mail.gmail.com>
	<e3b4ecf7-cda2-d47b-cc0e-2b91c3b1c127@aklaver.com>
	<E9B37863-A142-4898-8BD6-85D46CF2CC29@yugabyte.com>
	<048ab2c5-ddf6-d039-3c2a-1828d8c9137b@aklaver.com>
	<CAKFQuwYmBFKrfTstgQPSRG-gAt-2Ne=vdQOfmEUL2Sy8x5S6Cg@mail.gmail.com>
	<A0348203-9026-46A0-B53E-3720EA0401F6@yugabyte.com>

Bryn Llewellyn <bryn@yugabyte.com> writes:
> Maybe this entire discussion is moot when hackers can read the C code of PG's implementation…

Hmm ... in one way that's unrelated, but in another way perhaps it is.
Postgres' system catalogs have always been user-readable as much as
possible, excepting only cases that clearly might contain private data
such as pg_statistic or pg_user_mapping.umoptions.  We have pretty much
no interest in revisiting that design choice, even if doing so wouldn't
likely break a couple decades' worth of client-side software development.
It's not very hard to draw a line connecting that design choice to our
open-source ethos.

Anyway, if you feel a need to prevent user A from seeing the catalog
entries for user B's database objects, the only answer we have is to
put A and B into separate databases.  If despite that you want A and
B to be able to share some data, you can probably build the connections
you need using foreign tables or logical replication; but there's not
a lot of pre-fab infrastructure for that, AFAIK.

			regards, tom lane





view thread (31+ messages)  latest in thread

Message-ID: <569304.1652411286@sss.pgh.pa.us>
Permalink:  ../569304.1652411286@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/569304.1652411286@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bryn@yugabyte.com, david.g.johnston@gmail.com, adrian.klaver@aklaver.com, neerajmr12219@gmail.com
  Subject: Re: Restricting user to see schema structure
  In-Reply-To: <569304.1652411286@sss.pgh.pa.us>
  References: <CANV4nBEqKefjxaBJkYrucGDLM41Tr0QehG2WBmoM_D2BXTUrfg@mail.gmail.com> <e3b4ecf7-cda2-d47b-cc0e-2b91c3b1c127@aklaver.com> <E9B37863-A142-4898-8BD6-85D46CF2CC29@yugabyte.com> <048ab2c5-ddf6-d039-3c2a-1828d8c9137b@aklaver.com> <CAKFQuwYmBFKrfTstgQPSRG-gAt-2Ne=vdQOfmEUL2Sy8x5S6Cg@mail.gmail.com> <A0348203-9026-46A0-B53E-3720EA0401F6@yugabyte.com> <569304.1652411286@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox