turgs / sql_firewall

SQL Firewall Extension for PostgreSQL
http://pgsnaga.blogspot.jp/2015/08/postgresql-sql-firewall.html
Other
4 stars 3 forks source link

After enabling enforcing mode, SQL statement with SQL function is prohibited #2

Open JTAsg opened 3 years ago

JTAsg commented 3 years ago

After running learning mode, a SQL statement which include SQL function was captured in sql_firewall_statements. When enforcing mode is turned on for the postgresql server, running the same statement encounter Prohibited SQL statement error "CONTEXT: SQL function xxx during startup" .

The SQL function is something like this "select description from pg_catalog.pg_description where objoid = $1 and classoid = 'pg_catalog.pgclass'::pg_catalog.regclass and objsubid = $2"