Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUTZl-0008So-U1 for pgsql-committers@arkaria.postgresql.org; Sun, 17 Jun 2018 09:02:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fUTZj-0007DZ-UL for pgsql-committers@arkaria.postgresql.org; Sun, 17 Jun 2018 09:02:19 +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.89) (envelope-from ) id 1fUTZi-0007DH-50 for pgsql-committers@lists.postgresql.org; Sun, 17 Jun 2018 09:02:19 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fUTZa-0001dM-Ay for pgsql-committers@lists.postgresql.org; Sun, 17 Jun 2018 09:02:16 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CAA3B2096D; Sun, 17 Jun 2018 05:02:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 17 Jun 2018 05:02:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=K5DzPWUfc/+pxurNYm12HtyaHEd42MahCMK2h94Py3A=; b=Ea6BB2zl Vhw7kTU3CL7FHED4mEhmoWrMmswXJNW8q9M4o9azmIpCr4NRiwXFOIUFpczJuMm3 4+cW1KyT+FAIOlEm8l/v0tBmZcvaiBR5KswM1lyjo3DXfNzueb6dyQ1SWq2TAWDt 14fgVyhn/reXIW6OuixfLc9oGGsNIRTtYHxqeNzJKE0B9VBbRDNfWnmubBVdB/4k 9bt2zOiJumcaLxGU/rliRwKZiUhbi4+l8HP31GxRFcnXLZJZ6HcQw1RFcirkhnFK tk7qkQL2/v7s6TEnyNxf2gnaO8Xk9AQ30Q95i6rnZI4utgJgA6+DTXKq4QenZEaS sdTzv4QCcEZLrg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=K5DzPWUfc/+pxurNYm12HtyaHEd42 MahCMK2h94Py3A=; b=aWHdaXZ15peoGb5asHb/pDlVf2ZcaIpESePLgvYRuS+/+ qOPz0jvZPLnH2tXAnPWPOlhBV0Ps94LvijZBbgLO6FzJ0CdsT7vZgicZpkGd7bKz QTr62ILxvYxFg6li3a6D/EkwlAX7itFthltA3PLFfF89vYdjhjw4phdEKV+EPGqW rlhseXlRMQl4PjI6VTNFTSgoMlx97WML5K+LvjXOSgJCSFBIAwra0CgKYmAk69mi VllaT2rxoJZ0mE5NySrC5KoZ/3CQhKUdEI7nteWZU83/KJA/vRlpAvAc7bnRho0g D5UXx8UzdFr4rnw1vJlHIWHqxPKXqeamnTlSQwBnA== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 506DAE425A; Sun, 17 Jun 2018 05:02:07 -0400 (EDT) Date: Sun, 17 Jun 2018 18:02:04 +0900 From: Michael Paquier To: Tom Lane Cc: Alexander Korotkov , pgsql-committers Subject: Re: pgsql: Fix memory leak in PLySequence_ToJsonbValue() Message-ID: <20180617090204.GB1411@paquier.xyz> References: <22445.1529070405@sss.pgh.pa.us> <31412.1529072727@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline In-Reply-To: <31412.1529072727@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cvVnyQ+4j833TQvp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 15, 2018 at 10:25:27AM -0400, Tom Lane wrote: > Alexander Korotkov writes: >> It doesn't contain something particular wrong, but it's just badly >> formatted. As I can see, we're keeping lines in commit messages no >> longer than 80 characters when possible. I've commit message with 158 >> characters line for no reason. It was just because I wrote this >> commit message with word wrapping enabled. >=20 > Ah, it wrapped in my mail app so I didn't notice. >=20 > FWIW, I actually try to keep commit log lines to 75 characters, because > that's what displays nicely in "git log". Links such as Discussion: > tags tend to run over, but there's little to be done about that as long > as gmail insists on such ridiculously long message IDs :-( Here is a trick I have learnt to use with my emacs configuration for commit messages: ;; Git settings: auto-fill-mode for commits with dedicated mode. (define-derived-mode git-commit-mode text-mode "GitCommit" "Mode for writing git commit files." (setq fill-column 72) (auto-fill-mode +1) (set (make-local-variable 'comment-start-skip) "#.*$")) (add-to-list 'auto-mode-alist '("/\\(?:COMMIT\\|NOTES\\|TAG\\|PULLREQ\\)_EDITMSG\\'" . git-commit-mode)) This forces any commit messages written to be within 72 characters, so you have one thing less to think about. Just be careful to keep discussion links into one line. -- Michael --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlsmI4wACgkQnvQgOdby QH20Og/+I1QlXAKTAUIRh6ACLDg517fKe80m0MDEA/YzpyJm/gXAnJOGm8vubuEL 1IyqlUw0O5qveqpppTvE6PRM1nFOOkYSUI2BZG/3Y49NCtHL06C9QAuaHH0lCyXs 0/KPcNzCQWOYLpCBHwyO+s/vMZRjsItVHRKJkbxE3Tss6jvxe6ryIDKHTmbcm0K+ wnIPZT9BS6Tqqew4t3FGrM2dRBL1oAQu7N1OK2MROG07H1dnvAQ/wzKZzUB7zgx0 ovh08XFGeAx4IgYJcPvQVabVQNrK6t9RkFl+YgVz3nZGDp62n9S793sViV6kXRNP 1c4pYZP8ysQ0r4fgwuwzK+G/vKDb3vQa5cULBjEDbccun8AXdt/b7nOKWCzbob7H XGsnrXBp4kWLkSj5PxqvRjHB8CrNSB5cQi5WIKWW6PNx7ZwJlO3HmyM8c2Ti6DWR h3Rbd/fPnF8KgBj0ksHb9RUtXMT9AGPkbt2RQ+fXeWzGgqWxKzKMi0ungryEZPr8 l/0QwOdJ46THw9GtYfk0Ygjg+l8T2Pq2iJdwYu7bt+eeETuimuaMdtooup2GesrB 4WN1LGspiunKvqKb6hzCDaIh1KvhCZFXv9AY2MM+AD+mrRgDfyJd/UqCbfTNk5Ru WZj9YOQOIFlcR+Mh5xZ42swQdevp5obBexp+OJFTDl9THy7VArw= =TAff -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp--