<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PostgreSQL on WwIT</title>
    <link>https://ww-it.github.io/tags/postgresql/</link>
    <description>Recent content in PostgreSQL on WwIT</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 22 Dec 2022 10:35:39 +0800</lastBuildDate><atom:link href="https://ww-it.github.io/tags/postgresql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>EcoX 安装配置</title>
      <link>https://ww-it.github.io/post/setup-ecox/</link>
      <pubDate>Thu, 22 Dec 2022 10:35:39 +0800</pubDate>
      
      <guid>https://ww-it.github.io/post/setup-ecox/</guid>
      <description>本文介绍如何在 CentOS 平台上使用 EcoX 搭建 PostgreSQL 高可用集群。这里我们需要使用到 3 个组件：PostgreSQL、ZooKeeper 和 EcoX。
基本环境 下表给出了本次实验的基本环境，包含 3 个 ZooKeeper 仲裁集群节点和 3 个数据库集群节点。
   IP 地址 主机名 用途     10.9.10.207 zookeeper01 zookeeper 节点   10.9.10.189 zookeeper02 zookeeper 节点   10.9.10.222 zookeeper03 zookeeper 节点   10.9.10.125 ecox01 数据库节点   10.9.10.202 ecox02 数据库节点   10.9.10.232 ecox03 数据库节点    ZooKeeper 搭建 首先，我们需要搭建 ZooKeeper 集群。ZooKeeper 依赖于 Java，因此，我们需要先安装 Java。</description>
    </item>
    
    <item>
      <title>FreeBSD 平台编译 PostgreSQL 数据库</title>
      <link>https://ww-it.github.io/post/how-to-compile-postgres-on-freebsd/</link>
      <pubDate>Wed, 14 Dec 2022 11:04:48 +0800</pubDate>
      
      <guid>https://ww-it.github.io/post/how-to-compile-postgres-on-freebsd/</guid>
      <description>本文简要介绍如何在 FreeBSD 上搭建 PostgreSQL 开发环境，以及如何编译 PostgreSQL 数据库。
安装依赖 首先安装依赖，使用下面的命令我们可以安装本次实验所需的依赖，如果您需要添加额外的编译选项，您可能还需要安装其他依赖。
# pkg install -y gcc11-11.3.0_7 # pkg install -y gmake-4.3_2 # pkg install -y flex-2.6.4_2 # pkg install -y bison-3.8.2,1 # pkg install -y pkgconf # pkg install -y gettext-tools-0.21.1 # pkg install -y icu-72.1,1 # --with-icu # pkg install -y libxml2-2.10.3_1 # --with-libxml # pkg install -y libxslt # --with-libxslt # pkg install -y openldap26-client # --with-ldap # pkg install -y openssl-devel-3.</description>
    </item>
    
    <item>
      <title>SmartOS 平台编译 PostgreSQL 数据库</title>
      <link>https://ww-it.github.io/post/how-to-compile-postgres-on-smartos/</link>
      <pubDate>Fri, 25 Nov 2022 11:09:20 +0800</pubDate>
      
      <guid>https://ww-it.github.io/post/how-to-compile-postgres-on-smartos/</guid>
      <description>本文简要介绍如何在 SmartOS 上搭建 PostgreSQL 开发环境，以及如何编译 PostgreSQL 数据库。
准备工作 这里我们通过 git 来拉取代码，因此首先安装 git 程序。
# pkgin in git 接着，创建一个普通用户来编译测试 PostgreSQL 数据库。
# useradd -m -d /home/hunghu -s /bin/bash hunghu # passwd hunghu 安装依赖 通过源码编译安装，我们需要安装一些基本的工具，如 gcc, make 等，我们使用下面的命令进行安装。
# pkgin -y in gcc10 # pkgin -y in gmake # pkgin -y in flex bison # pkgin -y in pkgconf # pkgin -y in icu # --with-icu # pkgin -y in libuuid # --with-uuid=e2fs # pkgin -y in libxml2 # --with-libxml # pkgin -y in libxslt # --with-libxslt # pkgin -y in llvm clang # --with-llvm # pkgin -y in openssl # --with-openssl # pkgin -y in pam-krb5 # --with-gssapi # pkgin -y in readline # --with-readline 编译完成之后，我们需要跑 TAP 测试，因此需要安装 TAP 测试套件。</description>
    </item>
    
    <item>
      <title>CentOS 平台编译 PostgreSQL 数据库</title>
      <link>https://ww-it.github.io/post/how-to-compile-postgres-on-centos/</link>
      <pubDate>Fri, 29 Apr 2022 11:23:20 +0800</pubDate>
      
      <guid>https://ww-it.github.io/post/how-to-compile-postgres-on-centos/</guid>
      <description>本文简要介绍如何在 CentOS 上搭建 PostgreSQL 开发环境，以及如何编译 PostgreSQL 数据库。
安装依赖 由于可能使用不同的 GCC 进行编译，因此我们需要管理 GCC 的版本，好在 CentOS 提供了这样的工具，我们可以使用下面的命令来安装不同的 GCC。
$ sudo yum install -y centos-release-scl $ sudo yum install -y devtoolset-10 安装完成之后，查看 GCC 版本，如下所示：
$ gcc --version gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44) Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</description>
    </item>
    
  </channel>
</rss>
