Seaquel
PostgreSQL error code

PostgreSQL error P0000

P0000 is the SQLSTATE PostgreSQL reports for plpgsql error, in class P0, PL/pgSQL Error.

SQLSTATEP0000
Condition nameplpgsql_error
ClassP0 — PL/pgSQL Error

Source: PostgreSQL documentation, Appendix A