Search Postgresql Archives

Re: Figure out nullability of query parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, June 27, 2025, Giacomo Cavalieri <giacomo.cavalieri@xxxxxxxxxx> 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.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux