]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Mention gpgsql query change. 16947/head
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 5 Mar 2026 13:49:22 +0000 (14:49 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 5 Mar 2026 13:52:52 +0000 (14:52 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
docs/upgrading.rst

index bd56ea6e7aa4a9556c282e55a67a9026788ebc04..2693f458e5c897e8825ce9ea17e0d47f15b45856 100644 (file)
@@ -25,6 +25,24 @@ actual zone representation.
 As a result of this change, reading back these records may show a different
 representation than expected.
 
+TSIG key updates using PostgreSQL
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The default value of the ``set-tsig-key-query`` query used to update TSIG
+keys, for the :doc:`PostgreSQL <backends/generic-postgresql>` backend, has been
+updated to be able to perform key replacement, rather than failing, when an
+existing key with the given algorithm exists.
+
+This updated query relies upon functionality only made available from
+PostgreSQL version 9.5 onwards.
+
+If you are using an older version, the old query can be restored using::
+
+  gpgsql-set-tsig-key-query=insert into tsigkeys (name,algorithm,secret) values($1,$2,$3)
+
+but it is advised to upgrade to a supported version of PostgreSQL whenever
+possible.
+
 4.9.0 to 5.0.0
 --------------