Re: WIP: to_char, support for EEEE format - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP: to_char, support for EEEE format
Date
Msg-id 3199.1249918346@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
Responses Re: WIP: to_char, support for EEEE format  (Brendan Jurd <direvus@gmail.com>)
List pgsql-hackers
Brendan Jurd <direvus@gmail.com> writes:
> 2009/8/11 Tom Lane <tgl@sss.pgh.pa.us>:
>> If we expose it at fmgr level it should definitely not return cstring.
>> However, I wasn't foreseeing doing that --- does the submitted patch
>> expose it?

> Sorry, I'm a little hazy on the terminology here.  If by "expose it at
> fmgr level" you mean did I add it to pg_proc, then no, I didn't.

OK.

> The function is declared in builtins.h as "extern Datum
> numeric_out_sci(PG_FUNCTION_ARGS);", and called from formatting.c
> using the  DirectFunctionCall arrangement.

If it's not meant to be in pg_proc, I wouldn't bother with using the V1
call protocol for it.  "extern char *numeric_out_sci(Numeric x)" would
be sufficient, and less notation on both caller and callee sides.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] "could not reattach to shared memory" on Windows
Next
From: Dave Page
Date:
Subject: Re: [PATCH] "could not reattach to shared memory" on Windows