Re: Stalled post to pgsql-sql

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: sergey kapustin <kapustin(dot)sergey(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Stalled post to pgsql-sql
Date: 2009-12-09 10:33:54
Message-ID: 162867790912090233v51216e31ic413df09b4740375@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

hello
postgres=# create table foo(a timestamp(0));
CREATE TABLE
Time: 111,105 ms
postgres=# insert into foo values(now());
INSERT 0 1
Time: 1,292 ms
postgres=# select now(), a from foo;
now | a
-------------------------------+---------------------
2009-12-09 11:33:22.746217+01 | 2009-12-09 11:33:12
(1 row)

Time: 21,010 ms

regards
Pavel Stehule

2009/12/9 sergey kapustin <kapustin(dot)sergey(at)gmail(dot)com>:
> Hello,
> I need a type that will store date and time, but without seconds and
> microseconds (like timestamp does). At least without microseconds.
> I also need all the operators to work.
> Is this possible with one of existing date/time types or i need to create my
> own?
>
> Thank you!
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message aymen marouani 2009-12-09 13:10:36 SQL state 58P01 triggered by a database script execution
Previous Message sergey kapustin 2009-12-09 10:30:44 Re: Stalled post to pgsql-sql