plutolove’s diary

I love three things in this world, the sun, the moon and you. The sun for the day, the moon for the night, and you forever。

PostgreSQL

PostgreSQL添加用户自定义function

首先配置好本地源码编译环境,详情可参考http://plutolove.hatenablog.com/entry/2017/08/10/190138。添加用户自定义函数以strcon为例,其功能是连接两个字符串。

配置PostgreSQL调试环境

首先下载PostgreSQL源码,我用的是PostgreSQL9.4.2。 在/home/username/新建pg文件夹,然后在.bashrc文件内添加 #每次更改.bashrc之后,执行 source ~/.bashrc export PG=/home/username/pg 在源代码文件夹下执行 ./configure --prefix=$PG --enable-depend …