On Tue, Apr 06, 2021 at 01:16:16PM -0700, Dan Lynch wrote: > Final question: do you think using procedures vs writing inline queries for > RLS quals/checks has a big difference in performance (assuming functions > are sql)?
If the function meets the criteria for inlining (see inline_function()), there's negligible performance difference. Otherwise, the performance difference may be large.