Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kr2fP-000111-OQ for pgsql-committers@arkaria.postgresql.org; Sun, 20 Dec 2020 17:38:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kr2fL-0007HW-Rv for pgsql-committers@arkaria.postgresql.org; Sun, 20 Dec 2020 17:38:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kr2fL-0007HP-Mc for pgsql-committers@lists.postgresql.org; Sun, 20 Dec 2020 17:38:43 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kr2fH-0006kQ-NR for pgsql-committers@lists.postgresql.org; Sun, 20 Dec 2020 17:38:42 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kr2fH-0004l9-GI for pgsql-committers@lists.postgresql.org; Sun, 20 Dec 2020 17:38:39 +0000 Received: from localhost ([127.0.0.1] helo=gemulon.postgresql.org) by gemulon.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kr2fH-0001v4-4y for pgsql-committers@lists.postgresql.org; Sun, 20 Dec 2020 17:38:39 +0000 Content-Type: multipart/mixed; boundary="===============6853489380176363189==" MIME-Version: 1.0 From: Tom Lane To: pgsql-committers@lists.postgresql.org Subject: pgsql: Avoid memcpy() with same source and destination in pgstat_recv_r X-Auto-Response-Suppress: All Auto-Submitted: auto-generated Message-Id: Date: Sun, 20 Dec 2020 17:38:39 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --===============6853489380176363189== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 QXZvaWQgbWVtY3B5KCkgd2l0aCBzYW1lIHNvdXJjZSBhbmQgZGVzdGluYXRpb24gaW4gcGdzdGF0 X3JlY3ZfcmVwbHNsb3QuCgpTYW1lIHR5cGUgb2YgaXNzdWUgYXMgaW4gY29tbWl0IDUzZDRmNWZl ZiBhbmQgZWFybGllciBmaXhlczsgYWxzbwpmb3VuZCBieSBhcHBhcmVudGx5LW1vcmUtcGlja3kt dGhhbi10aGUtYnVpbGRmYXJtIHZhbGdyaW5kIHRlc3RpbmcuClRoaXMgb25lIGlzIGFuIG92ZXJz aWdodCBpbiBjb21taXQgOTg2ODE2NzUwLiAgU2luY2UgdGhhdCdzIG5ldyBpbgpIRUFELCBubyBu ZWVkIGZvciBhIGJhY2stcGF0Y2guCgpCcmFuY2gKLS0tLS0tCm1hc3RlcgoKRGV0YWlscwotLS0t LS0tCmh0dHBzOi8vZ2l0LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvZWQ2MzI5Y2ZhOTc1 YTEzYzU4YzQ0Njc2NDY0NTg1Y2RhNWQzMTdiMwoKTW9kaWZpZWQgRmlsZXMKLS0tLS0tLS0tLS0t LS0Kc3JjL2JhY2tlbmQvcG9zdG1hc3Rlci9wZ3N0YXQuYyB8IDggKysrKy0tLS0KMSBmaWxlIGNo YW5nZWQsIDQgaW5zZXJ0aW9ucygrKSwgNCBkZWxldGlvbnMoLSkKCg== --===============6853489380176363189==--