Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rngB9-00EUdC-GB for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2024 14:47:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rngB7-004IK0-LO for pgsql-hackers@arkaria.postgresql.org; Fri, 22 Mar 2024 14:47:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rngB7-004IJD-9S for pgsql-hackers@lists.postgresql.org; Fri, 22 Mar 2024 14:47:29 +0000 Received: from mail-lf1-x12c.google.com ([2a00:1450:4864:20::12c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rngB4-005v4y-54 for pgsql-hackers@postgresql.org; Fri, 22 Mar 2024 14:47:29 +0000 Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-513e134f73aso2834961e87.2 for ; Fri, 22 Mar 2024 07:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711118845; x=1711723645; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4eR0oMOsiokbX63DW0+6LNlWcd8jjIRhTUyWE8xKVE8=; b=ZBjK2h0JGEigWHo0O2ioL/dmlj2itR626+vbG8ULV40UsEByKllnAOXBEHgxxn1ivQ 7lox+8i0cqWUvyHLr4qY92/4DeN3VxugadJe+qIZx5A0Ba6Okxz5W5P7ai6vwmK1cyGG yru28sg7euHGdcJsYdG9hgCTxBFQxIxj/7golJEn9sqL/I5mxhnAVJlBPr5yUSHSC6KP du1WF/eUIOkoGHufniEqMav5ZJ22D1BepsDnSX6lZW9SCjmTqjZKxFVsj8WCV0otvtdl 2Nkof2EWa3ReVGDq3WKQy9zZHB+ovnKDzXx7rTt/vGEbY4tSrEFAKu7qDuRI3TpuCno6 UVWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711118845; x=1711723645; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4eR0oMOsiokbX63DW0+6LNlWcd8jjIRhTUyWE8xKVE8=; b=koXoHxeAoicsTSnTKcm8rxTTWumqgzxpAgy0u3PUMoOMUJA7W7K8TPrhUxrd0W3VJG fRG1La6L2AtiM26m1qoF/FJJ/ICsd0QQXDS0Wz8uCAyq42rOkvZRvky3yHzIzgpG7W4G jWI7x7kIEvDctzlUQqgrIwMJxJbcNBGZOidKs2b1K413HTPpGaXOu7Gj9NyR6sLzr0LH SQ/aGKr+3wot+kJn/fw2ZPemcq1zULI+dQTI+EZ0BycQWwtX41IDyM3tMDzHbPP6YJne F5B1o1RTDtkibX/WHeYZLWKh9MlPg4+bZysQR7xmquCKLk0dKXhJX1XRtizp/PJ1cIZz 0Jpg== X-Forwarded-Encrypted: i=1; AJvYcCUCI7sszk1V65vDYjC6hRe91drrIDyNPsXd9xaUT54vNEHUrDzm/mTG1N5i5ODO0dWYCO1knEsEs9wYats7NROB4Wl76ir3mb5T7NSj X-Gm-Message-State: AOJu0YwXmq0SSnmJmUqKdsPzAe0VhkVXFDkiGD9E1TEuY2XSNI2Nh6OQ Gt3QHlsCmMVmNGKPsXS9/zBBzPHtdNkhbiCmNLEFv+3fji8DCDT0lm20B44WBE2tm4hvfVfVrrA PO2kFOc406yzLv9kZulpXz8OTeYg= X-Google-Smtp-Source: AGHT+IELPWNPfmNuBj65EDnVTjgPaYwog8NqH6PMs0bmmrdCq39W7yFkydqSNuMskofgKCUp6eFBSynrofyZlBVntRk= X-Received: by 2002:a19:9101:0:b0:513:4764:2fa5 with SMTP id t1-20020a199101000000b0051347642fa5mr1893477lfd.41.1711118844445; Fri, 22 Mar 2024 07:47:24 -0700 (PDT) MIME-Version: 1.0 References: <8c9b9b7d-0868-46d4-963c-8b1906bd7a1b@eisentraut.org> In-Reply-To: <8c9b9b7d-0868-46d4-963c-8b1906bd7a1b@eisentraut.org> From: Greg Sabino Mullane Date: Fri, 22 Mar 2024 10:46:48 -0400 Message-ID: Subject: Re: Adding comments to help understand psql hidden queries To: Peter Eisentraut Cc: David Christensen , Jim Jones , pgsql-hackers Content-Type: multipart/alternative; boundary="000000000000e44b02061440e6c6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e44b02061440e6c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Mar 21, 2024 at 6:20=E2=80=AFPM Peter Eisentraut 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 --000000000000e44b02061440e6c6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Thu, Mar 21, 2024 at 6:20=E2=80=AFPM P= eter Eisentraut <peter@eisentrau= t.org> wrote:
lines are supposed to align vertically.=C2=A0 With your patch, the first li= ne
would have variable length depending on the command.
<= br>
Yes, that is a good point. Aligning those would be quite tric= ky, what if we just kept a standard width for the closing query?=C2=A0Proba= bly=C2=A0the 24 stars we currently have to match "QUERY", which i= t 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 t= he vertical=C2=A0alignment).

Cheers,
Gre= g
=C2=A0
--000000000000e44b02061440e6c6--