Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..
Дата
Msg-id 27030.1244694866@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..  (Rushabh Lathia <rushabh.lathia@gmail.com>)
Список pgsql-hackers
Rushabh Lathia <rushabh.lathia@gmail.com> writes:
> I thought when we are providing the different format into to_char for
> datetime then  standard datetime input converters should also have the
> capability to read that format.

to_char is designed to support a near-infinite number of output formats,
including many that are necessarily ambiguous.  There is no intention
whatsoever that they all be readable by the input converters.

It might or might not be useful to adjust the input converters to read
the specific format you chose.  But "to_char produced it" is simply not
an interesting argument in favor of that.
        regards, tom lane


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

Предыдущее
От: Rushabh Lathia
Дата:
Сообщение: Re: Getting error while trying to insert date with the format 'dd-month-yyyy' , 'day-mm-yyyy' etc..
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgindent run coming