Re: psql --html and to_char() - Mailing list pgsql-general

From Greg Sabino Mullane
Subject Re: psql --html and to_char()
Date
Msg-id CAKAnmmKv=A6d=q_CqYPP6a7qS2+tacYV4WOzXziBuXq3MPTwjw@mail.gmail.com
Whole thread Raw
In response to psql --html and to_char()  (Ron Johnson <ronljohnsonjr@gmail.com>)
Responses Re: psql --html and to_char()
List pgsql-general
On Wed, Aug 27, 2025 at 11:28 AM Ron Johnson <ronljohnsonjr@gmail.com> 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

--
Enterprise Postgres Software Products & Tech Support

pgsql-general by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: How to configure client-side TLS ciphers for streaming replication?
Next
From: Ron Johnson
Date:
Subject: Re: psql --html and to_char()