pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jaka Erjavec <jaka.erjavec@voljatel.si>
To: pgsql-general@postgresql.org
Subject: to_timestamp function
Date: Mon, 23 Jun 2003 11:12:20 +0200
Message-ID: <200306231112.20668.jaka.erjavec@voljatel.si> (raw)

Hello,

I managed to establish postgresql support for accounting  in Freeradius. It is 
logging all of the radius attributes (including Cisco h323) in the database, 
but the problem is that all this h323 Cisco attributes are set to type 
string. 
I found this postgresql function called to_timestamp(), which should be able 
to convert string in to date. The problem is that Cisco's time format 
(13:17:22.670 CET Fri Jun 20 2003) somehow does not get completely recognized 
when using the function in the following way:

radius=# select to_timestamp('13:17:22.670 CET Fri Jun 20 2003','HH24:MI TZ 
Day Mon DD YYYY');
ERROR:  to_timestamp(): TZ/tz not supported.


So, the question is, what am I doing wrong or is there some bug in this 
function.

postgresql version:
radius=# select version();
                               version
---------------------------------------------------------------------
 PostgreSQL 7.2.4 on i386-portbld-freebsd4.8, compiled by GCC 2.95.4
(1 row)


Thank you!

Jaka



view thread (3+ messages)  latest in thread

Message-ID: <200306231112.20668.jaka.erjavec@voljatel.si>
Permalink:  ../200306231112.20668.jaka.erjavec@voljatel.si/
Also on:    postgresql.org/message-id/200306231112.20668.jaka.erjavec@voljatel.si

 · 

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-general@postgresql.org
  Cc: jaka.erjavec@voljatel.si
  Subject: Re: to_timestamp function
  In-Reply-To: <200306231112.20668.jaka.erjavec@voljatel.si>
  References: <200306231112.20668.jaka.erjavec@voljatel.si>

* 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