Search Postgresql Archives

[PL/PgSQL] error checks vs error trapping

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all.
It's not clear to me whether it's faster to check error conditions
before actually executing some
statements or to add error trapping code to "react" to errors.

The documentation states that the former should be faster than the
latter. Which is more or less
the same as I can experience in C++ with try/catch constructs.
But from time to time I read something on this very mailing list that
makes me think the reality is
different.

Is there any authoritative, and possibly proven, answer to this topic?

-- 
Vincenzo Romano at NotOrAnd Information Technologies
Software Hardware Networking Training Support Security
--
NON QVIETIS MARIBVS NAVTA PERITVS

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux