Re: [SQL] now() with microsecond granulity needed

2001-02-22 Thread Radoslaw Stachowiak
*** Tom Lane <[EMAIL PROTECTED]> [Wednesday, 21.February.2001, 16:55 -0500]: > Hmm, exactly what I was thinking of, except that it returns a text > rather than a timestamp (a strange choice...). But it's implicit casted to timestamp type so i think is good choice to use in DEFAULT clause at this

Re: [SQL] now() with microsecond granulity needed

2001-02-21 Thread Tom Lane
Daniel Wickstrom <[EMAIL PROTECTED]> writes: > the timeofday function seems to work: Hmm, exactly what I was thinking of, except that it returns a text rather than a timestamp (a strange choice...). It seems a little buggy as well because the formatting of the microseconds part is wrong --- will

Re: [SQL] now() with microsecond granulity needed

2001-02-21 Thread Daniel Wickstrom
> "Radoslaw" == Radoslaw Stachowiak <[EMAIL PROTECTED]> writes: Radoslaw> *** Tom Lane <[EMAIL PROTECTED]> [Tuesday, Radoslaw> 20.February.2001, 11:57 -0500]: >> > using now() to init TIMESTAMP fields I got resolution of one >> second. How > can I define DEFAULT in column (TIM

Re: [SQL] now() with microsecond granulity needed

2001-02-21 Thread Radoslaw Stachowiak
*** Tom Lane <[EMAIL PROTECTED]> [Tuesday, 20.February.2001, 11:57 -0500]: > > using now() to init TIMESTAMP fields I got resolution of one second. How > > can I define DEFAULT in column (TIMESTAMP type) to get higher > > time-resolution (TIMESTAMP supports microseconds). > > You could make a var

Re: [SQL] now() with microsecond granulity needed

2001-02-20 Thread Tom Lane
Radoslaw Stachowiak <[EMAIL PROTECTED]> writes: > using now() to init TIMESTAMP fields I got resolution of one second. How > can I define DEFAULT in column (TIMESTAMP type) to get higher > time-resolution (TIMESTAMP supports microseconds). You could make a variant of now() that relies on gettimeo

[SQL] now() with microsecond granulity needed

2001-02-20 Thread Radoslaw Stachowiak
Hello! using now() to init TIMESTAMP fields I got resolution of one second. How can I define DEFAULT in column (TIMESTAMP type) to get higher time-resolution (TIMESTAMP supports microseconds). Please CC the answer to me. -- radoslaw.stachowiak.http://alt