Document open_query
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 May 2014 00:01:55 +0000 (20:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 May 2014 00:02:08 +0000 (20:02 -0400)
raddb/mods-config/sql/main/postgresql/queries.conf

index de9ebb8..4a20659 100644 (file)
@@ -51,6 +51,18 @@ sql_user_name = "%{User-Name}"
 # default_user_profile = "DEFAULT"
 
 #######################################################################
+#  Open Query
+#######################################################################
+# This query is run whenever a new connection is opened.
+# It is commented out by default.
+#
+# If you have issues with connections hanging for too long, uncomment
+# the next line, and set the timeout in milliseconds.  As a general
+# rule, if the queries take longer than a second, something is wrong
+# with the database.
+#open_query = "set statement_timeout to 1000"
+
+#######################################################################
 #  NAS Query
 #######################################################################
 #  This query retrieves the radius clients