pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sTesting <stesting@hotmail.com>
To: pgsql-sql@postgresql.org
Subject: Now() in a function
Date: Fri, 7 Nov 2003 09:43:17 +1100
Message-ID: <Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com> (raw)

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.

view thread (2+ messages)  latest in thread

Message-ID: <Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com>
Permalink:  ../Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com/
Also on:    postgresql.org/message-id/Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: stesting@hotmail.com
  Subject: Re: Now() in a function
  In-Reply-To: <Sea1-DAV35ZvgK27nKz00012c5b@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox