Forum OpenACS Q&A: Response to What does it take to get Postgresql database error detail in tracebacks?

Re: acs-pg in SourceForge.  I checked out driver-2.3 and compared the two.  There are other changes besides in DbFail() which look useful.  Unfortunately, the DbFail() function is defined in both dbtcl.c (in aolserver/nsd) and in postgres.c.  The nsd calls to DbFail() are linked to their own, and the postgres.c uses its own.  So, that version will only give more useful reports in those cases where DbFail() is called from postgres.c, and those situations are certainly not rare.  It seems that both sets of changes are needed.