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 1urOOZ-005PmG-GP for pgsql-general@arkaria.postgresql.org; Wed, 27 Aug 2025 22:13:32 +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 1urOOW-000855-T1 for pgsql-general@arkaria.postgresql.org; Wed, 27 Aug 2025 22:13:29 +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 1urOOW-00084x-II for pgsql-general@lists.postgresql.org; Wed, 27 Aug 2025 22:13:29 +0000 Received: from mail-io1-xd32.google.com ([2607:f8b0:4864:20::d32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1urOOU-002DMz-1E for pgsql-general@postgresql.org; Wed, 27 Aug 2025 22:13:28 +0000 Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-88432daa973so10042239f.1 for ; Wed, 27 Aug 2025 15:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756332805; x=1756937605; 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=lT0plQ7qDErBa9tUG7YtWSRr2JdVureAkOgwiJ3jtLQ=; b=YOEsTrHkl7AtJ+KOupyGPzY1wgnEszK9F7f+ddZKk0oXBN+lG5O63TSPF7NyZZH1Ae y0bHbTHYNiEqnAV3lBIGjWWCl4DkQe6CUNRxTpFzQBC7qbvU5Ljez/X0YXgbSTG/pwDM iRTjkO8cGNp5OAcvmtPQ00z9L+7VQ2u1Ruwt6hwotIWRg1LBnXSAd9Wi1IU4UD90V4gr gMUYDtKEeZDq46a1RmwEDNCLbEM7PwUcDkPj/M8hEt/ZsXmDvNzPxY8b0gE7sMlGLvhm 5mugqXlQjIal8Bm6ULXcopK5KZBNwrW0EtSxKuaWiWXtgLcQPL691bB3n6mgv8OXyruv cKYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756332805; x=1756937605; 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=lT0plQ7qDErBa9tUG7YtWSRr2JdVureAkOgwiJ3jtLQ=; b=ez2j5qG2+AHkL9zcobiDAKvJZYuLRXrhTlJXGQaV5Doi6fZSHx+4nDjbKe6SP9A/cj 1v5zLJz5yqpTqLGwO6cyOdjp4fq0EYF2GsMX/EH2vBLmrwybFrqAIsDMBjMCXKrhMMCj m7wRmVjK9D824/UFRokUq8S+X7Qgxl0WzBL/Y6TJtTUKkOliHfodf9KUH29RdkDQctIM Ap1zbWyyNrjrhC5JQVC+ixlr7wCCiSYqd2D46H8G1DzQW3Ia+dEqgnqfV/EWOct3+Jee KgkHolMLfUR7LLbfui136pPvGquv/fkUGyf3ZTIkwSccSBDGEwgohxEP3i1xxxV7h4Z5 iq6A== X-Gm-Message-State: AOJu0YzSpE9Vb8F0NbyDC8POAVCiujipQNA0H/D/qQaNyXGzAWUTW0gQ xipJ1s1ZoJcBym4BeLfsSBX9irr9vfu8GLEbiaSSt1zjAH5jUYcwZ9WoZqJ7sFC0j+C1LTwgakX K8Yr4KnMv2Lwa+clxtdrv1Bt7qP35RXY= X-Gm-Gg: ASbGncsND01MWVOH9dkZcv6o9KGgn+I6sTKDlGUg0KZxGJJLGXTTjGMUJqGqvbj2N60 nZUJZNBY91jUWZ0WE+XkQMbdIgIwQF4Fjlko8ey4IOl90+hJ5EZhPQpMLLd851yY3dkiwW4okWC 0Gmb2heCRO2QC07lWLqPOMpDzo9SltpsgiDOi8Fa8qlsuQF/8yDP1gV/CGmBwjpEhOnDP6PwfSU I4Egcbsumc+N69Tixq3aqpmiaMdOzOS17KlICj4/H3AwaUgs4/cdsJD5zu6diooCTaXhgPCLZSJ SootEX/WKdtZ3DwKo7w9sHOfbTg= X-Google-Smtp-Source: AGHT+IHE9gxQLO4nlRrLOrVMeAOTopvV5WcPXw2ZuW5qi+TfJXitefGUjTtZKOGYqwVwzrmd0E/W1Y01VYxSelR17Yk= X-Received: by 2002:a05:6e02:2509:b0:3f0:a48b:151b with SMTP id e9e14a558f8ab-3f0a48b1d5amr35825745ab.31.1756332804548; Wed, 27 Aug 2025 15:13:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Greg Sabino Mullane Date: Wed, 27 Aug 2025 18:12:48 -0400 X-Gm-Features: Ac12FXwY3MKWpnkiceYUxQlQMJeGf7lRhLmQKyrZQOddfvRumuxIjo3X6TrgRG0 Message-ID: Subject: Re: psql --html and to_char() To: Ron Johnson Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000ec2ef4063d6018bb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ec2ef4063d6018bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Aug 27, 2025 at 11:28=E2=80=AFAM Ron Johnson wrote: > Is there a way around this, other than writing my own HTMLifier? > Not unless your to_char() output can be coerced back into a numeric. (for the archives sake, see fe_utils/print.c for the complete list of right-aligned columns: int family, float, numeric, oid, xid, cid, and the when-will-it-finally-die money type) Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --000000000000ec2ef4063d6018bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Aug 27, 2025 at 11:28=E2=80=AFAM = Ron Johnson <ronljohnsonjr@gm= ail.com> wrote:
I= s there a way around this, other than writing my own HTMLifier?
=

Not unless your to_char() output can be co= erced back into a numeric. (for the archives sake, see fe_utils/print.c for= the complete list of right-aligned columns: int family, float, numeric, oi= d, xid, cid, and the when-will-it-finally-die money type)
=C2=A0<= /div>
Cheers,
Greg

--
Enterprise Postgres Software Products & Tech Support<= /div>

--000000000000ec2ef4063d6018bb--