Chirkin Dmitry <dmitry(dot)chirkin(at)gmail(dot)com> writes:
> Oh, I’m just a nodejs developer, is there any instructions which I can follow to achieve this?
There's some info on our wiki:
https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
regards, tom lane