Skip site navigation (1) Skip section navigation (2)

Re: WIP: to_char, support for EEEE format

From: Brendan Jurd <direvus(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WIP: to_char, support for EEEE format
Date: 2009-04-26 01:38:22
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On Sat, Apr 11, 2009 at 3:51 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> So, please, if you can, propose these error messages (with hints)-
> result will be much better.

Hi Pavel, hackers.

I've done some work updating Pavel's sci notation patch for to_char().
 I've attached a patch against HEAD (EEEE_2.diff.bz2) and against
Pavel's patch as originally submitted to the list

A summary of my changes:

 * Improve the wording of error messages, and add some detail/hint parts.
 * Update the documentation.
 * Move the duplicated "one digit before decimal point" test into a macro.
 * Fix a bug in the int8_to_char() implementation (was using the wrong

Hope you find this useful.


Attachment: EEEE_2.diff.bz2
Description: application/x-bzip2 (3.2 KB)
Attachment: EEEE_1-to-2.diff.bz2
Description: application/x-bzip2 (2.4 KB)

In response to


pgsql-hackers by date

Next:From: Robert HaasDate: 2009-04-26 01:49:23
Subject: Re: HashJoin w/option to unique-ify inner rel
Previous:From: David FetterDate: 2009-04-26 00:39:07
Subject: Re: Randomly placed definition of S_ISDIR() inpsql/copy.c

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group