BUG #12782: Some abnormal observation about the to_date() function in greenplum database

From: patl659in(at)rediffmail(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #12782: Some abnormal observation about the to_date() function in greenplum database
Date: 2015-02-18 15:45:51
Message-ID: 20150218154551.8730.30214@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 12782
Logged by: Rahul Patil
Email address: patl659in(at)rediffmail(dot)com
PostgreSQL version: Unsupported/Unknown
Operating system: RHEL 6 64 bit
Description:

Grennplum 4.3 64 bit

Incorrect output for to_date function
TESTDB=# select to_date('22-09-1990', 'MM-DD-YYYY');
to_date
------------
1991-10-11
(1 row)

Different output for same current_date function but with different format
TESTDB=# select to_date(current_date,'yyyy-mm-dd');
to_date
------------
2015-02-12
(1 row)
TESTDB=# select to_date(current_date,'dd-mm-yyyy');
to_date
------------
0017-08-07
(1 row)

Date without quote
TESTDB=# select to_date(06-06-3338,'DD-MM-YYYY');
to_date
---------------
0011-11-10 BC
(1 row)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-02-18 16:45:13 Re: BUG #12779: pg_dump -Fd doesn't care about -Z
Previous Message Christoph Berg 2015-02-18 09:17:12 Re: BUG #12779: pg_dump -Fd doesn't care about -Z