#
# 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.