Glad to hear it's here just in time. I am using 9.4, though, so I wish I could figure out why it's returning NULL when I use it. And the error message string doesn't contain any column name to parse in my output.
As far as I recall, COLUMN_NAME is new in 9.4. If you're trying with an earlier version, you can't get that info other than by parsing the error message string. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services