Vick Khera <vivek@xxxxxxxxx> writes: > I've created a database which my vendor (Supabase) cannot > dump/restore/upgrade. Ultimately, it comes down to this trigger statement, > and the fact that the underlying operations needed to perform the `IS > DISTINCT FROM` comparison in the WHEN clause need to be found in the > `public` schema. During the restore, the search path is empty, so it fails. Yeah. We've had some discussions about inventing a version of IS DISTINCT FROM (and some other SQL-spec syntaxes with the same problem) that supports schema-qualification of the underlying operator. But it hasn't gotten further than preliminary discussion. For the moment, I think the only feasible solution is for your trigger function to set the search path it needs by adding a "SET search_path = whatever" clause to the function's CREATE command. regards, tom lane