public inbox for [email protected]  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <[email protected]>
To: Ron Johnson <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: psql --html and to_char()
Date: Wed, 27 Aug 2025 18:12:48 -0400
Message-ID: <CAKAnmmKv=A6d=q_CqYPP6a7qS2+tacYV4WOzXziBuXq3MPTwjw@mail.gmail.com> (raw)
In-Reply-To: <CANzqJaAJVQVa0Wbx1fHv5n7zfp9ZyCXZMPqJF_JLTBo68ToNeA@mail.gmail.com>
References: <CANzqJaAJVQVa0Wbx1fHv5n7zfp9ZyCXZMPqJF_JLTBo68ToNeA@mail.gmail.com>

On Wed, Aug 27, 2025 at 11:28 AM Ron Johnson <[email protected]>
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


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: psql --html and to_char()
  In-Reply-To: <CAKAnmmKv=A6d=q_CqYPP6a7qS2+tacYV4WOzXziBuXq3MPTwjw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox