From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alexander Korotkov <a.korotkov@postgrespro.ru>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Fix memory leak in PLySequence_ToJsonbValue()
Date: Sun, 17 Jun 2018 18:02:04 +0900
Message-ID: <20180617090204.GB1411@paquier.xyz> (raw)
In-Reply-To: <31412.1529072727@sss.pgh.pa.us>
References: <E1fTnV9-0006fJ-QD@gemulon.postgresql.org>
<CAPpHfdtOpSTWBt1L8y=N8dveYCdMZr-w0KOgzw-168-QMiiQ9g@mail.gmail.com>
<22445.1529070405@sss.pgh.pa.us>
<CAPpHfdsWBQAK2W=VO6U=iV4Xj40GxNbH8rqt7TQowGgAMD0H0g@mail.gmail.com>
<31412.1529072727@sss.pgh.pa.us>
On Fri, Jun 15, 2018 at 10:25:27AM -0400, Tom Lane wrote:
> Alexander Korotkov <a.korotkov@postgrespro.ru> 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.
>
> Ah, it wrapped in my mail app so I didn't notice.
>
> 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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us, a.korotkov@postgrespro.ru
Subject: Re: pgsql: Fix memory leak in PLySequence_ToJsonbValue()
In-Reply-To: <20180617090204.GB1411@paquier.xyz>
References: <E1fTnV9-0006fJ-QD@gemulon.postgresql.org> <CAPpHfdtOpSTWBt1L8y=N8dveYCdMZr-w0KOgzw-168-QMiiQ9g@mail.gmail.com> <22445.1529070405@sss.pgh.pa.us> <CAPpHfdsWBQAK2W=VO6U=iV4Xj40GxNbH8rqt7TQowGgAMD0H0g@mail.gmail.com> <31412.1529072727@sss.pgh.pa.us> <20180617090204.GB1411@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox