SQL Firewall Extension for PostgreSQL

sql_firewall is a PostgreSQL extension which is intended to protect
database from SQL injections or unexpected queries.

sql_firewall module learns queries which can be executed, and
prevents/warns on executing queries which are not found in the learned
firewall rule.

How it works
————

sql_firewall can take one of four modes specified in
sql_firewall.firewall parameter: “learning”, “enforcing”,
“permissive” and “disabled”.