In ST#80821 is a discussion of custom modifications to the default ptrace setup to allow non-root users to debug (GDB) non-child processes (which is a consequence of the system architecture of PostGres)
Information in this area is meant for use by CSCF staff and is not official documentation, but anybody who is interested is welcome to use it if they find it useful.