There is another option to do it directly in db_postgres constraints "auto
detection"
https://www.postgresql.org/docs/9.1/static/catalog-pg-constraint.html
We would search the catalog :
```
select conntype from pg_constraint where conrelid = (select oid from pg_class
where relname like
Do you have trace_mode parameter for siptrace set to 1?
--
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/issues/1040#issuecomment-287960310___
Module: kamailio
Branch: 4.4
Commit: eb67c0ada2934f2d212645e8a7315eec6e368c4f
URL:
https://github.com/kamailio/kamailio/commit/eb67c0ada2934f2d212645e8a7315eec6e368c4f
Author: Daniel-Constantin Mierla
Committer: Daniel-Constantin Mierla
Date:
Module: kamailio
Branch: 5.0
Commit: 0ff6b710d0a5729778b3de1a15666e29d73aec56
URL:
https://github.com/kamailio/kamailio/commit/0ff6b710d0a5729778b3de1a15666e29d73aec56
Author: Daniel-Constantin Mierla
Committer: Daniel-Constantin Mierla
Date:
Module: kamailio
Branch: master
Commit: a51a32633429d761f8bc742386b6f6bcb6b38522
URL:
https://github.com/kamailio/kamailio/commit/a51a32633429d761f8bc742386b6f6bcb6b38522
Author: Daniel-Constantin Mierla
Committer: Daniel-Constantin Mierla
Date:
This would require modifications to
```
~/git/kamailio/src$ grep -R --include="*.c" insert_update *
the DB base framework and 4 implementations : db_mysql, db_cassandra, db_mysql,
db_cluster
lib/srdb1/db.c: if (dbf->insert_update) {
lib/srdb1/db.c: dbf.insert_update =
The most strati forward solution would probably be changing the function
prototype :
```/**
* \brief Insert a row into specified table, update on duplicate key.
*
* The function implements the INSERT ON DUPLICATE KEY
### Description
We have a Kamailio v4.4.5 Git-Rev. e9d576 running on Debian Wheezy 32bit KVM
machine. We are experiencing random crashes since morning and so far Kamailio
has crashed at least twice.
### Troubleshooting
Reproduction
This issue occurs randomly. We are not able to