public inbox for [email protected]  
help / color / mirror / Atom feed
From: David G. Johnston <[email protected]>
To: Giacomo Cavalieri <[email protected]>
Cc: [email protected] <[email protected]>
Subject: Re: Figure out nullability of query parameters
Date: Fri, 27 Jun 2025 07:52:56 -0700
Message-ID: <CAKFQuwaBXfo1LaUWYkPtZaTOaeua6b2SDmX=PtB0r9cvcNYd+w@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

On Friday, June 27, 2025, Giacomo Cavalieri <[email protected]>
wrote:

>
> It would be really handy to know that `$1` is being used as a non nullable
> value, while `$2` could actually be null. Can this already be achieve
> today, or would there be a way to surface this kind of information for
> query parameters in the extended protocol?
>

There is no attempt in the system to try and pass constraint information
through the query planner and expose it to the client.  It doesn’t seem
like there is sufficient utility to try and do so.  The fact that it pretty
much only works in the exact query form you’ve shown here is part of that.
Not sure we’d turn it down but someone will need to step up and scratch
their own itch in all likelihood (the request for similar functionality in
the result comes up too).

David J.


view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Figure out nullability of query parameters
  In-Reply-To: <CAKFQuwaBXfo1LaUWYkPtZaTOaeua6b2SDmX=PtB0r9cvcNYd+w@mail.gmail.com>

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

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