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.96) (envelope-from ) id 1wPb49-000sVU-1F for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2026 07:10:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wPb46-006XC6-33 for pgsql-hackers@arkaria.postgresql.org; Wed, 20 May 2026 07:10:03 +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.96) (envelope-from ) id 1wPb46-006XBy-27 for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2026 07:10:03 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wPb45-00000000S0W-0BOn for pgsql-hackers@lists.postgresql.org; Wed, 20 May 2026 07:10:02 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-3922b35e69cso41331801fa.0 for ; Wed, 20 May 2026 00:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779260999; cv=none; d=google.com; s=arc-20240605; b=aZqoQNUVLgwU8EoBTbw+NyiCYgSQOhEcbohUzv4h89vKvY8pNlBRT9eEv+kHFuyVny KqDZXvKy67z3rlgVEgt4Jl+o21nNX7VSPAKriWj+0eCShdOUAbh8gnUEX8ClB8KK/Y/O J9aFudD1sN8LDZ2Wn/NXYS/uiXx2xl8gV90cHHhPNyMiC7UjpKOGguz+gw85xc86q1em XN5b3kEdI4XhIizwthaZaESTc4gT65i5S9/2Y6ZR/kujZCUA/7jtfWTt35lRILx6eNwe cCGkhzb6rRHVCdjnuPVs7wKluSsDK74Fn+EjZr9/sZvoKaVOzG28l1rXei07VVhtYJxj xXbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DYcPtyjf7BOEFglOmL560Yd+9UJSjeIrqcDGUDPVyHA=; fh=6ISsW3tcxMxrof9egEFkab8UY6D+ibxfUAcRU3lJdzU=; b=JQyW0oogTduWjOgfUaHlTGaCGDuwbMa9H3to6aWbZAKvfzmT9K9GEfsnmh5vhKIRG5 oyZj5hElzYgYUL6qfJB2GsRPBqNs5928TwkEU82D7wQuI3DtPGa1y/KFCuzCoUMXvvC+ UPkjewpkycVLg9A8w+b6UbVvddtco7qsHMHDb4Azn5g0oVNXWZlkgXymnEhNFrZq4MSh asAGpfMm4ylm9ztia8ZOu5niW2rahBPdNq3QaIPPW4Ka9kRdm/VIZi8lfTRg0ZHCURy/ oaoEcW1A1zbu8U3d1ZdbqLbxslKSo1f1XY6FqRpyDBiI78jVIYggTTIj9UsoP3SQVbek +fFw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779260999; x=1779865799; 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=DYcPtyjf7BOEFglOmL560Yd+9UJSjeIrqcDGUDPVyHA=; b=mpdnv8BB35tP+9RWT4Ac1kBp8roExWbQoGnZl1X+q8f+1VaOZ5pagjxPgGkHKMGJQM EiZEcTOPc8MT8c0obTynJ2IwKyq3ckPfLpFELoyIW+qBzhtOpQ6Qf9dk0KeIIIBmm4OG XueXtrBQtaRazE4ogQx4acVwNkmJIsX/eusxHUusbaAgCe5idEvixj1Lp3BLKPMz4maB W00TUtO0cXlqf11dEIRktwz39Qdmsl1D8/VvAWt0NghnbvLbAxWKc0yFoj/GeABTjXyF KOqwt/Qxz0qUsC5kNffc/wY60uH+arQOJJhyw/8NK//WcaxV0pLBU6o1RETgFAuXst7U ym+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779260999; x=1779865799; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DYcPtyjf7BOEFglOmL560Yd+9UJSjeIrqcDGUDPVyHA=; b=PHZUblfH3iBEuYg7OdOioqgCv9HzxTCcGUPPRLqrEbVuxTJwFG/eujyvx2oO3mMWMQ blIyVD8fRD/mgiN2U8yn1LbJya9xSweqaQnPtLkZDyrpt+5Yy01p0jS2/zL18Yf/pVMI 4OUWEGRdwr/1eWEgugfY/rNOXQ+P5rcH2B66Bc/u+cPWP6hGI6Z9d+ur8YEYbxM4Hg7O Pu/KzCTFpAVkG+Ns5pwcNfI48PdGz+fghoOSGrBusTJ7fOYKzVLnOo/2C9WKBYfEBh3t 6g+WPGKr/0MqVaVSIwF/ha6dOTqvOVwSIehoj6paVvpcvnve7GQ5UnDjv1YroIDkej9B nt3Q== X-Forwarded-Encrypted: i=1; AFNElJ/62d9Nx92htTwYoux8t8ni9uKV5S07uISs0fgQWUjy6Q2yrdx8GNlLrt+okvUDWNlOhrN6OGqka1wwTSor@lists.postgresql.org X-Gm-Message-State: AOJu0YwIqcqvzC6zMwrePPcfnos2s07W3ZE8PalVi0sGneVjlyivtSHP wLq3Xcaw9HPjz0KCPX28OPLFPikSisO9VTzK6yxTkfy3T8pUVQYuMLbC9Pad5MEktzRvg3JQYWk KT9/oo30SrArsJgH3TXScnp0FHxZYh0N0Bno= X-Gm-Gg: Acq92OFWsvF5uxnbzH/fwZcMn3BZwtJtlPkeKweycgTFnzoRvmABUE8EWq371Qnh6V8 Vb4zlFbCOcTb0xyzZXYr6JH4Dh2mCjIvrUib5YArHCM+smhAHWepv2TYGLulA6c/KUVlSlWCFOt 7M79jryq1kOXROAGIZSbIvhMhmlP/W09iETtKmXX+AXvD04yVvFG2WqqSGcAriVFsbdmjfkwrKR ntrOAX11yOD8OSioiTLSMCzmRmGqNKmendLPSIZcEtqhlinZTwHf3qLqzzJrisoRYbSmIaBp9zz YNl+DP0eped16SQgHt7h9hW44QuUBVHnXeW3lKw3cYwJDPfEgbLaDEUIYRe0 X-Received: by 2002:a2e:9882:0:b0:38a:2776:1484 with SMTP id 38308e7fff4ca-39561f1f8c8mr52620121fa.28.1779260998785; Wed, 20 May 2026 00:09:58 -0700 (PDT) MIME-Version: 1.0 References: <5420ddcb-7b55-4a73-b8c5-3602abfac78b@uni-muenster.de> <1b1c88ce-2c61-4faf-b647-496525fc177f@uni-muenster.de> In-Reply-To: From: Nisha Moond Date: Wed, 20 May 2026 12:39:46 +0530 X-Gm-Features: AVHnY4Lo8AxiAB5EIgemakm914V_-wIfeCxS4Fz0Dcqzt7txmi0gHmBPFpk7F1c Message-ID: Subject: Re: PSQL - prevent describe listing tables that are already in listed schemas To: Peter Smith Cc: Jim Jones , PostgreSQL Hackers 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 Wed, May 20, 2026 at 5:30=E2=80=AFAM Peter Smith = wrote: > > I agree we should address that \d+ quirk at the same time. > > Thanks for finding/fixing it in v3-0002. > > Your 0002 patch works for me, although I'm thinking those SQL fixes > ought to be made more similar: > 1. Both use "n.oid NOT IN (SELECT pn.pnnspid ..." > 2. Or both use "AND NOT EXISTS (SELECT 1 FROM ... WHERE ...)" > > ~ > > PSA v4, where I have combined the patches, and chosen your SQL style > for my previous \dRp+ fix. > +1 for the idea. For the describePublications (\dRp+) case, should we add an (sversion >=3D 150000) guard around the new change, since it accesses pg_publication_namespace, which is only available in PG15 and above? Thoughts? -- Thanks, Nisha