• Tom Lane's avatar
    Simplify genbki.pl's data quoting rules. · e90d4ddc
    Tom Lane authored
    During the bootstrap data format conversion, it seemed important for
    verifiability's sake that the generated postgres.bki file stayed the same
    as before.  That resulted in adding a bunch of ad-hoc rules about when to
    quote emitted data values, to match previous manual decisions that had
    often quoted values unnecessarily.  Now that the conversion is complete,
    it seems fine to remove all those ad-hoc rules.  The net actual effect on
    the current contents of postgres.bki is that some fields that had been
    quoted despite containing only digits or only "-" lose their unnecessary
    quotes.
    
    Also, now that genbki.pl will always quote values containing a backslash,
    there's no need for bootscanner.l to allow unquoted octal escapes;
    so simplify its production for "id" by removing that possibility.
    
    John Naylor, slightly modified by me
    
    Discussion: https://postgr.es/m/CAJVSVGUNao=-Q2-vAN3PYcdF5tnL5JAHwGwzZGuYHtq+Mk_9ng@mail.gmail.com
    e90d4ddc
genbki.pl 20.7 KB