doc/nixos/postgress: Mention extensions in upgrading

analyze_new_cluster script is not available in PostgreSQL 14+:

https://github.com/postgres/postgres/commit/8f113698b63b15a4e0a4b15d3ee37238c1d1821d

Changed files
+16 -3
nixos
modules
services
databases
+16 -3
nixos/modules/services/databases/postgresql.xml
···
</listitem>
<listitem>
<para>
-
After the upgrade it's advisable to analyze the new cluster (as <literal>su -l postgres</literal> in the
-
<xref linkend="opt-services.postgresql.dataDir" />, in this example <filename>/var/lib/postgresql/13</filename>):
<programlisting>
<prompt>$ </prompt>./analyze_new_cluster.sh
</programlisting>
-
<warning><para>The next step removes the old state-directory!</para></warning>
<programlisting>
<prompt>$ </prompt>./delete_old_cluster.sh
</programlisting>
···
</listitem>
<listitem>
<para>
+
After the upgrade it's advisable to analyze the new cluster.
+
</para>
+
<itemizedlist>
+
<listitem>
+
<para>
+
For PostgreSQL ≥ 14, use the <literal>vacuumdb</literal> command printed by the upgrades script.
+
</para>
+
</listitem>
+
<listitem>
+
<para>
+
For PostgreSQL &lt; 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>
<prompt>$ </prompt>./analyze_new_cluster.sh
</programlisting>
+
</para>
+
</listitem>
+
</itemizedlist>
+
<para>
+
<warning><para>The next step removes the old state-directory!</para></warning>
<programlisting>
<prompt>$ </prompt>./delete_old_cluster.sh
</programlisting>