<?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/tag/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>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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_wal目录文件损坏修复</title>
		<link>https://www.osyunwei.com/archives/14084.html</link>
		<comments>https://www.osyunwei.com/archives/14084.html#comments</comments>
		<pubDate>Thu, 07 Dec 2023 09:46:21 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">https://www.osyunwei.com/?p=14084</guid>
		<description><![CDATA[pgsql安装目录：/data/server/pgsql pgsql数据库存放目录：/data/server/pgsql/data 故障现象：因为磁盘爆满导致数据库目录下pg_wal里的文件丢失或损坏，数据库无法启动，报错。 报错信息： 2023-11-13 17:29:07.005 CST [152671] FATAL: the database system is starting up 2023-11-13 17:29:07.019 CST [152668] LOG: invalid primary checkpoint record 2023-11-13 17:29:07.019 CST [152668] PANIC: could not locate a valid checkpoint record 2023-11-13 17:29:07.070 CST [152667] LOG: startup process (PID 152668) was terminated by signal 6: Aborted 2023-11-13 17:29:07.070 CST [152667] [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/14084.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/14084.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>
