then make and make install.
IF you want to RESTART PGDetected if there is an instance of Postgre server. If there is, kill it. use
ps -e | grep postgre
to detect the pocess of postgresql and kill it.
gdb postgresqlHomeDIR/bin/postgres -quiet
here DATADIR and postgresqlDIR are your own directory.
IF you don't want to RESTART PG
// find postgres pid
to test. Here test is your database name.
IF you want to debug contrib
make && make install in contrib/yourdir
then go to gdb to file your shard lib to load symbol. Here XXX.so is your contrib share lib.
(gdb) file XXX.so
if not, when you use break somefunction, it will report:
No symbol table is loaded. Use the “file” command.
Make breakpoint pending on future shared library load? (y or [n])