README 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. postgres Module
  2. Greg Fausak
  3. August.net
  4. Edited by
  5. Greg Fausak
  6. Copyright © 2003 Greg Fausak
  7. __________________________________________________________________
  8. Table of Contents
  9. 1. Admin Guide
  10. 1. Overview
  11. 2. Dependencies
  12. 2.1. Kamailio Modules
  13. 2.2. External Libraries or Applications
  14. 3. Parameters
  15. 3.1. retries (integer)
  16. 4. Functions
  17. List of Examples
  18. 1.1. Set retries parameter
  19. Chapter 1. Admin Guide
  20. Table of Contents
  21. 1. Overview
  22. 2. Dependencies
  23. 2.1. Kamailio Modules
  24. 2.2. External Libraries or Applications
  25. 3. Parameters
  26. 3.1. retries (integer)
  27. 4. Functions
  28. 1. Overview
  29. The module is an implementation of the internal DB API v1 and v2
  30. connector for PostgreSQL server. It has support for reconnecting when
  31. the connection is broken.
  32. 2. Dependencies
  33. 2.1. Kamailio Modules
  34. 2.2. External Libraries or Applications
  35. 2.1. Kamailio Modules
  36. The following modules must be loaded before this module:
  37. * No dependencies on other Kamailio modules.
  38. 2.2. External Libraries or Applications
  39. The following libraries or applications must be installed before
  40. running Kamailio with this module loaded:
  41. * PostgreSQL library - e.g., libpq5.
  42. * PostgreSQL devel library - to compile the module (e.g., libpq-dev).
  43. 3. Parameters
  44. 3.1. retries (integer)
  45. 3.1. retries (integer)
  46. How many retries to attept to reconnect if connection to Postgres
  47. server becomes broken.
  48. Default value is 2 (that means three attepts to submit the query, first
  49. will triger the connection error and two more (the value of this
  50. parameter) after resetting the connection).
  51. Example 1.1. Set retries parameter
  52. ...
  53. modparam("db_postgres", "retries", 3)
  54. ...
  55. 4. Functions
  56. NONE