Psql Command to Attach Gdb to Backend 以后想debug的话,又多了一种选择。 http://akorotkov.github.io/blog/2015/08/26/psql-gdb-attach/