[sr-dev] [kamailio/kamailio] db_postgres: added connection parameters (#2622)

korayvt notifications at github.com
Fri Feb 5 07:27:45 CET 2021


> Purely as an observer and a db_postgres user, wouldn't it be easier just to pass entire connection strings or connection URIs? That way, Kamailio doesn't need to worry about parsing the params, just to rebuild them for input to libpq https://www.postgresql.org/docs/12/libpq-connect.html#LIBPQ-CONNSTRING

Thanks for your suggestion. 
Currently PQconnectdbParams function is used to make connections.
This function takes two char arrays as keywords and values.
So we need to parse parameters.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2622#issuecomment-773822991
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210204/fffc7921/attachment-0001.htm>


More information about the sr-dev mailing list