<?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 Documentation</title>
    <link>/docs/dbaas/reference/products/postgresql/</link>
    <description>Recent content in PostgreSQL on Documentation</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/docs/dbaas/reference/products/postgresql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Backup</title>
      <link>/docs/dbaas/reference/products/postgresql/backup/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/backup/</guid>
      <description>&lt;p&gt;Pg_basebackup is used to create backup.&#xA;Also see the section &amp;lsquo;Schedule&amp;rsquo;.&lt;/p&gt;&#xA;&lt;p&gt;CCX backups the Secondary server.&lt;/p&gt;&#xA;&lt;p&gt;Backups are streamed directly to S3 staroge.&lt;/p&gt;&#xA;&lt;h2 id=&#34;schedule&#34;&gt;Schedule&lt;/h2&gt;&#xA;&lt;p&gt;The backup schedule can be tuned and backups can be paused&lt;/p&gt;</description>
    </item>
    <item>
      <title>Configuration</title>
      <link>/docs/dbaas/reference/products/postgresql/configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/configuration/</guid>
      <description>&lt;p&gt;These settings cannot be changed as it affects system stability&lt;/p&gt;&#xA;&lt;h2 id=&#34;important-default-values&#34;&gt;Important default values&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Parameter&lt;/th&gt;&#xA;          &lt;th&gt;Default value&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;wal_keep_size&lt;/td&gt;&#xA;          &lt;td&gt;1024 (v.1.50+) / 512&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;max_wal_senders&lt;/td&gt;&#xA;          &lt;td&gt;min 16, max 4 x Db Node count&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;wal_level&lt;/td&gt;&#xA;          &lt;td&gt;replica&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;hot_standby&lt;/td&gt;&#xA;          &lt;td&gt;ON&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;max_connections&lt;/td&gt;&#xA;          &lt;td&gt;see below&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;shared_buffers&lt;/td&gt;&#xA;          &lt;td&gt;instance_memory x 0.25&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;effective_cache_size&lt;/td&gt;&#xA;          &lt;td&gt;instance_memory x 0.75&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;work_mem&lt;/td&gt;&#xA;          &lt;td&gt;instance_memory / max_connections&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;maintenance_work_mem&lt;/td&gt;&#xA;          &lt;td&gt;instance_memory/16&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h3 id=&#34;max-connections&#34;&gt;Max connections&lt;/h3&gt;&#xA;&lt;p&gt;The maximum number of connections depends on the instance size.&#xA;The number of connections can be scaled by adding a new database secondary allowing of a larger instance size. The new replica can then be promoted to the new primary. See &lt;a href=&#34;/docs/dbaas/guides/promote-a-replica/&#34;&gt;Promoting a replica&lt;/a&gt; for more information.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Extensions</title>
      <link>/docs/dbaas/reference/products/postgresql/extensions/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/extensions/</guid>
      <description>&lt;h2 id=&#34;supported-extentions&#34;&gt;Supported extentions&lt;/h2&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Extension&lt;/th&gt;&#xA;          &lt;th&gt;Postgres version&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;vector (pgvector)&lt;/td&gt;&#xA;          &lt;td&gt;15 and later&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;postgis&lt;/td&gt;&#xA;          &lt;td&gt;15 and later&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;h2 id=&#34;creating-an-extension&#34;&gt;Creating an extension&lt;/h2&gt;&#xA;&lt;p&gt;Connect to PostgreSQL using an admin account (e.g ccxadmin).&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sql&#34; data-lang=&#34;sql&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;EXTENSION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;vector&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&lt;/span&gt;&lt;span class=&#34;k&#34;&gt;CREATE&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;n&#34;&gt;EXTENSION&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;See Postgres documentation for more information.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Importing Data</title>
      <link>/docs/dbaas/reference/products/postgresql/importing-data/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/importing-data/</guid>
      <description>&lt;p&gt;This procedure describes how to import data to a PostgreSQL datastore located in CCX.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The PostgreSQL Datastore on CCX is denoted as the &amp;lsquo;replica&amp;rsquo;&lt;/li&gt;&#xA;&lt;li&gt;The source of the data is denoted as the &amp;lsquo;source&amp;rsquo;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;create-a-database-dump-file&#34;&gt;Create a database dump file&lt;/h3&gt;&#xA;&lt;p&gt;Dump the database schema from the &lt;code&gt;&amp;lt;DATABASE&amp;gt;&lt;/code&gt; you wish to replicate:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pg_dump --no-owner -d&amp;lt;DATABASE&amp;gt; &amp;gt; /tmp/DATABASE.sql&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&#34;apply-the-dumpfile-on-the-replica&#34;&gt;Apply the dumpfile on the replica&lt;/h3&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;postgres=# CREATE DATABASE &amp;lt;DATABASE&amp;gt;;&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Copy the DSN from Nodes, Connection Information in the CCX UI.&#xA;Change &amp;lsquo;ccxdb&amp;rsquo; to &lt;code&gt;&amp;lt;DATABASE&amp;gt;&lt;/code&gt;:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Limitations</title>
      <link>/docs/dbaas/reference/products/postgresql/limitations/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/limitations/</guid>
      <description>&lt;p&gt;Every product has limitations. Here is a list PostgreSQL limitations:&lt;/p&gt;&#xA;&lt;h2 id=&#34;permissions&#34;&gt;Permissions&lt;/h2&gt;&#xA;&lt;p&gt;PostgreSQL users are created with the following permissions:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;NOSUPERUSER, CREATEROLE, LOGIN, CREATEDB&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>Restore</title>
      <link>/docs/dbaas/reference/products/postgresql/restore/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/docs/dbaas/reference/products/postgresql/restore/</guid>
      <description>&lt;p&gt;Postgres configures &lt;code&gt;archive_command&lt;/code&gt; and &lt;code&gt;archive_mode=always&lt;/code&gt;.&#xA;Morever, during the restore the &lt;code&gt;restore_command&lt;/code&gt; is set.&lt;/p&gt;&#xA;&lt;p&gt;There are two options to restore a backup:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Restore a backup on the existing datastore&lt;/li&gt;&#xA;&lt;li&gt;Restore a backup on a new datastore&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Please note that restoring a backup may be a long running process.&lt;/p&gt;&#xA;&lt;p&gt;This option allows to restore a backup with point in time recovery.&#xA;The WAL logs are replayed until the desired PITR.&#xA;Warning! Running several restores may change the timelines.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
