"Murali M. Krishna" <murali1729(at)yahoo(dot)com> writes:
> I would like to start using gdb.
> ...
> , but this is what I get.
> gdb) attach 1731
> Attaching to program: /usr/local/pgsql/bin/postgres, process 1731
> ptrace: Operation not permitted.
Try running gdb as the postgres user, ie, su to postgres first.
If that doesn't work, see if it works after disabling selinux
(and if so, file a bug, because selinux shouldn't prevent it).
regards, tom lane