DB_POSTGRES module
Admin Guide
Section titled “Admin Guide”Overview
Section titled “Overview”Module description
Dependencies
Section titled “Dependencies”OpenSIPS Modules
Section titled “OpenSIPS Modules”The following modules must be loaded before this module:
- No dependencies on other OpenSIPS modules.
External Libraries or Applications
Section titled “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).
Exported Parameters
Section titled “Exported Parameters”exec_query_threshold (integer)
Section titled “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.
...modparam("db_postgres", "exec_query_threshold", 60000)...max_db_queries (integer)
Section titled “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.
...modparam("db_postgres", "max_db_queries", 2)...timeout (integer)
Section titled “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.
Default value is 5.
...modparam("db_postgres", "timeout", 2)...Exported Functions
Section titled “Exported Functions”NONE
Installation and Running
Section titled “Installation and Running”Notes about installation and running.
Contributors
Section titled “Contributors”By Commit Statistics
Section titled “By Commit Statistics”Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
| # | Name | DevScore | Commits | Lines++ | Lines— |
|---|---|---|---|---|---|
| 1. | Henning Westerholt (@henningw) | 122 | 31 | 2721 | 4094 |
| 2. | Bogdan-Andrei Iancu (@bogdan-iancu) | 75 | 44 | 1170 | 1265 |
| 3. | Norman Brandinger (@NormB) | 52 | 5 | 1134 | 2208 |
| 4. | Greg Fausak | 42 | 3 | 4472 | 2 |
| 5. | Daniel-Constantin Mierla (@miconda) | 28 | 20 | 375 | 228 |
| 6. | Liviu Chircu (@liviuchircu) | 18 | 14 | 115 | 155 |
| 7. | Razvan Crainea (@razvancrainea) | 14 | 11 | 210 | 27 |
| 8. | Jan Janak (@janakj) | 12 | 8 | 308 | 31 |
| 9. | Vlad Paiu (@vladpaiu) | 11 | 7 | 134 | 66 |
| 10. | Klaus Darilion | 10 | 6 | 139 | 67 |
All remaining contributors: Stefan Darius (@dariusstefan), Ancuta Onofrei, Maksym Sobolyev (@sobomax), Vlad Patrascu (@rvlad-patrascu), Dusan Klinec (@ph4r05), Andrei Pelinescu-Onciul, Ruslan Bukin, Eseanu Marius Cristian (@eseanucristian), Ryan Bullock (@rrb3942), Razvan Pistolea, Konstantin Bokarius, Dan Pascu (@danpascu), Peter Lemenkov (@lemenkov), Aron Podrigal (@ar45), Edson Gellert Schubert, Jarrod Baumann (@jarrodb).
(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
(3) ignoring whitespace edits, renamed files and auto-generated files
By Commit Activity
Section titled “By Commit Activity”| # | Name | Commit Activity |
|---|---|---|
| 1. | Stefan Darius (@dariusstefan) | Jun 2026 - Jul 2026 |
| 2. | Razvan Crainea (@razvancrainea) | Oct 2011 - Jun 2026 |
| 3. | Norman Brandinger (@NormB) | Aug 2006 - Aug 2021 |
| 4. | Dan Pascu (@danpascu) | May 2019 - May 2019 |
| 5. | Liviu Chircu (@liviuchircu) | Sep 2012 - May 2019 |
| 6. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jul 2005 - Apr 2019 |
| 7. | Vlad Patrascu (@rvlad-patrascu) | May 2017 - Apr 2019 |
| 8. | Ryan Bullock (@rrb3942) | Mar 2019 - Mar 2019 |
| 9. | Vlad Paiu (@vladpaiu) | Jan 2011 - Feb 2019 |
| 10. | Peter Lemenkov (@lemenkov) | Jun 2018 - Jun 2018 |
All remaining contributors: Jarrod Baumann (@jarrodb), Dusan Klinec (@ph4r05), Aron Podrigal (@ar45), Eseanu Marius Cristian (@eseanucristian), Razvan Pistolea, Ruslan Bukin, Henning Westerholt (@henningw), Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Ancuta Onofrei, Klaus Darilion, Maksym Sobolyev (@sobomax), Jan Janak (@janakj), Greg Fausak, Andrei Pelinescu-Onciul.
(1) including any documentation-related commits, excluding merge commits
Documentation
Section titled “Documentation”Contributors
Section titled “Contributors”Last edited by: Razvan Crainea (@razvancrainea), Liviu Chircu (@liviuchircu), Peter Lemenkov (@lemenkov), Aron Podrigal (@ar45), Eseanu Marius Cristian (@eseanucristian), Bogdan-Andrei Iancu (@bogdan-iancu), Vlad Paiu (@vladpaiu), Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Henning Westerholt (@henningw), Jan Janak (@janakj).
License
Section titled “License”All documentation files (i.e. .md extension) are licensed under the Creative Common License 4.0