Re: Adding comments to help understand psql hidden queries - Mailing list pgsql-hackers

From Greg Sabino Mullane
Subject Re: Adding comments to help understand psql hidden queries
Date
Msg-id CAKAnmmL6-U+QPsuWM0r8mNq0Lo80d8L=cR7JLk7pypXJfwt=EA@mail.gmail.com
Whole thread Raw
In response to Re: Adding comments to help understand psql hidden queries  (Peter Eisentraut <peter@eisentraut.org>)
Responses Re: Adding comments to help understand psql hidden queries
List pgsql-hackers
On Thu, Mar 21, 2024 at 6:20 PM Peter Eisentraut <peter@eisentraut.org> wrote:
lines are supposed to align vertically.  With your patch, the first line
would have variable length depending on the command.

Yes, that is a good point. Aligning those would be quite tricky, what if we just kept a standard width for the closing query? Probably the 24 stars we currently have to match "QUERY", which it appears nobody has changed for translation purposes yet anyway. (If I am reading the code correctly, it would be up to the translators to maintain the vertical alignment).

Cheers,
Greg
 

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: pg_upgrade --copy-file-range
Next
From: Nathan Bossart
Date:
Subject: Re: Slow GRANT ROLE on PostgreSQL 16 with thousands of ROLEs