Re: [rsyslog] rsyslog-7.4.9 ompgsql libpq threads problem[PATCH]

2014-02-05 Thread ecze
Little remark To be honest, I don't see any advantage to init the PG connection during the instance creation. We could just suppress the call to initPgSQL and keep in this patch the test part in the BeginTransaction to init the connection if the handle is NULL. Alain ecze wrote > Purpose

Re: [rsyslog] rsyslog-7.4.9 ompgsql libpq threads problem[PATCH]

2014-02-05 Thread ecze
Purpose of a patch for Stable Release 7.4.9 : diff -Nru ompgsql.c /new/ompgsql.c --- ompgsql.c 2014-01-21 13:14:21.0 +0100 +++ /new/ompgsql.c2014-02-05 12:01:51.557026475 +0100 @@ -262,8 +262,13 @@ BEGINbeginTransaction CODESTARTbeginTransaction +if ( pData->f_hpgsql == NULL