Re: Inserts restricted to a trigger - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Inserts restricted to a trigger
Date
Msg-id 48ddb8b0-2628-9b9e-84c4-955f5c15ddd1@aklaver.com
Whole thread Raw
In response to Re: Inserts restricted to a trigger  (Miles Elam <miles.elam@productops.com>)
Responses Re: Inserts restricted to a trigger
List pgsql-general
On 6/19/19 3:07 PM, Miles Elam wrote:
> Hi Adrian, thanks for responding.
> 
> How would I restrict access to the SECURITY DEFINER function? If it can 
> be called by the trigger, it can be called by the user as well I would 
> think. Same issue as access to the table itself only now with a 
> superuser intermediary, right?
> 

Should have also mentioned, if you are not adverse to a third party 
solution there is PGAudit:

https://www.pgaudit.org/


-- 
Adrian Klaver
adrian.klaver@aklaver.com



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and Having Problems
Next
From: Shay Rojansky
Date:
Subject: Re: Row data is reflected in DETAIL message when constraints fail on insert/update