> On Mar 19, 2022, at 05:10, Paolo De Stefani <paolo@paolodestefani.it> wrote:
> Switching to psycopg 3 i have to consider many more differences than i expected
There have been some changes in the way psycopg2 does parameter substitution, although that one is an interesting case!
You might consider using IS DISTINCT FROM as Daniele suggested, or just =, depending on how you want nulls handled.