From: Pavel Stehule <pavel.stehule@gmail.com>
To: sergey kapustin <kapustin.sergey@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Stalled post to pgsql-sql
Date: Wed, 9 Dec 2009 11:33:54 +0100
Message-ID: <162867790912090233v51216e31ic413df09b4740375@mail.gmail.com> (raw)
In-Reply-To: <cf82f1380912090230t17adb356r94cb93573218ae6e@mail.gmail.com>
References: <e2ced4f5b84ee45bb828fd781fe1d3a835be4413@postgresql.org>
<cf82f1380912090230t17adb356r94cb93573218ae6e@mail.gmail.com>
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.sergey@gmail.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!
>
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: pavel.stehule@gmail.com, kapustin.sergey@gmail.com
Subject: Re: Stalled post to pgsql-sql
In-Reply-To: <162867790912090233v51216e31ic413df09b4740375@mail.gmail.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