Search Postgresql Archives

Re: TO_DATE function between PostgreSQL 8.2 and 9.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/17/22 9:23 AM, John W Higgins wrote:
Good Morning,


Just create the missing function

create function to_date(timestamp with time zone, text) RETURNS text AS
    'SELECT to_date($1::text, $2)::text'
    LANGUAGE SQL
    IMMUTABLE;


That is just kicking the can down the road. What the OP is running into is the tip of the iceberg of the changes not only in 8.3 but the other 6 major versions involved. The time spent trying to create a compatibility layer for this jump and subsequent jumps would be better spent actually making the code current.

John


--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux