Re: Blank, nullable date column rejected by psql

Поиск
Список
Период
Сортировка
Искать
От
Rich Shepard
Тема
Re: Blank, nullable date column rejected by psql
Дата
Msg-id
alpine.LNX.2.20.1902120538510.15295@salmo.appl-ecosys.com
Ответ на
Список
Дерево обсуждения
Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Tom Lane <tgl@sss.pgh.pa.us>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Ron <ronljohnsonjr@gmail.com>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Ron <ronljohnsonjr@gmail.com>
Re: Blank, nullable date column rejected by psql Laurenz Albe <laurenz.albe@cybertec.at>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Adrian Klaver <adrian.klaver@aklaver.com>
Re: Blank, nullable date column rejected by psql Ron <ronljohnsonjr@gmail.com>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Ken Tanzer <ken.tanzer@gmail.com>
Re: Blank, nullable date column rejected by psql Rich Shepard <rshepard@appl-ecosys.com>
Re: Blank, nullable date column rejected by psql Ken Tanzer <ken.tanzer@gmail.com>
Re: Blank, nullable date column rejected by psql "David G. Johnston" <david.g.johnston@gmail.com>
On Tue, 12 Feb 2019, Laurenz Albe wrote:

> If you insert a string into a "date" column, PostgreSQL will try to
> convert the string to a date with the type input function. The type input
> function fails on an empty string, since it cannot parse it into a valid
> "date" value. This also applies to the empty string.

Laurenz,

All my previous databases with date columns were required to have an entry
because each row contatined spatio-temporal sampling data. The table in this
business-oriented application is not required to have a next_contact date
and (the crucial point) is that I conflated date values with string values.
As you wrote, a date column is converted from the entered string to a
non-string date type and requires an explicit null when there is no value to
be stored for that column.

Thanks very much,

Rich

В списке pgsql-general по дате отправления
От: github kran
Дата:
От: Tom Lane
Дата:
FAQ