Re: policies with security definer option for allowing inline optimization

From: Noah Misch <noah(at)leadboat(dot)com>
To: Dan Lynch <pyramation(at)gmail(dot)com>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Isaac Morland <isaac(dot)morland(at)gmail(dot)com>, PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: policies with security definer option for allowing inline optimization
Date: 2021-04-07 02:23:04
Message-ID: 20210407022304.GA847424@rfd.leadboat.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2021-04-07 02:49:02 Re: Support ALTER SUBSCRIPTION ... ADD/DROP PUBLICATION ... syntax
Previous Message Amit Langote 2021-04-07 01:49:35 Re: Allow batched insert during cross-partition updates