]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Comment out sqlippool PostgreSQL allocate_find query, so only one allocate_find query...
authorNathan Ward <nward@braintrust.co.nz>
Fri, 11 Jan 2019 03:14:13 +0000 (16:14 +1300)
committerNathan Ward <nward@braintrust.co.nz>
Fri, 11 Jan 2019 03:14:13 +0000 (16:14 +1300)
raddb/mods-config/sql/ippool/postgresql/queries.conf

index f7942072cb2033489b21186059f6df898076c47f..8aa9fb79e7aa61601b4244a80fdef1c128326ccd 100644 (file)
@@ -39,12 +39,12 @@ allocate_find = "\
 #
 #  If you prefer to allocate a random IP address every time, use this query instead
 #
-allocate_find = "\
-       SELECT framedipaddress FROM ${ippool_table} \
-       WHERE pool_name = '%{control:${pool_name}}' AND expiry_time < 'now'::timestamp(0) \
-       ORDER BY RANDOM() \
-       LIMIT 1 \
-       FOR UPDATE"
+#allocate_find = "\
+#      SELECT framedipaddress FROM ${ippool_table} \
+#      WHERE pool_name = '%{control:${pool_name}}' AND expiry_time < 'now'::timestamp(0) \
+#      ORDER BY RANDOM() \
+#      LIMIT 1 \
+#      FOR UPDATE"
 
 #
 #  The above query again, but with SKIP LOCKED. This requires PostgreSQL >= 9.5.