Handle SQL-accepting functions with --sql-accepting
mainSome PostgreSQL functions take a string argument and execute it as SQL. By default, pgspot might not see the SQL inside these strings. You can use the --sql-accepting flag to tell pgspot that a specific function (e.g., execute_sql) accepts SQL. pgspot will then attempt to unpack and evaluate the arguments passed to that function as SQL code to ensure they are scanned.
# If 'execute_sql' is a function that runs SQL strings:
pgspot --sql-accepting=execute_sql your_script.sql