Re: Implementation of Date/Time Input Interpretation

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Implementation of Date/Time Input Interpretation
Дата
Msg-id 4C217598.3020809@dunslane.net
обсуждение исходный текст
Ответ на Re: Implementation of Date/Time Input Interpretation  (Francis Markham <fmarkham@gmail.com>)
Ответы Re: Implementation of Date/Time Input Interpretation  (Dann Corbit <DCorbit@connx.com>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Chris
Дата:
Сообщение: testing plpython3u on 9.0beta2
Следующее
От: Dann Corbit
Дата:
Сообщение: Re: Implementation of Date/Time Input Interpretation