db_postgres Module
     __________________________________________________________

   Table of Contents

   1. Admin Guide

        1.1. Overview
        1.2. Dependencies

              1.2.1. OpenSIPS Modules
              1.2.2. External Libraries or Applications

        1.3. Exported Parameters

              1.3.1. exec_query_threshold (integer)
              1.3.2. max_db_queries (integer)
              1.3.3. timeout (integer)

        1.4. Exported Functions
        1.5. Installation and Running

   2. Contributors

        2.1. By Commit Statistics
        2.2. By Commit Activity

   3. Documentation

        3.1. Contributors

   List of Tables

   2.1. Top contributors by DevScore^(1), authored commits^(2) and
          lines added/removed^(3)

   2.2. Most recently active contributors^(1) to this module

   List of Examples

   1.1. Set exec_query_threshold parameter
   1.2. Set max_db_queries parameter
   1.3. Set timeout parameter

Chapter 1. Admin Guide

1.1. Overview

   Module description

1.2. Dependencies

1.2.1. OpenSIPS Modules

   The following modules must be loaded before this module:
     * No dependencies on other OpenSIPS modules.

1.2.2. External Libraries or Applications

   The following libraries or applications must be installed
   before running OpenSIPS with this module loaded:
     * PostgreSQL library - e.g., libpq5.
     * PostgreSQL devel library - to compile the module (e.g.,
       libpq-dev).

1.3. Exported Parameters

1.3.1. exec_query_threshold (integer)

   If queries take longer than 'exec_query_threshold'
   microseconds, warning messages will be written to logging
   facility.

   Default value is 0 - disabled.

   Example 1.1. Set exec_query_threshold parameter
...
modparam("db_postgres", "exec_query_threshold", 60000)
...

1.3.2. max_db_queries (integer)

   The maximum number of database queries to be executed. If this
   parameter is set improperly, it is set to default value.

   Default value is 2.

   Example 1.2. Set max_db_queries parameter
...
modparam("db_postgres", "max_db_queries", 2)
...

1.3.3. timeout (integer)

   The number of seconds the PostgreSQL library waits to connect
   and query the server. If the connection does not succeed within
   the given timeout, the connection fails.

   Note:If the timeout is a negative value and connection does not
   succeed, OpenSIPS will block until the connection becomes back
   available and gets successfully established. This is the
   default behavior of the library and is the behavior prior to
   the adition of this parameter.

   Default value is 5.

   Example 1.3. Set timeout parameter
...
modparam("db_postgres", "timeout", 2)
...

1.4. Exported Functions

   NONE

1.5. Installation and Running

   Notes about installation and running.

Chapter 2. Contributors

2.1. By Commit Statistics

   Table 2.1. Top contributors by DevScore^(1), authored
   commits^(2) and lines added/removed^(3)
     Name DevScore Commits Lines ++ Lines --
   1. Bogdan-Andrei Iancu (@bogdan-iancu) 104 44 1888 2505
   2. Henning Westerholt (@henningw) 70 29 554 1963
   3. Greg Fausak 40 3 4472 2
   4. Daniel-Constantin Mierla (@miconda) 27 20 350 203
   5. Liviu Chircu (@liviuchircu) 13 10 27 62
   6. Jan Janak (@janakj) 12 8 300 23
   7. Klaus Darilion 10 6 139 67
   8. Razvan Crainea (@razvancrainea) 9 6 175 22
   9. Vlad Paiu (@vladpaiu) 8 6 100 34
   10. Ancuta Onofrei 7 1 186 191

   All remaining contributors: Norman Brandinger, Maksym Sobolyev
   (@sobomax), Andrei Pelinescu-Onciul, Dusan Klinec, Eseanu
   Marius Cristian (@eseanucristian), Ruslan Bukin, Konstantin
   Bokarius, Razvan Pistolea, Aron Podrigal, Norman Brandinger
   (@NormB), Edson Gellert Schubert, Jarrod Baumann (@jarrodb),
   Vlad Patrascu (@rvlad-patrascu).

   (1) DevScore = author_commits + author_lines_added /
   (project_lines_added / project_commits) + author_lines_deleted
   / (project_lines_deleted / project_commits)

   (2) including any documentation-related commits, excluding
   merge commits. Regarding imported patches/code, we do our best
   to count the work on behalf of the proper owner, as per the
   "fix_authors" and "mod_renames" arrays in
   opensips/doc/build-contrib.sh. If you identify any
   patches/commits which do not get properly attributed to you,
   please submit a pull request which extends "fix_authors" and/or
   "mod_renames".

   (3) ignoring whitespace edits, renamed files and auto-generated
   files

2.2. By Commit Activity

   Table 2.2. Most recently active contributors^(1) to this module
                         Name                     Commit Activity
   1.  Liviu Chircu (@liviuchircu)              Sep 2012 - Oct 2018
   2.  Razvan Crainea (@razvancrainea)          Oct 2011 - Oct 2018
   3.  Bogdan-Andrei Iancu (@bogdan-iancu)      Jul 2005 - Jun 2018
   4.  Vlad Patrascu (@rvlad-patrascu)          May 2017 - May 2017
   5.  Jarrod Baumann (@jarrodb)                Mar 2016 - Mar 2016
   6.  Dusan Klinec                             Dec 2015 - Dec 2015
   7.  Aron Podrigal                            Jul 2015 - Jul 2015
   8.  Eseanu Marius Cristian (@eseanucristian) Jul 2015 - Jul 2015
   9.  Vlad Paiu (@vladpaiu)                    Jan 2011 - Mar 2012
   10. Razvan Pistolea                          Jul 2009 - Jul 2009

   All remaining contributors: Ruslan Bukin, Henning Westerholt
   (@henningw), Daniel-Constantin Mierla (@miconda), Konstantin
   Bokarius, Edson Gellert Schubert, Ancuta Onofrei, Klaus
   Darilion, Norman Brandinger, Norman Brandinger (@NormB), Maksym
   Sobolyev (@sobomax), Jan Janak (@janakj), Greg Fausak, Andrei
   Pelinescu-Onciul.

   (1) including any documentation-related commits, excluding
   merge commits

Chapter 3. Documentation

3.1. Contributors

   Last edited by: Liviu Chircu (@liviuchircu), Razvan Crainea
   (@razvancrainea), Bogdan-Andrei Iancu (@bogdan-iancu), Aron
   Podrigal, Eseanu Marius Cristian (@eseanucristian), Vlad Paiu
   (@vladpaiu), Daniel-Constantin Mierla (@miconda), Konstantin
   Bokarius, Edson Gellert Schubert, Henning Westerholt
   (@henningw).

   doc copyrights:

   Copyright © 2003 Greg Fausak
