Thread

Commits

  1. Avoid splitting C string literals with \-newline

  1. string literal continuations in C

    Alvaro Herrera <alvherre@2ndquadrant.com> — 2019-12-23T19:51:56Z

    Per a recent thread, these patches remove string literals split with
    \-escaped newlines.  The first is for the message "materialize mode
    required, but it is not allowed in this context" where it's more
    prevalent, and we keep perpetuating it; the second is for other
    messages, whose bulk is in dblink and tablefunc.  I think the split is
    pointless and therefore propose to push both together as a single
    commit, but maybe somebody would like me to leave those contrib modules
    alone.
    
    There are many other error messages that are split with no \; I would
    prefer not to have them, but maybe it would be too intrusive to change
    them all.  So let's do this for now and remove this one point of
    ugliness.
    
    -- 
    Álvaro Herrera                            39°49'30"S 73°17'W
    
  2. Re: string literal continuations in C

    Joe Conway <mail@joeconway.com> — 2019-12-24T11:43:20Z

    On 12/23/19 2:51 PM, Alvaro Herrera wrote:
    > Per a recent thread, these patches remove string literals split with
    > \-escaped newlines.  The first is for the message "materialize mode
    > required, but it is not allowed in this context" where it's more
    > prevalent, and we keep perpetuating it; the second is for other
    > messages, whose bulk is in dblink and tablefunc.  I think the split is
    > pointless and therefore propose to push both together as a single
    > commit, but maybe somebody would like me to leave those contrib modules
    > alone.
    
    I take it since I was explicitly CC'd that the contrib comment was aimed
    at me? I likely copied the convention from somewhere else in the
    backend, but I don't care either way if you want to change them. However
    I guess we should coordinate since I've been berated regarding error
    codes and will likely go change at least two of them in tablefunc soon
    (not likely before Thursday though)...
    
    Joe
    
    -- 
    Crunchy Data - http://crunchydata.com
    PostgreSQL Support for Secure Enterprises
    Consulting, Training, & Open Source Development