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 1tcVvC-000dgY-Lc for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2025 20:41:27 +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 1tcVvA-00EXNK-Pa for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2025 20:41:24 +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 1tcVvA-00EXNC-9T for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2025 20:41:24 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tcVv8-001p2e-00 for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2025 20:41:23 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43675b1155bso56263805e9.2 for ; Mon, 27 Jan 2025 12:41:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738010480; x=1738615280; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AxvqxfVcGAzfclrQ7rLzfLjNZvKcu8VUCAHIn4zMv0I=; b=U1/12qvytNBbCl5GZAyDz86scKpfAIDbA1HhH9b1vHeGssiP2fFnSnGaagXJauZ697 DYV/Ep2q+QkXyrNvr35iUvXlbR88zNjquc9GVBCXXDa5rfF4lkFe1WRsavllaXUh29zy W/1j1SNPl1GdMtBgUqwrNisahz/T9uIzr+lwp6mGTUzVtEf9p7OuJP5icgyxexbm6e3e WQIgI+UGl0lbyldFLEIgeUbTpUaeyvJimkSHy7v1q2qYsJzKMXv3s0ajz0eJwLVBOjMA fE0C/2n1y1Bizu1Zjv54xA86iDkrMvJ4I35h1kbgqEmJ6Czdns2ZjYCMbntYPuHuHbRl 5PcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738010480; x=1738615280; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AxvqxfVcGAzfclrQ7rLzfLjNZvKcu8VUCAHIn4zMv0I=; b=kCJEe6x3WaU4Y9cAcs5AOprd2XiSBKB0Oa4on1R90JSueDOd7rBgQ824kEhe5UWfHl JR/1xOxE1PqFPjSXMsRS41fRTRI1YoYjYdlL+rMP8AFTO7Nj46n5qAYTJTVQByFmAB0j NcUmodwPlztg1Azvp8O125wvTkz/0bZOCohdpelU90535p5MEZwBdaXQI6RnrgjQwhso B6UCZg955n4nPMmK8tz1U0d8e9rlZ7RujRlOw3B7vvah/ZJPSHTwCc7XTNFWKNOtxiXu NurBdV6grEFrW17IovL2MQt64SDuH7gyfaPSTCyoxbkY460qfnATXazlSYCzeLYUp3SG +DVw== X-Gm-Message-State: AOJu0Yy4v3LtEMatgIn/aVkQG994raLhxoTOxQfKBknKEM2HrYnX5QzZ 3dw25wmnJzSEnwSesFIGQif0ftkCgsDXJPX4z1458p4qhz4y8SxWUr5zRxUwV6eykICtDtBoD8e zLDZw+v7gcbOpli9puy8JFtrptfMwchGygI4= X-Gm-Gg: ASbGnctya1CGryB4GyvvYRUSPBhWWvEw5fElBUm8kBiw6iyD/Qx8qcVbFusJefoxS3/ 1cMXfey/SSJQlhJd7e8pNuO3xEn2Lz+2Wrtk/0W+OoAIoTT6GQai3CDnnxn8D5w== X-Google-Smtp-Source: AGHT+IEjFyZwmsfYAZeSbP5dFRh5hT6U62Qfl7acuh51w23xggq4UY1aoZJpb/SaVyS1x5GOfaALPE0STjtFa47/CRI= X-Received: by 2002:a05:6000:1863:b0:385:df4e:366f with SMTP id ffacd0b85a97d-38bf57a97c7mr51328052f8f.38.1738010479908; Mon, 27 Jan 2025 12:41:19 -0800 (PST) MIME-Version: 1.0 From: Shaheed Haque Date: Mon, 27 Jan 2025 20:41:08 +0000 X-Gm-Features: AWEUYZlqVkaC-UkZ8WFUy2tGN9fic3dkqHSo3EMwcE9EQn4mIMMthwUIJtsvzLc Message-ID: Subject: Content of pg_publication using a local connection versus network connection? To: pgsql-general list Content-Type: multipart/alternative; boundary="00000000000045611c062cb6193f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000045611c062cb6193f Content-Type: text/plain; charset="UTF-8" Hi, I'm a novice-ish when it comes to Postgres, but I've studied the docs and not been able to understand why I can see the rows in pg_publication via a local psql session, but not when I am connected via the network. Since the network login is (a) successful and (b) can read the content of other non-system tables, I guessed that my problem is row-level security (RLS)....except that from the docs, I was unable to see how the login type could affect RLS. What am I missing? Here is some context...please do ask if something else needs to be clarified! - System Postgres 16, AWS RDS version. - The pg_publication tabe looks like this: foo=> \dpS pg_publication Access privileges Schema | Name | Type | Access privileges | Column privileges | Policies ------------+----------------+-------+---------------------------+-------------------+---------- pg_catalog | pg_publication | table | rdsadmin=arwdDxt/rdsadmin+| | | | | =r/rdsadmin | | - When I am logged in as this user via psql, I can see: foo=> select * from pg_publication; oid | pubname | pubowner | puballtables | pubinsert | pubupdate | pubdelete | pubtruncate | pubviaroot -------+-------------------+----------+--------------+-----------+-----------+-----------+-------------+------------ 98923 | vm_db_publication | 16478 | t | t | t | t | t | f - When I connect via psycog, I can read other tables, but pg_publication aways seems to return no rows. Any assistance would be appreciated. Thanks, Shaheed --00000000000045611c062cb6193f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm a novice-ish when it co= mes to Postgres, but I've studied the docs and not been able to underst= and why I can see the rows in pg_publication via a local psql session, but = not when I am connected via the network.

Since the= network login is (a) successful and (b) can read the content of other non-= system tables, I guessed that my problem is row-level security (RLS)....exc= ept that from the docs, I was unable to see how the login type could affect= RLS. What am I missing?

Here is some context...please do= ask if something else needs to be clarified!

= - System Postgres 16, AWS RDS version.
- The pg_publication tabe = looks like this:

=
foo=3D> =C2=A0\dpS pg_publicati= on
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0Access privileges
=C2=A0=C2=A0Schema =C2=A0=C2=A0| =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Name = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| Type =C2=A0| =C2=A0=C2=A0=C2=A0=C2=A0Access= privileges =C2=A0=C2=A0=C2=A0=C2=A0| Column privileges | Policies =C2=A0------------+----------------+-------+---------------------------+-------= ------------+----------
pg_catalog | pg_publication | table | rdsadmin=3DarwdDxt/rdsadmin+| = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| =C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0| =3Dr/rdsadmin =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| =C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0|


- When I am logged in as this user via psql, I=C2= =A0 can see:

foo=3D&= gt; select * from pg_publication;
=C2=A0oid =C2=A0| =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0pubname =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0| pubowner | puballtables | pubinsert | pubupdate |= pubdelete | pubtruncate | pubviaroot =C2=A0
-------+-------------------= +----------+--------------+-----------+-----------+-----------+------------= -+------------
98923 | vm_db_publication | =C2=A0=C2=A0=C2=A016478 | t =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| t =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| t =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0| t =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| t =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0| f


- When I connect via psycog, I can read other tab= les, but pg_publication aways seems to return no rows.

An= y assistance would be appreciated.

Thanks, Shaheed=



--00000000000045611c062cb6193f--