Re: Auto-formatting timestamps?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Peter Koczan <pjkoczan(at)gmail(dot)com>
Cc: Mag Gam <magawake(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Auto-formatting timestamps?
Date: 2008-05-14 15:59:36
Message-ID: 20080514155936.GK5521@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Peter Koczan escribió:
> On Tue, May 13, 2008 at 5:54 PM, Mag Gam <magawake(at)gmail(dot)com> wrote:
> > Why not create a view?
>
> That's a possibility, but the issue is that the output formatting is
> bound to a data type (timestamp), not one or two particular tables.
> Trying to create a view for all the tables with timestamps (and
> creating appropriate rules for updating views) would be a huge
> administrative PITA.

If you're really set about that, you can add a new DateStyle setting.
It's a bit of C hacking. (Or you can hire someone to do it for you.)

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mag Gam 2008-05-15 02:46:47 Re: Auto-formatting timestamps?
Previous Message Peter Koczan 2008-05-14 15:46:09 Re: Auto-formatting timestamps?