# postgres **Repository Path**: ggkm/postgres ## Basic Information - **Project Name**: postgres - **Description**: postgres数据库C动态库UDF插件 - **Primary Language**: C - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-07 - **Last Updated**: 2022-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # postgres #### 介绍 postgres数据库C动态库实现UDF插件 #### 使用说明 1. cc -fPIC -c my_concat.c cc -shared -o libmy_concat.so my_concat.o 2. 将 libmy_concat.so 放导postgres所在机器的文件夹,比如/opt/myso 3. 使用DBA用户,在数据库执行 CREATE FUNCTION my_concat(text, text) RETURNS text AS '/opt/myso', 'libmy_concat.so' LANGUAGE C STRICT;