Re: BUG #3563: DATESTYLE feature suggestion

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: "Randolf Richardson" <randolf+postgresql(dot)org(at)inter-corporate(dot)com>
Subject: Re: BUG #3563: DATESTYLE feature suggestion
Date: 2007-08-22 18:37:19
Message-ID: 200708222037.20905.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Randolf Richardson wrote:
> After convincing clients and colleagues to switch from Oracle (and
> others) to PostgreSQL, an issue that comes up is the need to
> customize DATESTYLE. Because this isn't possible,

Sure it's possible. You replace the respective data type output
functions with something that calls to_char on the value. You can even
register your own configuration parameter to control the template used
by to_char.

If this is the only thing stopping you from making a major technology
choice, you can have it fixed by dawn.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2007-08-22 23:04:22 Re: pgbench - segmentation fault
Previous Message Ken Colson 2007-08-22 17:29:27 BUG #3571: call to decrypt causes segfault