Re: Parsing libpq PQtrace files

2023-10-17 Thread Dominique Devienne
On Tue, Oct 17, 2023 at 6:12 PM Alvaro Herrera wrote: > On 2023-Oct-17, Dominique Devienne wrote: > > > But then on Parse, the query text, which also contains embedded > > newlines but also embedded double-quotes, for column aliases, or table > > names, or whatever, even why not a single char lit

Re: Parsing libpq PQtrace files

2023-10-17 Thread Alvaro Herrera
On 2023-Oct-17, Dominique Devienne wrote: > But then on Parse, the query text, which also contains embedded > newlines but also embedded double-quotes, for column aliases, or table > names, or whatever, even why not a single char literal like '"' (i.e. > single-quote, double-quote, single-quote),

Parsing libpq PQtrace files

2023-10-17 Thread Dominique Devienne
Hi. I'm tracing my client-side connection(s) for the first time. The format seems to be line oriented. Selected text columns with embedded newlines have those newlines encoded as \x0a to remain single-line in the trace. So far so good. But then on Parse, the query text, which also contains embedd