tail -f /var/log/postgresql/postgresql-<version>-main.log
<version>
with your PostgreSQL server version.SELECT proname FROM pg_proc WHERE proname = 'your_function_name';
your_function_name
with the name of the function involved in the error.DO $$
BEGIN
RAISE EXCEPTION USING SQLSTATE = 'XXXXX';
EXCEPTION WHEN OTHERS THEN
RAISE NOTICE 'Invalid SQLSTATE detected';
END
$$;
XXXXX
with the SQLSTATE being used.Let Dr. Droid create custom investigation plans for your infrastructure.
Start Free POC (15-min setup) →