Re: Working with dates before 4713 BC
От | Phillip Smith |
---|---|
Тема | Re: Working with dates before 4713 BC |
Дата | |
Msg-id | 00d401c8af18$896431e0$9b0014ac@wbaus090 обсуждение исходный текст |
Ответ на | Re: Working with dates before 4713 BC (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-sql |
> Do you really need microsecond, or even day, resolution in your dates? I wonder if it'd not be good enough to store the year as an integer. Maybe 2 columns: date_col type date = For dates post 4713BC. Set to NULL if ealier than 4713BC. year_col type integer = Store the year from date_col Then write your queries appropriately to look at year_col if date_col IS NULL? THINK BEFORE YOU PRINT - Save paper if you don't really need to print this *******************Confidentiality and Privilege Notice******************* The material contained in this message is privileged and confidential to the addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to such person, you may not copy or deliver this message to anyone, and you should destroy it and kindly notify the sender by reply email. Information in this message that does not relate to the official business of Weatherbeeta must be treated as neither given nor endorsed by Weatherbeeta. Weatherbeeta, its employees, contractors or associates shall not be liable for direct, indirect or consequential loss arising from transmission of this message or any attachments e-mail.
В списке pgsql-sql по дате отправления: