3 ms·
It's not an uncommon pattern: https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt https://github.com/postgres/postgres/blob/master/s
by sa46 5y ago
It's not an uncommon pattern: https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt https://github.com/postgres/postgres/blob/master/src/backend...
- agent327 5y agoI wasn't making any statement about how common it was, only about how impractical it was. And soon enough you'll find that it is just more convenient to reuse a few error codes here and there, and soon enough applications just report "error -1: resource failure" or "internal failure" or some other meaningless thing. Far better to just return a string.
- jareklupinski 5y ago> Section: Class 57 - Operator Intervention > # (class borrowed from DB2) > Section: Class 72 - Snapshot Failure > # (class borrowed from Oracle) Nothing from SAP / ABAP ? :^)