Re: git push hook to check for outdated timestamps

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: git push hook to check for outdated timestamps
Date: 2015-07-14 18:30:17
Message-ID: 20150714183017.GA2301@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:
> On 7/14/15 3:44 AM, Alvaro Herrera wrote:

> > I have been using a slightly tweaked version of this and I have found
> > that the %w(80,4,4)%B thingy results in mangled formatting;
>
> I have since refined this to
>
> ... %n%n%w(0,4,4)%s%n%+b
>
> You might find that that works better.

Ah, yes it does, thanks.

> One of the curiosities is that the built-in log formats don't appear to
> be defined or easily definable in terms of the formatting language.

TBH I'm not surprised. Normally the built-in formats for things grow
organically in ad-hoc ways and the mini-languages for the generic
mechanisms don't support all the same features.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2015-07-14 18:33:34 Re: Could be improved point of UPSERT
Previous Message Peter Eisentraut 2015-07-14 18:19:12 Re: git push hook to check for outdated timestamps