Re: server crash in to_timestamp function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ibrar Ahmed" <ibrar(dot)ahmad(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: server crash in to_timestamp function
Date: 2008-11-11 13:28:43
Message-ID: 14814.1226410123@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Ibrar Ahmed" <ibrar(dot)ahmad(at)gmail(dot)com> writes:
> While looking at the code base I have encountered a server crash in
> to_timestamp function.

> select TO_TIMESTAMP ( '2006 1', 'YYYY Q' );
> server closed the connection unexpectedly

Looks like Heikki fixed this yesterday. It works here:

regression=# select TO_TIMESTAMP ( '2006 1', 'YYYY Q' );
to_timestamp
------------------------
2006-01-01 00:00:00-05
(1 row)

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2008-11-11 13:30:39 Re: db_user_namespace, md5 and changing passwords
Previous Message Richard Huxton 2008-11-11 13:27:03 Re: Very slow queries w/ NOT IN preparation (seems like a bug, test case)