REATE OR REPLACE FUNCTION "public"."report" (date, time) RETURNS integer AS
$body$
<>
DECLARE
_date_in ALias For $1;
_time_in ALias For $2;
_DTime_Beg_Day timestamp;
_DTime_End timestamp;
_DTime_Beg_Mon timestamp;
_Plan_Day Real :=0.1;
_Plan_Mon Real :=0.1;
_mon integer :=1;
_Year integer :=1;
_Day integer :=1;
_Record public.report_obor%rowtype;
_day_of_mon INTEGER :=1;
BEGIN
_DTime_Beg_Day:=TIMESTAMP(_date_in,_time_in);
не получается так
http://postgresql.ru.net/manu
http://postgresql.ru.net/manual/functions-datetime.html