"Brendan Jurd" <direvus(at)gmail(dot)com> writes:
>> As discussed on -hackers, I've done some refactoring work on
>> backend/utils/adt/formatting.c, in an attempt to make the code a bit
>> more intelligible before improving handling of bogus formats.
Applied with minor revisions.
regards, tom lane