pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: bangh <banghe@baileylink.net>
Cc: Joel Burton <jburton@scw.org>
Cc: Jeremy Buchmann <jeremy@wellsgaming.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above
Date: Mon, 30 Apr 2001 11:50:20 -0400
Message-ID: <15284.988645820@sss.pgh.pa.us> (raw)
In-Reply-To: <3A9FC432.37B6930E@baileylink.net>
References: <Pine.LNX.4.21.0104251315310.4877-100000@olympus.scw.org>
	<3A9FC432.37B6930E@baileylink.net>

bangh <banghe@baileylink.net> writes:
> while if you use type timestamp, instead of datetime
> timestampField = timestampField - '30minutes'::interval
>  you will get error msg.:
> No such function 'datetime_stamp' with the specified attributes

I see no such problem in either 7.0 or 7.1 ...

regression=# create table foo1 (f1 timestamp);
CREATE
regression=# insert into foo1 values(now());
INSERT 832069 1
regression=# update foo1 set f1 = f1 - '30minutes'::interval;
UPDATE 1
regression=#

			regards, tom lane



view thread (3+ messages)

Message-ID: <15284.988645820@sss.pgh.pa.us>
Permalink:  ../15284.988645820@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15284.988645820@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, banghe@baileylink.net, jburton@scw.org, jeremy@wellsgaming.com
  Subject: Re: datetimeField = datetimeField - '30minutes'::timespan in psql 7.0 or above
  In-Reply-To: <15284.988645820@sss.pgh.pa.us>
  References: <Pine.LNX.4.21.0104251315310.4877-100000@olympus.scw.org> <3A9FC432.37B6930E@baileylink.net> <15284.988645820@sss.pgh.pa.us>

* 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