I'm using a PHP function pg_insert() to insert data to PostgreSQL. When the function return false, I can not get error message by pg_last_error().(It works for pg_query).
pg_insert()
pg_last_error()
pg_query
Is there a way that I can get an error message from pg_insert()?