Re: [GENERAL] Question about copy from with timestamp format

2015-08-05 Thread Murali M
Hi everyone, First of all, let me thank all of you for the very informative discussion. I will say my solution was to declare the field MMDDHH24 as int (can handle till Dec 31, 2147, Hr23 -- which will be 2147123123). Also this way, I can still use between etc to select a range of dates.. of c

Re: [GENERAL] Question about copy from with timestamp format

2015-07-29 Thread Murali M
How do I specify that when I use copy from? this is what I am trying right now.. copy myTable (myTimeCol, col2) from myFile delimiter as '\t' I am not sure how to specify the time format.. thanks, murali. On Wed, Jul 29, 2015 at 3:49 PM, Adrian Klaver wrote: > On 07/29/2015 03:

[GENERAL] Question about copy from with timestamp format

2015-07-29 Thread Murali M
Hi, I wanted to copy a file from local file system to postgres. I have timestamp value specified as: MMDDHH24 format -- for example: 2015072913 -- is July 29, 2015 at 13:00 how do I import this data into a timestamp field? thanks, murali. PS: I believe if I need the hour, I need to use time