Re: create c function with void argument bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: create c function with void argument bug?
Дата
Msg-id 10858.1287876723@sss.pgh.pa.us
обсуждение исходный текст
Ответ на create c function with void argument bug?  ("A.M." <agentm@themactionfaction.com>)
Список pgsql-hackers
"A.M." <agentm@themactionfaction.com> writes:
> It seems that this:
> CREATE OR REPLACE FUNCTION test_fsync_speed() RETURNS float AS '$libdir/test_fsync_speed','\
> test_fsync_speed' LANGUAGE C IMMUTABLE STRICT;

> is not equivalent to this (note "void" argument):

> CREATE OR REPLACE FUNCTION test_fsync_speed(void) RETURNS float AS '$libdir/test_fsync_speed','\
> test_fsync_speed' LANGUAGE C IMMUTABLE STRICT;

Why would you think it would be?  "void" in SQL doesn't act the same way
as "void" in C, it's an actual type.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WIP: extensible enums
Следующее
От: Robert Haas
Дата:
Сообщение: Re: WIP: extensible enums