Is where anyway to set the sqlstate to a custom value when inside a plpgsql function? I am still working on converting from Sybase ASA to Postgres and some of the triggers and stored procedures in Sybase are setting the variable to specific custom values.