1. 首先要安装git客户端,
git的安装参考
2. 获取源码
[root@db-172-16-3-33 soft_bak]# git clone git://git.postgresql.org/git/pldebugger.gitCloning into 'pldebugger'...remote: Counting objects: 366,done.remote: Compressing objects: 100% (262/262),done.remote: Total 366 (delta 233),reused 171 (delta 104)Receiving objects: 100% (366/366),158.87 KiB | 3 KiB/s,done.Resolving deltas: 100% (233/233),done.
2. 安装(测试时使用的是Postgresql 9.2 beta2源码)
mv pldebugger $PG_SRC/contrib/cd $PG_SRC/contrib/pldebuggerexport PGHOME=/opt/pgsqlexport PATH=$PGHOME/bin:$PATHmakesudo make install
3. 加载模块
digoal@localhost-> psqlpsql (9.2beta2)Type "help" for help.digoal=> \c digoal postgresYou are now connected to database "digoal" as user "postgres".digoal=# create extension pldbgapi;CREATE EXTENSION
略,
参见