<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; PostgreSQL</title>
	<atom:link href="http://www.osyunwei.com/archives/category/config/database/postgresql/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Sun, 10 May 2026 14:53:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>BCLinux For Euler 21.10安装3节点PanWeiDB数据库集群</title>
		<link>https://www.osyunwei.com/archives/16768.html</link>
		<comments>https://www.osyunwei.com/archives/16768.html#comments</comments>
		<pubDate>Mon, 24 Nov 2025 03:13:02 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[openGauss]]></category>
		<category><![CDATA[PanWeiDB]]></category>
		<category><![CDATA[pgsql]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16768</guid>
		<description><![CDATA[操作系统：BCLinux For Euler 21.10 BCLinux For Euler 21.10安装配置图解教程 https://www.osyunwei.com/archives/13044.html 磐维数据库安装包：PanWeiDB_1.0.0_BCLinuxForEuler21.10_x86.tar.gz ptk安装工具包下载地址： https://docs.mogdb.io/zh/ptk/v1.1/install https://cdn-mogdb.enmotech.com/ptk/latest/ptk_linux_x86_64.tar.gz 主节点ip：10.189.189.184 主机名：panweidb-node01 从节点ip：10.189.189.185 主机名：panweidb-node02 从节点ip：10.189.189.186 主机名：panweidb-node03 准备篇（在3台服务器上都进行操作） 1、关闭selinux sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config setenforce 0 2、关闭firewall防火墙 vi /etc/yum/pluginconf.d/license-manager.conf enabled=0 #把1修改为0，禁用yum源认证 :wq! #保存退出 systemctl stop firewalld.service systemctl disable firewalld.service systemctl mask firewalld systemctl stop firewalld yum remove firewalld -y #卸载 3、关闭swap交换分区（如果没有swap分区就不需要操作） #执行以下命令 swapoff -a [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16768.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16768.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rocky Linux 10.0安装部署PostgreSQL 18数据库</title>
		<link>https://www.osyunwei.com/archives/16310.html</link>
		<comments>https://www.osyunwei.com/archives/16310.html#comments</comments>
		<pubDate>Wed, 02 Jul 2025 07:40:02 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[pgsql]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=16310</guid>
		<description><![CDATA[简单介绍： PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库，PostgreSQL被业界誉为“最先进的开源数据库”，主要面向企业复杂查询SQL的OLTP业务场景， 支持NoSQL数据类型（hstore/JSON/XML） 操作系统：Rocky Linux 10.0 PostgreSQL下载地址： https://www.postgresql.org/ftp/source/v18beta1/ https://ftp.postgresql.org/pub/source/v18beta1/postgresql-18beta1.tar.gz 上传安装包到/data/soft目录 操作系统安装： Rocky Linux 10.x系统安装配置图解教程 https://www.osyunwei.com/archives/15874.html 准备篇 1、关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 2、开启防火墙5432端口 系统默认使用的是firewall作为防火墙，这里改为nftables防火墙。 2.1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2.2、安装nftables防火墙 yum install nftables #安装 [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/16310.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/16310.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>欧拉操作系统openEuler安装部署PostgreSQL数据库</title>
		<link>https://www.osyunwei.com/archives/15674.html</link>
		<comments>https://www.osyunwei.com/archives/15674.html#comments</comments>
		<pubDate>Fri, 23 May 2025 07:05:17 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=15674</guid>
		<description><![CDATA[PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库，PostgreSQL被业界誉为“最先进的开源数据库”，主要面向企业复杂查询SQL的OLTP业务场景， 支持NoSQL数据类型（hstore/JSON/XML） 操作系统：openEuler 24.03-LTS-SP1 PostgreSQL下载地址： https://www.postgresql.org/ftp/source/v17.5/ https://ftp.postgresql.org/pub/source/v17.5/postgresql-17.5.tar.gz 上传安装包到/data/soft目录 操作系统安装： 欧拉操作系统openEuler 24.03-LTS-SP1安装配置图解教程 https://www.osyunwei.com/archives/14957.html 准备篇 1、关闭SELINUX vi /etc/selinux/config #SELINUX=enforcing #注释掉 #SELINUXTYPE=targeted #注释掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 2、开启防火墙5432端口 系统默认使用的是firewall作为防火墙，这里改为iptables防火墙。 2.1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2.2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件，PostgreSQL默认使用tcp [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/15674.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/15674.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PostgreSQL使用pg_dump+pg_restore多线程导出导入数据</title>
		<link>https://www.osyunwei.com/archives/14077.html</link>
		<comments>https://www.osyunwei.com/archives/14077.html#comments</comments>
		<pubDate>Wed, 06 Dec 2023 10:17:47 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14077</guid>
		<description><![CDATA[1、在数据量小（1-2GB大小）的情况下可以直接使用pg_dump导出数据，psql导入数据，如下： #导出数据 nohup /data/server/pgsql/bin/pg_dump -h 127.0.0.1 -U dbuser -p 5432 database --column-inserts &#124; gzip &#62; /tmp/database_back.sql.gz &#38; #导入数据 nohup gunzip -c /tmp/database_back.sql.gz &#124; psql -h 127.0.0.1 -U dbuser -d database &#38; 如果数据量比较大（10GB以上），导出数据至少需要2个小时以上，导入数据需要15个小时以上。 2、使用多线程并行导出导入数据 #多线程导出数据 -j 16 16可以等于cpu核数，只有在使用目录格式 (directory format) 进行备份时才支持并行备份 nohup /data/server/pgsql/bin/pg_dump -h 127.0.0.1 -U dbuser -p 5432 database --column-inserts -F d -j 16 -f /tmp/database_back [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14077.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14077.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下PostgreSQL数据库基本操作</title>
		<link>https://www.osyunwei.com/archives/12657.html</link>
		<comments>https://www.osyunwei.com/archives/12657.html#comments</comments>
		<pubDate>Tue, 28 Jun 2022 06:12:13 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12657</guid>
		<description><![CDATA[说明： 1、PostgreSQL 使用 pg_dump 和 pg_dumpall 进行数据库的逻辑备份，使用 psql 和 pg_restore 导入数据； 2、pg_dump 可以选择一个数据库或者部分表进行备份，pg_dumpall是对整个数据库集群进行备份； 3、psql恢复SQL文本格式的数据备份，pg_restore恢复自定义格式的数据备份。 数据库用户：dbuser 数据库：testdb 数据表：new_test，tb_test，testdb 数据库安装路径：/usr/local/pgsql/bin/ mkdir -p /data/backup #创建备份文件存放目录 chown postgres.postgres -R /data/backup su - postgres 一、PostgreSQL数据库导出 #pg_dump命令 1、导出数据库中的单个表数据 #导出数据库testdb中的new_test表 pg_dump -h 127.0.0.1 -U dbuser -p 5432 -W testdb -t new_test --column-inserts -f /data/backup/new_test.sql #导出后压缩为.gz格式 pg_dump -h 127.0.0.1 -U dbuser -p 5432 -W testdb -t new_test [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12657.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12657.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下PostgreSQL数据库主从同步配置</title>
		<link>https://www.osyunwei.com/archives/12603.html</link>
		<comments>https://www.osyunwei.com/archives/12603.html#comments</comments>
		<pubDate>Sun, 26 Jun 2022 13:40:35 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[主从同步]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12603</guid>
		<description><![CDATA[操作系统：CentOS-7.6 主节点：192.168.21.100 从节点：192.168.21.101 PostgreSQL版本：postgresql-11.13.tar.gz 下载地址：https://ftp.postgresql.org/pub/source/v11.13/postgresql-11.13.tar.gz PostgreSQL数据库的主从同步是一种高可用解决方案，可以实现读写分离。 一、基础配置 在主从服务器上都进行操作 1、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1.1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 1.2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12603.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12603.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下源码编译安装PostgreSQL数据库</title>
		<link>https://www.osyunwei.com/archives/12468.html</link>
		<comments>https://www.osyunwei.com/archives/12468.html#comments</comments>
		<pubDate>Sat, 04 Jun 2022 13:07:43 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[数据库]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=12468</guid>
		<description><![CDATA[PostgreSQL是一个功能非常强大的、源代码开放的关系型数据库，PostgreSQL被业界誉为“最先进的开源数据库”，主要面向企业复杂查询SQL的OLTP业务场景， 支持NoSQL数据类型（hstore/JSON/XML） 一、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙，这里改为iptables防火墙。 1、关闭firewall： systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-config-firewall # please do not ask us to [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/12468.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/12468.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
