Skip to content

Commit bbd98a5

Browse files
authored
Update documentation for Citus 13 (#1132)
1 parent 39469e2 commit bbd98a5

10 files changed

+43
-42
lines changed

admin_guide/upgrading_citus.rst

+16-16
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ Upgrading the Citus version requires first obtaining the new Citus extension and
1313
Patch Version Upgrade
1414
---------------------
1515

16-
To upgrade a Citus version to its latest patch, issue a standard upgrade command for your package manager. Assuming version 12.1 is currently installed on Postgres 16:
16+
To upgrade a Citus version to its latest patch, issue a standard upgrade command for your package manager. Assuming version 13.0 is currently installed on Postgres 16:
1717

1818
**Ubuntu or Debian**
1919

2020
.. code-block:: bash
2121
2222
sudo apt-get update
23-
sudo apt-get install --only-upgrade postgresql-16-citus-12.1
23+
sudo apt-get install --only-upgrade postgresql-16-citus-13.0
2424
sudo service postgresql restart
2525
26-
**Fedora, CentOS, or Red Hat**
26+
**Red Hat**
2727

2828
.. code-block:: bash
2929
30-
sudo yum update citus121_16
30+
sudo yum update citus130_16
3131
sudo service postgresql-16 restart
3232
3333
.. _major_minor_upgrade:
@@ -46,23 +46,23 @@ Each major and minor version of Citus is published as a package with a separate
4646
Step 1. Update Citus Package
4747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848

49-
If upgrading both Citus and Postgres, always be sure to upgrade the Citus extension first, and the PostgreSQL version second (see :ref:`upgrading_postgres`). Here is how to do a Citus upgrade from 11.3 to 12.1 on Postgres 15:
49+
If upgrading both Citus and Postgres, always be sure to upgrade the Citus extension first, and the PostgreSQL version second (see :ref:`upgrading_postgres`). Here is how to do a Citus upgrade from 12.1 to 13.0 on Postgres 16:
5050

5151
**Ubuntu or Debian**
5252

5353
.. code-block:: bash
5454
5555
sudo apt-get update
56-
sudo apt-get install postgresql-15-citus-12.1
56+
sudo apt-get install postgresql-16-citus-13.0
5757
sudo service postgresql restart
5858
59-
**Fedora, CentOS, or Red Hat**
59+
**Red Hat**
6060

6161
.. code-block:: bash
6262
6363
# Fedora, CentOS, or Red Hat
64-
sudo yum swap citus113_15 citus121_15
65-
sudo service postgresql-15 restart
64+
sudo yum swap citus121_16 citus130_16
65+
sudo service postgresql-16 restart
6666
6767
Step 2. Apply Update in DB
6868
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -102,7 +102,7 @@ After installing the new package and restarting the database, run the extension
102102

103103
.. _upgrading_postgres:
104104

105-
Upgrading PostgreSQL version from 15 to 16
105+
Upgrading PostgreSQL version from 16 to 17
106106
##########################################
107107

108108
.. note::
@@ -114,17 +114,17 @@ Upgrading PostgreSQL version from 15 to 16
114114

115115
Record the following paths before you start (your actual paths may be different than those below):
116116

117-
Existing data directory (e.g. /opt/pgsql/15/data)
118-
:code:`export OLD_PG_DATA=/opt/pgsql/15/data`
117+
Existing data directory (e.g. /opt/pgsql/16/data)
118+
:code:`export OLD_PG_DATA=/opt/pgsql/16/data`
119119

120-
Existing PostgreSQL installation path (e.g. /usr/pgsql-15)
121-
:code:`export OLD_PG_PATH=/usr/pgsql-15`
120+
Existing PostgreSQL installation path (e.g. /usr/pgsql-16)
121+
:code:`export OLD_PG_PATH=/usr/pgsql-16`
122122

123123
New data directory after upgrade
124-
:code:`export NEW_PG_DATA=/opt/pgsql/16/data`
124+
:code:`export NEW_PG_DATA=/opt/pgsql/17/data`
125125

126126
New PostgreSQL installation path
127-
:code:`export NEW_PG_PATH=/usr/pgsql-16`
127+
:code:`export NEW_PG_PATH=/usr/pgsql-17`
128128

129129
For Every Node
130130
--------------

conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@
5858
# built documents.
5959
#
6060
# The short X.Y version.
61-
version = '12.1'
61+
version = '13.0'
6262
# The full version, including alpha/beta/rc tags.
63-
release = '12.1'
63+
release = '13.0.1'
6464

6565
# The language for content autogenerated by Sphinx. Refer to documentation
6666
# for a list of supported languages.

develop/api_guc.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ The ``citus.node_conninfo`` GUC sets non-sensitive `libpq connection parameters
116116
117117
Citus honors only a specific subset of the allowed options, namely:
118118

119-
* application_name
120119
* connect_timeout
121120
* gsslib†
122121
* host
@@ -128,6 +127,7 @@ Citus honors only a specific subset of the allowed options, namely:
128127
* sslcompression
129128
* sslcrl
130129
* sslmode (defaults to "require" as of Citus 8.1)
130+
* sslnegotiation
131131
* sslrootcert
132132
* tcp_user_timeout
133133

index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Citus Documentation
22
===================
33

4-
Welcome to the documentation for Citus 12.1! Citus is an open source extension
4+
Welcome to the documentation for Citus 13.0! Citus is an open source extension
55
to PostgreSQL that transforms Postgres into a distributed database. To scale
66
out Postgres horizontally, Citus employs distributed tables, reference tables,
77
and a distributed SQL query engine. The query engine parallelizes SQL queries

installation/citus_cloud.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ the cloud on Azure. The Citus managed service is available as
99
<https://learn.microsoft.com/azure/cosmos-db/postgresql/introduction/>`_, formerly known as Hyperscale (Citus) in Azure Database for PostgreSQL.
1010

1111
To get started with Citus on Azure, you can take advantage of our `quickstart for Azure Cosmos DB for PostgreSQL
12-
<https://learn.microsoft.com/azure/cosmos-db/postgresql/quickstart-create-portal>`_ in the Azure docs,
13-
or go straight to the `free trial <https://cosmos.azure.com/try/>`_ on Azure.)
12+
<https://learn.microsoft.com/azure/cosmos-db/postgresql/quickstart-create-portal>`_ in the Azure docs.
1413

14+
Citus is also now in preview on Flexible server. Learn more on `Postgres horizontal scaling with elastic clusters on Azure Database for PostgreSQL Flexible server
15+
<https://techcommunity.microsoft.com/blog/adforpostgresql/postgres-horizontal-scaling-with-elastic-clusters-on-azure-database-for-postgres/4303508>`_

installation/multi_node_debian.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ Steps to be executed on all nodes
2626
::
2727

2828
# install the server and initialize db
29-
sudo apt-get -y install postgresql-16-citus-12.1
29+
sudo apt-get -y install postgresql-17-citus-13.0
3030

3131
# preload citus extension
32-
sudo pg_conftool 16 main set shared_preload_libraries citus
32+
sudo pg_conftool 17 main set shared_preload_libraries citus
3333

34-
This installs centralized configuration in `/etc/postgresql/16/main`, and creates a database in `/var/lib/postgresql/16/main`.
34+
This installs centralized configuration in `/etc/postgresql/17/main`, and creates a database in `/var/lib/postgresql/17/main`.
3535

3636
.. _post_enterprise_deb:
3737

@@ -41,11 +41,11 @@ Before starting the database let's change its access permissions. By default the
4141

4242
::
4343

44-
sudo pg_conftool 16 main set listen_addresses '*'
44+
sudo pg_conftool 17 main set listen_addresses '*'
4545

4646
::
4747

48-
sudo vi /etc/postgresql/16/main/pg_hba.conf
48+
sudo vi /etc/postgresql/17/main/pg_hba.conf
4949

5050
::
5151

installation/multi_node_rhel.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Steps to be executed on all nodes
2626
::
2727

2828
# install PostgreSQL with Citus extension
29-
sudo yum install -y citus121_16
29+
sudo yum install -y citus130_17
3030
# initialize system database
31-
sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
31+
sudo /usr/pgsql-17/bin/postgresql-17-setup initdb
3232
# preload citus extension
33-
echo "shared_preload_libraries = 'citus'" | sudo tee -a /var/lib/pgsql/16/data/postgresql.conf
33+
echo "shared_preload_libraries = 'citus'" | sudo tee -a /var/lib/pgsql/17/data/postgresql.conf
3434

35-
PostgreSQL adds version-specific binaries in `/usr/pgsql-16/bin`, but you'll usually just need psql, whose latest version is added to your path, and managing the server itself can be done with the *service* command.
35+
PostgreSQL adds version-specific binaries in `/usr/pgsql-17/bin`, but you'll usually just need psql, whose latest version is added to your path, and managing the server itself can be done with the *service* command.
3636

3737
.. _post_enterprise_rhel:
3838

@@ -42,7 +42,7 @@ Before starting the database let's change its access permissions. By default the
4242

4343
::
4444

45-
sudo vi /var/lib/pgsql/16/data/postgresql.conf
45+
sudo vi /var/lib/pgsql/17/data/postgresql.conf
4646

4747
::
4848

@@ -51,7 +51,7 @@ Before starting the database let's change its access permissions. By default the
5151

5252
::
5353

54-
sudo vi /var/lib/pgsql/16/data/pg_hba.conf
54+
sudo vi /var/lib/pgsql/17/data/pg_hba.conf
5555

5656
::
5757

@@ -71,9 +71,9 @@ Before starting the database let's change its access permissions. By default the
7171
::
7272

7373
# start the db server
74-
sudo service postgresql-16 restart
74+
sudo service postgresql-17 restart
7575
# and make it start automatically when computer does
76-
sudo chkconfig postgresql-16 on
76+
sudo chkconfig postgresql-17 on
7777

7878
You must add the Citus extension to **every database** you would like to use in a cluster. The following example adds the extension to the default database which is named `postgres`.
7979

installation/single_node_debian.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Ubuntu or Debian
77

88
This section describes the steps needed to set up a single-node Citus cluster on your own Linux machine from deb packages.
99

10-
**1. Install PostgreSQL 16 and the Citus extension**
10+
**1. Install PostgreSQL 17 and the Citus extension**
1111

1212
.. code-block:: sh
1313
1414
# Add Citus repository for package manager
1515
curl https://install.citusdata.com/community/deb.sh | sudo bash
1616
1717
# install the server and initialize db
18-
sudo apt-get -y install postgresql-16-citus-12.1
18+
sudo apt-get -y install postgresql-17-citus-13.0
1919
2020
2121
.. _post_install:
@@ -30,7 +30,7 @@ Let's create a new database on disk. For convenience in using PostgreSQL Unix do
3030
sudo su - postgres
3131
3232
# include path to postgres binaries
33-
export PATH=$PATH:/usr/lib/postgresql/16/bin
33+
export PATH=$PATH:/usr/lib/postgresql/17/bin
3434
3535
cd ~
3636
mkdir citus

installation/single_node_docker.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ You can start Citus in Docker with one command:
1414
1515
# start the image
1616
docker run -d --name citus -p 5432:5432 -e POSTGRES_PASSWORD=mypass \
17-
citusdata/citus:12.1
17+
citusdata/citus:13.0
1818
1919
# verify it's running, and that Citus is installed:
2020
psql -U postgres -h localhost -d postgres -c "SELECT * FROM citus_version();"

installation/single_node_rhel.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Fedora, CentOS, or Red Hat
77

88
This section describes the steps needed to set up a single-node Citus cluster on your own Linux machine from RPM packages.
99

10-
**1. Install PostgreSQL 16 and the Citus extension**
10+
**1. Install PostgreSQL 17 and the Citus extension**
1111

1212
.. code-block:: sh
1313
1414
# Add Citus repository for package manager
1515
curl https://install.citusdata.com/community/rpm.sh | sudo bash
1616
1717
# install Citus extension
18-
sudo yum install -y citus121_16
18+
sudo yum install -y citus130_17
1919
2020
.. _post_install:
2121

@@ -29,7 +29,7 @@ Let's create a new database on disk. For convenience in using PostgreSQL Unix do
2929
sudo su - postgres
3030
3131
# include path to postgres binaries
32-
export PATH=$PATH:/usr/pgsql-16/bin
32+
export PATH=$PATH:/usr/pgsql-17/bin
3333
3434
cd ~
3535
mkdir citus

0 commit comments

Comments
 (0)