Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E138D6322A8 for ; Wed, 9 Dec 2009 06:34:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90042-05 for ; Wed, 9 Dec 2009 10:33:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.210.181]) by mail.postgresql.org (Postfix) with ESMTP id 5CBF263220C for ; Wed, 9 Dec 2009 06:33:56 -0400 (AST) Received: by yxe11 with SMTP id 11so5424981yxe.15 for ; Wed, 09 Dec 2009 02:33:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=WG4WWfunl9/64vFtIzXDBhlKosycCC0i3p3ND97kRH0=; b=V1bRXjnjPQt1V0548pnicqU+OtFCTDmg3aQjsrFKng5E1IPdnvtulQtk7RXyYmFV8E VcofQxMYMrKHeNKfagiHqDHNRa8o2YZ3siuq5m8DZ8CYMV2biHQ6b0O3+r39f2gd/P03 POUHl0/utZWGmkF3Nl6J6BJ2OAUNl+Praq79Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=gQDqsfJSVuKjLjLF/RP/RqcDDgWy9mNfZlHuBPb5xCOxa11325PgrU9lrBQb2pqeXh jwbVGBhP/eLRnWCulgwHiB58/+4RxdnNLZmbNlktEFALQvxt/1Bad+98qURa/o9DZnLW HAHkcrpjSZizHo632/PZKJO+4w0+v66Hbihp4= MIME-Version: 1.0 Received: by 10.150.120.42 with SMTP id s42mr16071050ybc.312.1260354834917; Wed, 09 Dec 2009 02:33:54 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Dec 2009 11:33:54 +0100 Message-ID: <162867790912090233v51216e31ic413df09b4740375@mail.gmail.com> Subject: Re: Stalled post to pgsql-sql From: Pavel Stehule To: sergey kapustin Cc: pgsql-sql@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/22 X-Sequence-Number: 33460 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 : > 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! >