Now() in a function

From: "sTesting" <stesting(at)hotmail(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: Now() in a function
Date: 2003-11-06 22:43:17
Message-ID: Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

I have a big problem, i wrote a very long function that is taking so much time. inside this function i added few debugging steps to find which section is taking most of the time, but all the created records have the same time in them, the time where the fuction begins.
I tried to different methods:
INSERT INTO f_error (error_id, creation_date)
VALUES (nextval(''s_f_error_id''), now());

INSERT INTO f_error (error_id, creation_date)
VALUES (nextval(''s_f_error_id''), ''now'');

Tanks in advance for your help.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Gaetano Mendola 2003-11-06 23:19:12 Re: Now() in a function
Previous Message Franco Bruno Borghesi 2003-11-06 17:52:00 Re: [HACKERS] What's wrong with this group by clause?