From: Trewern, Ben <Ben.Trewern@mowlem.com>
To: pgsql-sql@postgresql.org
Subject: RE: to_char() causes backend to close connection
Date: Thu, 14 Dec 2000 16:02:20 -0000
Message-ID: <996802F75C3CD411B424001083FA445B05950A@CET_PONXX_FP001> (raw)
select to_char(now()-'5 minutes'::interval,'YYMMDDHH24MI') seems to work
Ben
> -----Original Message-----
> From: Kovacs Zoltan Sandor [mailto:tip@pc10.radnoti-szeged.sulinet.hu]
> Sent: 14 December 2000 15:49
> To: Karel Zak
> Cc: pgsql-sql@postgresql.org
> Subject: Re: [SQL] to_char() causes backend to close connection
>
>
> > A problem (IMHO it's not problem) with 'now()::abstime' is
> in 7.1 too.
> > But why you not use directly now()?
> My aim is to get this format for the time '5 minutes ago'. So I need
> something like
>
> select to_char(now()-'5 minutes','YYMMDDHH24MI')
>
> but this doesn't work due to the missing type conversion.
>
> Any idea? TIA, Zoltan
>
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-sql@postgresql.org
Cc: Ben.Trewern@mowlem.com
Subject: Re: to_char() causes backend to close connection
In-Reply-To: <996802F75C3CD411B424001083FA445B05950A@CET_PONXX_FP001>
References: <996802F75C3CD411B424001083FA445B05950A@CET_PONXX_FP001>
* 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