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 1uVAoD-00EkcB-Kl for pgsql-general@arkaria.postgresql.org; Fri, 27 Jun 2025 15:16:09 +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 1uVAoB-002jJO-N8 for pgsql-general@arkaria.postgresql.org; Fri, 27 Jun 2025 15:16:08 +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 1uVAoB-002jJG-CX for pgsql-general@lists.postgresql.org; Fri, 27 Jun 2025 15:16:08 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uVAo7-004I9B-0V for pgsql-general@lists.postgresql.org; Fri, 27 Jun 2025 15:16:07 +0000 Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-3ddb4a7ac19so8768705ab.3 for ; Fri, 27 Jun 2025 08:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1751037362; x=1751642162; 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=7rcLSPXPZj+mDXhv9t22Qg7jGL6BND8tppb3NSjlC5U=; b=RbDgJ613mWNWbxowR7r7Pdm75JANsVIN8zOC9Iz44N0qz6uuFrPJQuPR/VPHP94gxQ hah+hCGLCB2cDMD45S5N/Fdu4MCLHKQ9K+DQzb+Uk2TKMG9zSNWj1uEH6hvbW9gAVSTV 9Rob18TaBYIGjc5Cwe7xpbfrF9hrOO1DyONaQaOteDbg0NgxXG+1Qr/Qqi8C5g4mwozi U14TJMpdbT2ZuQ3W48Z5st6wr2xqOMmPMBetTy3oPHLgvJ68Tcd8TW3efmgNQFOC9Lhx hHO4lYk8+7v1VPazavUd+WvvorGVQW7I8vqDfi57WDBxypJlmXvF3XL2j8WcMBpqjgXJ Shkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751037362; x=1751642162; 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=7rcLSPXPZj+mDXhv9t22Qg7jGL6BND8tppb3NSjlC5U=; b=LqREhSUv8LD3lOKcBh4QOmdsKENzAMr2sCJFLZbDTO4wV9SuAKCPU6hR37Mhd767oj YjiV1wpwLABptHzLbFEo6XMFrqyId0IWflZmkYnntXl2Z/h0B0/Qpy7xzpybPYRBjMzW QHJz78upMozbyht32KqSjsoKd62PfLSncCSvTtsOE3uaKOa/oXhZcb4NCqWUcQcKWa6U zx4fd6WD0h0OmRHFgl9i0t3e0xkDkaAe8FR9SdmDoYVsuTQQkj8cD9BAp+Xk0ZTZ31h2 CeVA73r3QozPxj2f3Ol/XfngeIxDXNbn4tiXg0oErhM8my+32Ftshyp972zA4O4Z/v87 ufjg== X-Forwarded-Encrypted: i=1; AJvYcCUbjBBO1M1kGDWUqkfLlSo1JqaJ0ZoZnUwYoOSWoIih02Qfs64FvZAIe+jPuzLDccat4H6Lxk10zdq2awKz@lists.postgresql.org X-Gm-Message-State: AOJu0YwCqG+XwYDcnaDoHgKRH7k3v5jSpsiDw/fp5HC/up1da3RxrLWq O8B13o2asRh7LP8ybMVx78NLS10iTRt0J9PFy/n8Qa4cQcZkNeQ25jkiPnZ6bbuYz4qZhDx7xCs UjFngX/FQCC4pwhfETgqIPxm8uXF3i8k= X-Gm-Gg: ASbGnctX4+59jC1EjSVGJUc7DI268ydK8zGcwhnub7mSQqsfAcue5LPfIYLLniIXN/C x1fpn8DZGvNY05Jj2Rd1Bl4r2JtZwbnEJML7RWAp6H2Mf3GjK1CScC9hpH2Jj7yqAkj02c6JXlx h1irrzDftlowc5Talb/nRrjI/uBlEV05Y5oVUKMGYez9V9kezvmf4Hywwsz9u7ibpvnHeRCdjq0 OFBwA== X-Google-Smtp-Source: AGHT+IGczjh94LJ+Jt0hUGaB8mSZUaTx4353TWH7Nkbie9C3u4pFoJN8EkN23C1/bFfNQI2LXC+o727GvbFRWxtFS2E= X-Received: by 2002:a05:6e02:32c9:b0:3df:410b:635b with SMTP id e9e14a558f8ab-3df4accdd5cmr50494705ab.19.1751037362278; Fri, 27 Jun 2025 08:16:02 -0700 (PDT) MIME-Version: 1.0 References: <4915B05B-90B6-4CC2-86E7-EF7C1E2E38C9@icloud.com> In-Reply-To: From: Greg Sabino Mullane Date: Fri, 27 Jun 2025 11:15:26 -0400 X-Gm-Features: Ac12FXwE21H43Pg4YLoBWPMmm4RagqAJvt0RY_DNZ5JnWQoihED1zALxTaDI5jA Message-ID: Subject: Re: Figure out nullability of query parameters To: "David G. Johnston" Cc: Giacomo Cavalieri , "pgsql-general@lists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000f797a406388f270c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f797a406388f270c Content-Type: text/plain; charset="UTF-8" > > It would be really handy to know that `$1` is being used as a non nullable > value To push back in a different way, how exactly would this be useful? The system catalogs are the best place to get all the various information about a relation, including any and all constraints. Data type info via protocol, yes, but constraints seems a whole other level of bother. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --000000000000f797a406388f270c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
It would be really handy to know t= hat `$1` is being used as a non nullable value

<= /div>
To push back in a different=C2=A0way, how exactly would this be u= seful?

The system catalogs=C2=A0are the best place= to get all the various information about a relation, including any and all= constraints. Data type info via protocol, yes, but constraints seems a who= le other level of bother.

Cheers,
Greg

--
Enterprise Po= stgres Software Products & Tech Support

--000000000000f797a406388f270c--