PostgreSQL 安裝斷點調試模組 pldebugger

來源:互聯網
上載者:User

以前寫過一篇PostgreSQL 函數調試環境搭建的文章《PostgreSQL 9.1.3 plpgsql debugger module》源碼來源比較老, 很多PG的代碼都搬到github上面了, 其中也包含了pldebugger, 這篇BLOG還是講函數調試環境的搭建, 只是從GITHUB上弄pldebugger的源碼.1. 首先要安裝git用戶端,git的安裝參考《git install》 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
4. 調試plpgsql函數略, 參見

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.