converting datum to numeric

Поиск
Список
Период
Сортировка
От Szymon Guz
Тема converting datum to numeric
Дата
Msg-id CAFjNrYv7_bBWHz8cAXAmeLGw9zJoiWqVp2W8BU4Tz5ivGxeuWQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: converting datum to numeric  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
<div dir="ltr">Hi,<div style="style">I've got a couple of questions.</div><div style="style"><br /></div><div
style="style">Iwas using numeric_out like this:</div><div style="style"><br /></div><div
style="style">DatumGetCString(DirectFunctionCall1(numeric_out,d));<br /></div><div style="style"><br /></div><div
style="style">Whydo I have to use DirectFunctionCall1 instead of calling numeric_out?</div><div style="style"><br
/></div><divstyle="style"><br /></div><div style="style">I was suggested to use numeric_send instead of numeric_out,
howeverwhen changing the function names in the above example, the whole expression returns 8. Always 8. I check
with:</div><divstyle="style"><br /></div><div style="style">char *x = DatumGetCString(DirectFunctionCall1(numeric_send,
d));<br/></div><div style="style">PLy_elog(NOTICE, x).</div><div style="style"><br /></div><div style="style"><br
/></div><divstyle="style">And my main question: is there any documentation about those internal functions, which use
andwhen etc?</div><div style="style"><br /></div><div style="style">thanks</div><div style="style">Szymon</div></div> 

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hari Babu
Дата:
Сообщение: Re: fixing pg_ctl with relative paths
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [RFC] Minmax indexes