Kareem Sedki escribió: > Thank you Merlin and Tom. I appreciate your answers. > > I have tried to follow that approach before I go this way. So, I checked > the appendix of the documentation for error conditions. Searching for > cast-related conditions, I found INVALID_CHARACTER_VALUE_FOR_CAST. Would > that be the exception to catch? It doesn't sound right. TIAS -- http://www.fetter.org/tias.html -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general