Welcome 微信登录

首页 / 数据库 / MySQL / PostgreSQL 安装断点调试模块 pldebugger

以前写过一篇PostgreSQL 函数调试环境搭建的文章《PostgreSQL 9.1.3 plpgsql debugger module》http://www.linuxidc.com/Linux/2012-07/66930.htm源码来源比较老, 很多PG的代码都搬到github上面了, 其中也包含了pldebugger, 这篇BLOG还是讲函数调试环境的搭建, 只是从GITHUB上弄pldebugger的源码.1. 首先要安装git客户端,git的安装参考《git install》 http://www.linuxidc.com/Linux/2012-07/66931.htm2. 获取源码[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 install3. 加载模块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 EXTENSION4. 调试plpgsql函数略, 参见http://www.linuxidc.com/Linux/2012-07/66930.htmPostgreSQL 9.1.3 plpgsql debugger module探索Oracle之RMAN_07非一致性恢复(集合)相关资讯      PostgreSQL安装 
  • Linux CentOS 7 安装PostgreSQL 9.  (今 08:48)
  • Ubuntu 14.04安装PostgreSQL 9.2  (09/16/2015 08:49:17)
  • Linux安装PostgreSQL 9.4  (05/19/2015 08:54:24)
  • 在CentOS 6.5上编译安装PostgreSQL  (06月13日)
  • CentOS 6.5下PostgreSQL 9.4.3安装  (07/25/2015 09:27:10)
  • Mac OSX下编译安装PostgreSQL  (12/26/2014 19:27:33)
本文评论 查看全部评论 (0)
表情: 姓名: 字数