mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
doc/nixos/postgress: Mention extensions in upgrading
analyze_new_cluster script is not available in PostgreSQL 14+:
8f113698b6
This commit is contained in:
parent
e598636243
commit
04e85da1c0
@ -131,12 +131,25 @@ Type "help" for help.
|
|||||||
</listitem>
|
</listitem>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
After the upgrade it's advisable to analyze the new cluster (as <literal>su -l postgres</literal> in the
|
After the upgrade it's advisable to analyze the new cluster.
|
||||||
<xref linkend="opt-services.postgresql.dataDir" />, in this example <filename>/var/lib/postgresql/13</filename>):
|
</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
For PostgreSQL ≥ 14, use the <literal>vacuumdb</literal> command printed by the upgrades script.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
For PostgreSQL < 14, run (as <literal>su -l postgres</literal> in the <xref linkend="opt-services.postgresql.dataDir" />, in this example <filename>/var/lib/postgresql/13</filename>):
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<prompt>$ </prompt>./analyze_new_cluster.sh
|
<prompt>$ </prompt>./analyze_new_cluster.sh
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<warning><para>The next step removes the old state-directory!</para></warning>
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
<para>
|
||||||
|
<warning><para>The next step removes the old state-directory!</para></warning>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<prompt>$ </prompt>./delete_old_cluster.sh
|
<prompt>$ </prompt>./delete_old_cluster.sh
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
Reference in New Issue
Block a user