Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEGaD-0007Cx-VJ for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Nov 2017 15:23:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eEGaD-0005uj-8r for pgsql-bugs@arkaria.postgresql.org; Mon, 13 Nov 2017 15:23:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eEGaD-0005uZ-0w for pgsql-bugs@lists.postgresql.org; Mon, 13 Nov 2017 15:23:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eEGa5-0008N6-M4 for pgsql-bugs@postgresql.org; Mon, 13 Nov 2017 15:23:31 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vADFNNjm030215; Mon, 13 Nov 2017 10:23:23 -0500 From: Tom Lane To: pavel.bazika@kocovnici.cz cc: pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #14902: valgrind - problem in PQconnectdb - pqSaveParameterStatus reported In-reply-to: <20171113112719.1468.57626@wrigleys.postgresql.org> References: <20171113112719.1468.57626@wrigleys.postgresql.org> Comments: In-reply-to pavel.bazika@kocovnici.cz message dated "Mon, 13 Nov 2017 11:27:19 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30213.1510586603.1@sss.pgh.pa.us> Date: Mon, 13 Nov 2017 10:23:23 -0500 Message-ID: <30214.1510586603@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk pavel.bazika@kocovnici.cz writes: > I'm testing my application with helgrind threading error detection tool > (part of valgrind) and it reports a problem in libpq, when I'm calling > PQconnectdb from two threads: It seems to be complaining about the assignments to static_client_encoding and static_std_strings. I wouldn't worry --- in the first place, those assignments should be atomic writes (at least on most platforms) and in the second place, the functionality involved is not guaranteed to work in any program with more than one PGconn anyway. regards, tom lane