On Tue, Apr 05, 2022 at 01:30:14PM +0530, Nikhil Ingale wrote: > Hi All, > > I've a case statement where I'm calling the user defined postgres function > and failed to execute the same. Because it's assuming the variable passed > inside the function as a column for the table. > > ERROR: column "attributes" does not exist > LINE 1: ... WHEN status_code = 0 THEN CASE WHEN bmask(attributes... > > Need help to resolve this problem. Well, we need to see the function. Otherwise all *I* can tell is: well, you have to find source of the problem, and fix it. Best regards, depesz