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 1sokZi-00DY2d-1l for pgsql-general@arkaria.postgresql.org; Thu, 12 Sep 2024 14:13:35 +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 1sokZg-009Kqc-LZ for pgsql-general@arkaria.postgresql.org; Thu, 12 Sep 2024 14:13:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sokXP-009GW5-H3 for pgsql-general@lists.postgresql.org; Thu, 12 Sep 2024 14:11:11 +0000 Received: from mail-oo1-xc29.google.com ([2607:f8b0:4864:20::c29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sokXL-000pUa-Um for pgsql-general@lists.postgresql.org; Thu, 12 Sep 2024 14:11:10 +0000 Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-5d5c7f24372so558424eaf.0 for ; Thu, 12 Sep 2024 07:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726150267; x=1726755067; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=F6cXPQREtNlGvI/JhoBcNSkCusIhUFg/Ng8a4/wT6HQ=; b=WwFV1TsBwjhOa87eUs6sA2JFrleK5fj834s4ca+L3GQo/s5IMWVBLUhS7nxxwYf25Q 2kqsGuKXVRaCUoaz8PLRSeIYaUB/Y6UZZVBRiqBdqFjJ+UmAQ8r/AiDkMziMDQU4BO4m czr2BUk8x3kWiVsdCfrUv3Z0naQeMQxH9ODydVKxnKYg0EFYNBvIVhYU2WsP08SD0WBW bj/jNTZ+saLLnHY9FdHnFWTE50S9H0aKWdvEX1sYpIS0GtShZvnXhWkew7eQcJVP2ijF iunzAFiT8ntUis3MzP2MGIMDzGKdcuMMKUNQLhjiY4fA+/N4SzjVJrMxZcEJBvvS/Djj 530g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726150267; x=1726755067; h=content-transfer-encoding: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=F6cXPQREtNlGvI/JhoBcNSkCusIhUFg/Ng8a4/wT6HQ=; b=CqJZoNHVhLI37aF6f895lwt7rN8U8dXRMuhSk5HInGIROSO7uJuaDF4H1ir7bVALxw xJPGVMzs13Hw/ewrHRdkdEBTypYPHOx2lmqqNT+nS0cRP56408QstMR5dTrETqoEDUPW FyoNwJIknjol3CZfa2AdzRSaFXVKXJsS31iDbnVoRDvWykIa8rdHDdbmiwVf2kQ63bU9 BgUpXCgelAVrjEM3rKvd1SYpeyEXhUoJxJdhpej+FY9kEbiJMA5jlEhoHsY1CKvvyTvx ZEvmqnneqO6nHK+NUcfvGSWf9qD/3nMuiarJAWQL/yp9T7F1HqmdbaeZmWkPQLsQoiUq j52Q== X-Forwarded-Encrypted: i=1; AJvYcCXf8I++CkPnlx28zKpo4aqfakMborIHBO2hIF2zM31oBccRBmETKDHLTVYSG/Gk5+X9nkpC6YsdnKXd4d5r@lists.postgresql.org X-Gm-Message-State: AOJu0YwUmuSL1HSE6AzKeuoVaG+nYCV2umdyfrJYAvw1a7aq+MtkOBZR Aj0yPIMwUJSUwiUrbdgq25EyTxi/4El89JM54Mkq3u82464dBbuoqJ6FU9qZLCJdu3GYSrifAcz jXfTIPJ++fF7vniv4h5RHDs0PnSc= X-Google-Smtp-Source: AGHT+IFn7R7cC0azgRa465QcRtoVwBryXYUVTnbulSA++hJI/2PAyHLwjCiyddXgwU1m+OwEWQUAp1atVWE9AZQojXU= X-Received: by 2002:a05:6820:2283:b0:5dc:95e1:b264 with SMTP id 006d021491bc7-5e2014201c5mr1538697eaf.3.1726150267559; Thu, 12 Sep 2024 07:11:07 -0700 (PDT) MIME-Version: 1.0 References: <3952715.1726115805@sss.pgh.pa.us> In-Reply-To: From: Dominique Devienne Date: Thu, 12 Sep 2024 16:10:56 +0200 Message-ID: Subject: Re: Effects of REVOKE SELECT ON ALL TABLES IN SCHEMA pg_catalog FROM PUBLIC To: Greg Sabino Mullane Cc: Andreas Joseph Krogh , Tom Lane , pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Sep 12, 2024 at 3:53=E2=80=AFPM Greg Sabino Mullane wrote: > On Thu, Sep 12, 2024 at 9:12=E2=80=AFAM Dominique Devienne wrote: >> On Thu, Sep 12, 2024 at 3:06=E2=80=AFPM Greg Sabino Mullane wrote: >> > (Also note that determining if a database or user exists does not even= require a successful login to the cluster.) >> >> Hi. How so? I was not aware of such possibilities. >> Can you please give pointers (docs, examples) of this? > > psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: = FATAL: role "eve" does not exist > psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: = FATAL: database "theater" does not exist > psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: = FATAL: password authentication failed for user "alice" Ah silly me, I was thinking of something else. Sure, "probing" for DB or USER names by attempting connecting is of course an option. Thanks, --DD