Re: Implementation of Date/Time Input Interpretation

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Francis Markham <fmarkham(at)gmail(dot)com>
Cc: Dann Corbit <DCorbit(at)connx(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Implementation of Date/Time Input Interpretation
Date: 2010-06-23 02:46:48
Message-ID: 4C217598.3020809@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Francis Markham wrote:
> Thank you for your prompt reply.
>
>
>> What is it exactly that you are trying to accomplish?
>>
>
> I want to be able to, from my own script, determine if postgres will
> be able to interpret a string as a date or time. If you can suggest a
> better way of accomplishing this beyond reimplementing your algorithm
> I would be happy to hear it!
>
>

Call the appropriate input function in plpgsql and trap a data
exception? These routines are going to be quite hard to mimic, I
suspect. Getting postgres to do the work for you is probably a better
way to go if you can.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dann Corbit 2010-06-23 03:58:26 Re: Implementation of Date/Time Input Interpretation
Previous Message Chris 2010-06-23 02:41:13 testing plpython3u on 9.0beta2