代码拉取完成,页面将自动刷新
由中启乘数科技 编译发行的版本。
项目名称 | 说明 |
---|---|
CPU平台 | x86_64 |
操作系统 | CentOS7 |
内核版本 | 3.10.0-957.el7.x86_64 |
适用系统 | CentOS7 |
项目名称 | 说明 |
---|---|
CPU平台 | x86_64 |
操作系统 | CentOS8 |
内核版本 | 4.18.0-372.9.1.el8.x86_64 |
适用系统 | CentOS8、Rocky8 |
由于PostgreSQL11及以上版本使用了LLVM,机器中需要安装依赖项
yum install -y llvm.x86_64 llvm-libs.x86_64 libicu
移步到此处下载 csupg 发行版 - Gitee.com
执行命令,自动解压
bash csupg-x.bin
# csupg-x会被解压到/usr下面
将其下载到/usr下解压即可,当然也可以是其他的目录下,这只是一个习惯。
序号 | 版本号 | 备注 |
---|---|---|
1 | 10.23 | |
2 | 11.21 | |
3 | 12.16 | |
4 | 13.12 | |
5 | 14.9 |
序号 | 插件名称 | 备注 |
---|---|---|
1 | plproxy | 水平分库工具 |
2 | pg_cron | PG的定时任务 |
3 | pg_show_plans | 查看SQL执行计划 |
4 | pg_store_plans | 执行计划统计 |
5 | pg_hint_plans | 执行计划优化器 |
6 | plpgsql_check | plpgsql语法检查 |
7 | pg_stat_statements | 获取TOPSQL |
使用pg_cron时注意
# 使用前需要先修改数据库的配置文件$PGDATA/postgresql.conf
# shared_preload_libraries中添加pg_cron
shared_preload_libraries = 'pg_stat_statements, pg_store_plans, pg_cron'
# 指定使用pg_cron的数据库
cron.database_name = 'clup'
# 指定主机,可以不填此项
cron.host = '127.0.0.1'
序号 | 插件名称 | PG10 | PG11 | PG12 | PG13 | PG14 |
---|---|---|---|---|---|---|
1 | plproxy | 2.10.0 | 2.10.0 | 2.10.0 | 2.10.0 | 2.10.0 |
2 | pg_cron | 1.2 | 1.2 | 1.3 | 1.3 | 1.3 |
3 | pg_show_plans | 1.0.0 | 1.0.1 | 1.0.1 | 1.0.1 | 1.0.1 |
4 | pg_store_plans | 1.5 | 1.5 | 1.6.1 | 1.6.1 | 1.6.1 |
5 | pg_hint_plans | 1.3.7 | 1.3.8 | 1.3.8 | 1.3.8 | 1.4.1 |
6 | plpgsql_check | 2.3.4 | 2.3.4 | 2.4.0 | 2.4.0 | 2.4.0 |
7 | pg_stat_statements | 1.6 | 1.6 | 1.7 | 1.8 | 1.9 |
PostgreSQL 10.23
./configure --enable-rpath --prefix=/usr/csupg-10.23 --datadir=/usr/csupg-10.23/share --includedir=/usr/csupg-10.23/include --mandir=/usr/csupg-10.23/share/man --libdir=/usr/csupg-10.23/lib --sysconfdir=/etc/sysconfig/csupg --docdir=/usr/csupg-10.23/doc --htmldir=/usr/csupg-10.23/doc/html --with-icu --with-tcl --with-perl --with-python --with-pam --with-openssl --with-libxml --with-libxslt --with-extra-version="\ (CSUDATA.COM CentOS 7)" --enable-nls --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --enable-debug --enable-dtrace --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-system-tzdata=/usr/share/zoneinfo --with-systemd --with-selinux --with-gssapi --with-ldap --with-includes=/usr/include/mit-krb5 --with-libs=/usr/lib/mit-krb5 PYTHON='/usr/bin/python3' --with-libs=/usr/lib/x86_64-linux-gnu/mit-krb5
PostgreSQL 11.21
./configure --enable-rpath --prefix=/usr/csupg-11.21 --datadir=/usr/csupg-11.21/share --includedir=/usr/csupg-11.21/include --mandir=/usr/csupg-11.21/share/man --libdir=/usr/csupg-11.21/lib --sysconfdir=/etc/sysconfig/csupg --docdir=/usr/csupg-11.21/doc --htmldir=/usr/csupg-11.21/doc/html --with-icu --with-tcl --with-perl --with-python --with-pam --with-openssl --with-libxml --with-libxslt --with-extra-version="\ (CSUDATA.COM CentOS 7)" --enable-nls --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --enable-debug --enable-dtrace --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-system-tzdata=/usr/share/zoneinfo --with-llvm --with-systemd --with-selinux --with-gssapi --with-ldap --with-includes=/usr/include/mit-krb5 --with-libs=/usr/lib/mit-krb5 PYTHON='/usr/bin/python3' --with-libs=/usr/lib/x86_64-linux-gnu/mit-krb5
PostgreSQL 12.16
./configure --enable-rpath --prefix=/usr/csupg-12.16 --datadir=/usr/csupg-12.16/share --includedir=/usr/csupg-12.16/include --mandir=/usr/csupg-12.16/share/man --libdir=/usr/csupg-12.16/lib --sysconfdir=/etc/sysconfig/csupg --docdir=/usr/csupg-12.16/doc --htmldir=/usr/csupg-12.16/doc/html --with-icu --with-tcl --with-perl --with-python --with-pam --with-openssl --with-libxml --with-libxslt --with-extra-version="\ (CSUDATA.COM CentOS 7)" --enable-nls --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --enable-debug --enable-dtrace --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-system-tzdata=/usr/share/zoneinfo --with-llvm --with-systemd --with-selinux --with-gssapi --with-ldap --with-includes=/usr/include/mit-krb5 --with-libs=/usr/lib/mit-krb5 PYTHON='/usr/bin/python3' --with-libs=/usr/lib/x86_64-linux-gnu/mit-krb5 AWK='mawk' PROVE='/usr/bin/prove' XSLTPROC='xsltproc --nonet'
PostgreSQL 13.12
./configure --enable-rpath --prefix=/usr/csupg-13.12 --datadir=/usr/csupg-13.12/share --includedir=/usr/csupg-13.12/include --mandir=/usr/csupg-13.12/share/man --libdir=/usr/csupg-13.12/lib --sysconfdir=/etc/sysconfig/csupg --docdir=/usr/csupg-13.12/doc --htmldir=/usr/csupg-13.12/doc/html --with-icu --with-tcl --with-perl --with-python --with-pam --with-openssl --with-libxml --with-libxslt --with-extra-version="\ (CSUDATA.COM CentOS 7)" --enable-nls --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --enable-debug --enable-dtrace --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-system-tzdata=/usr/share/zoneinfo --with-llvm --with-systemd --with-selinux --with-gssapi --with-ldap --with-includes=/usr/include/mit-krb5 --with-libs=/usr/lib/mit-krb5 PYTHON='/usr/bin/python3' --with-libs=/usr/lib/x86_64-linux-gnu/mit-krb5 AWK='mawk' PROVE='/usr/bin/prove' XSLTPROC='xsltproc --nonet'
PostgreSQL 14.9
./configure --enable-rpath --prefix=/usr/csupg-14.9 --datadir=/usr/csupg-14.9/share --includedir=/usr/csupg-14.9/include --mandir=/usr/csupg-14.9/share/man --libdir=/usr/csupg-14.9/lib --sysconfdir=/etc/sysconfig/csupg --docdir=/usr/csupg-14.9/doc --htmldir=/usr/csupg-14.9/doc/html --with-icu --with-tcl --with-lz4 --with-perl --with-python --with-pam --with-openssl --with-libxml --with-libxslt --with-extra-version="\ (CSUDATA.COM CentOS 7)" --enable-nls --enable-integer-datetimes --enable-thread-safety --enable-tap-tests --enable-debug --enable-dtrace --disable-rpath --with-uuid=e2fs --with-gnu-ld --with-system-tzdata=/usr/share/zoneinfo --with-llvm --with-systemd --with-selinux --with-gssapi --with-ldap --with-includes=/usr/include/mit-krb5 --with-libs=/usr/lib/mit-krb5 PYTHON='/usr/bin/python3' --with-libs=/usr/lib/x86_64-linux-gnu/mit-krb5 AWK='mawk' PROVE='/usr/bin/prove' XSLTPROC='xsltproc --nonet'
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型