On Tue, Dec 12, 2017 at 1:50 PM, Andres Freund <and...@anarazel.de> wrote: > I do wonder if the right thing here wouldn't be to put the result into a > dsm segment, and then return that to the UDF on the requesting > side. Logging to the server log and then have the requestor dig that out > doesn't seem particularly user friendly.
I think that dumping it to the server log will be fine for most people, and it's *significantly* safer. Creating a DSM segment could fail, and the last thing we want is for interrogating a long-running backend to make it crap out. +1 for this whole concept, just BTW. As I've said before, I grow weary of asking customers to run gdb. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company