kamailio d55c6bd0f7 db_postgres: documentation updated 14 年之前
..
doc d55c6bd0f7 db_postgres: documentation updated 14 年之前
Makefile 1c4baf2b49 db_postgres: install kamctl files 15 年之前
README d55c6bd0f7 db_postgres: documentation updated 14 年之前
km_db_postgres.c f0546a246d Integrate functions and parameters from kamailio sources. 16 年之前
km_db_postgres.h f0546a246d Integrate functions and parameters from kamailio sources. 16 年之前
km_dbase.c 7c10eae725 db_postgres: reconnect tuning in submit query 14 年之前
km_dbase.h a7bac3b9ab Various changes to get rid of conflicts and make km_ files compile. 16 年之前
km_pg_con.c 204503d4aa db_postgres: compile fixes for gcc 2.95 16 年之前
km_pg_con.h a7bac3b9ab Various changes to get rid of conflicts and make km_ files compile. 16 年之前
km_pg_type.h 2881cb8852 - change name in copyright headers 17 年之前
km_res.c 63c724b42d db_postgres: reset row_buf for each row 15 年之前
km_res.h a7bac3b9ab Various changes to get rid of conflicts and make km_ files compile. 16 年之前
km_val.c 7370685a2e db_postgres: null-terminate blob buffers 15 年之前
km_val.h a7bac3b9ab Various changes to get rid of conflicts and make km_ files compile. 16 年之前
pg_cmd.c c65b0d9376 - fixed wrong parameter value passed to PQexecPrepared 17 年之前
pg_cmd.h b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_con.c 204503d4aa db_postgres: compile fixes for gcc 2.95 16 年之前
pg_con.h b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_fld.c d44e8a81f8 db_postgres: pointer aliasing warnings fixes 16 年之前
pg_fld.h b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_mod.c f0546a246d Integrate functions and parameters from kamailio sources. 16 年之前
pg_mod.h 7c1f066c89 - New postgres driver for the new db api in ser 17 年之前
pg_oid.c e2b6d847e0 Remove compiler warning about uninitialized variable. 16 年之前
pg_oid.h 7c1f066c89 - New postgres driver for the new db api in ser 17 年之前
pg_res.c b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_res.h b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_sql.c b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_sql.h b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_uri.c b372a1051e Make the module compile in the sip-router tree. 16 年之前
pg_uri.h b372a1051e Make the module compile in the sip-router tree. 16 年之前

README

postgres Module

Greg Fausak

August.net

Edited by

Greg Fausak

Copyright © 2003 Greg Fausak
Revision History
Revision $Revision$ $Date$
__________________________________________________________________

Table of Contents

1. Admin Guide

1. Overview
2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

3. Exported Parameters

3.1. retries (integer)

4. Exported Functions

List of Examples

1.1. Set retries parameter

Chapter 1. Admin Guide

Table of Contents

1. Overview
2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

3. Exported Parameters

3.1. retries (integer)

4. Exported Functions

1. Overview

The module is an implementation of the internal DB API v1 and v2
connector for PostgreSQL server. It has support for reconnecting when
the connection is broken.

2. Dependencies

2.1. Kamailio Modules
2.2. External Libraries or Applications

2.1. Kamailio Modules

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

2.2. External Libraries or Applications

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

3. Exported Parameters

3.1. retries (integer)

3.1. retries (integer)

How many retries to attept to reconnect if connection to Postgres
server becomes broken.

Default value is 2 (that means three attepts to submit the query, first
will triger the connection error and two more (the value of this
parameter) after resetting the connection).

Example 1.1. Set retries parameter
...
modparam("db_mysql", "retries", 3)
...

4. Exported Functions

NONE