pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[Fwd: help building datetime from varchars]
3+ messages / 3 participants
[nested] [flat]

* [Fwd: help building datetime from varchars]
@ 2004-05-04 13:01 Shane D. <shane.dawalt@wright.edu>
  2004-05-05 13:22 ` Mail delays (was Re: [Fwd: help building datetime from varchars]) Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Shane D. @ 2004-05-04 13:01 UTC (permalink / raw)
  To: pgsql-general


  I have tried contacting the list owner, but nobody responds so I  am 
knowingly sending administrative mail to the list.  Sorry folks.

  For months, particularly since February, I have been receiving e-mail 
that is out-of-date.  Since they are relatively old (weeks to months) I 
cannot say whether or not they are duplicates. A copy of such an e-mail 
I just received this morning is attached along its headers.  Note that 
postgresql.org received it on 27 Apr and that it was relayed to my mail 
server within the last 24 hours (May 3 at 11:54pm GMT-4 to be exact).  
Why does this happen and can't it be made to stop?  (And I'm not picking 
on Brent.  His is just one of 8 messages I received this morning from 
the month of April.)

  Shane

-------- Original Message --------
Return-path: 
<pgsql-general-owner+M60495=shane.dawalt=wright.edu@postgresql.org>
Received: 	from conversion-daemon.sms1.wright.edu by sms1.wright.edu 
(iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) id 
<0HX600C01AXW17@sms1.wright.edu> for shane.dawalt@wright.edu; Tue, 04 
May 2004 00:55:40 -0400 (EDT)
Received: 	from avs1.wright.edu (avs1.wright.edu [130.108.128.93]) by 
sms1.wright.edu (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 
2003)) with ESMTP id <0HX600NSNB0S2W@sms1.wright.edu> for 
shane.dawalt@wright.edu; Tue, 04 May 2004 00:55:40 -0400 (EDT)
Received: 	from CONVERSION-DAEMON.avs1.wright.edu by avs1.wright.edu 
(PMDF V6.2-X27 #30758) id <0HX600J01B0S8Q@avs1.wright.edu> for 
shane.dawalt@wright.edu; Tue, 04 May 2004 00:55:40 -0400 (EDT)
Received: 	from zippy.ims.net (zippy.ims.net [208.166.202.2]) by 
avs1.wright.edu (PMDF V6.2-X27 #30758) with ESMTP id 
<0HX600E7XB0SPC@avs1.wright.edu> for shane.dawalt@wright.edu; Tue, 04 
May 2004 00:55:40 -0400 (EDT)
Received: 	from postgresql.org (svr1.postgresql.org [200.46.204.71]) by 
zippy.ims.net (8.11.6/linuxconf) with ESMTP id i444s9B02154 for 
<shane.dawalt@wright.edu>; Mon, 03 May 2004 23:54:22 -0500
Received: 	from localhost (unknown [200.46.204.2]) by 
svr1.postgresql.org (Postfix) with ESMTP id 49B76D1B50C for 
<pgsql-general-postgresql.org@localhost.postgresql.org>; Tue, 27 Apr 
2004 23:15:48 -0300 (ADT)
Received: 	from svr1.postgresql.org ([200.46.204.71]) by localhost 
(neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 
25085-03 for <pgsql-general-postgresql.org@localhost.postgresql.org>; 
Tue, 27 Apr 2004 23:15:50 -0300 (ADT)
Received: 	from clam.niwa.co.nz (clam.niwa.cri.nz [202.36.29.1]) by 
svr1.postgresql.org (Postfix) with ESMTP id BFB03D1B448 for 
<pgsql-general@postgresql.org>; Tue, 27 Apr 2004 23:15:43 -0300 (ADT)
Received: 	from storm.niwa.co.nz (storm.niwa.co.nz [192.168.59.10]) by 
clam.niwa.co.nz (8.12.3p3/8.12.3) with ESMTP id i3S2FjSb092102 for 
<pgsql-general@postgresql.org>; Wed, 28 Apr 2004 14:15:46 +1200 (NZST 
envelope-from b.wood@niwa.co.nz)
Received: 	from localhost (woodb@localhost) by storm.niwa.co.nz 
(8.11.6/8.11.6) with ESMTP id i3S2Fjc55463 for 
<pgsql-general@postgresql.org>; Wed, 28 Apr 2004 14:15:45 +1200
Date: 	Wed, 28 Apr 2004 14:15:45 +1200 (NZST)
From: 	Brent Wood <b.wood@niwa.co.nz>
Subject: 	[GENERAL] help building datetime from varchars
In-reply-to: 	<Pine.LNX.4.44.0404280159270.18160-100000@emo.org.tr>
Sender: 	pgsql-general-owner@postgresql.org
To: 	pgsql-general@postgresql.org
Message-id: 	<20040428130718.R51170-100000@storm.niwa.co.nz>
MIME-version: 	1.0
Content-type: 	TEXT/PLAIN; charset=US-ASCII
Precedence: 	bulk
X-Original-To: 	pgsql-general-postgresql.org@localhost.postgresql.org
X-Scanned-By: 	MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang)
X-Virus-Scanned: 	by amavisd-new at postgresql.org
X-Spam-Status: 	No, hits=0.0 tagged_above=0.0 required=5.0 tests=
X-Spam-Level: 	
X-Mailing-List: 	pgsql-general
Original-recipient: 	rfc822;shane.dawalt@wright.edu



Hopefully someone can point me in the proper direction....

I have a table containg (amongst others) two varchar attrs date_s &
time_s.

They contain strings like:

   date_s   |  time_s
------------+----------
 01/10/1989 | 00:30:00

Can someone suggest an sql to turn these into a single datetime?




I have tried the following with results I don't understand:

env2003=# select date_s || time_s, to_timestamp(date_s || time_s,'DD/MM/YYYYHH:MM:SS') from event limit 1;
      ?column?      |      to_timestamp
--------------------+------------------------
 01/10/198900:30:00 | 1991-06-05 00:00:00+12
(1 row)

env2003=# select date_s || ' ' || time_s, to_timestamp(date_s || ' ' || time_s,'DD/MM/YYYY HH:MM:SS') from event limit 1;
      ?column?       |      to_timestamp
---------------------+------------------------
 01/10/1989 00:30:00 | 1991-06-05 00:00:00+12
(1 row)



Thanks,

   Brent Wood


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Mail delays (was Re: [Fwd: help building datetime from varchars])
  2004-05-04 13:01 [Fwd: help building datetime from varchars] Shane D. <shane.dawalt@wright.edu>
@ 2004-05-05 13:22 ` Tom Lane <tgl@sss.pgh.pa.us>
  2004-05-05 14:54   ` Re: Mail delays (was Re: [Fwd: help building datetime from varchars]) Steve Atkins <steve@blighty.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2004-05-05 13:22 UTC (permalink / raw)
  To: Shane D. <shane.dawalt@wright.edu>; +Cc: pgsql-general

"Shane D." <shane.dawalt@wright.edu> writes:
>   For months, particularly since February, I have been receiving e-mail 
> that is out-of-date.

The particular example you show is not anything out of the ordinary:
it looks to me like it's a nonmember submission that Marc didn't get
around to approving for several days.  The only solution would be to
volunteer to help moderate the lists ...

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Mail delays (was Re: [Fwd: help building datetime from varchars])
  2004-05-04 13:01 [Fwd: help building datetime from varchars] Shane D. <shane.dawalt@wright.edu>
  2004-05-05 13:22 ` Mail delays (was Re: [Fwd: help building datetime from varchars]) Tom Lane <tgl@sss.pgh.pa.us>
@ 2004-05-05 14:54   ` Steve Atkins <steve@blighty.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Steve Atkins @ 2004-05-05 14:54 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Shane D. <shane.dawalt@wright.edu>; pgsql-general

On Wed, May 05, 2004 at 09:22:58AM -0400, Tom Lane wrote:

> "Shane D." <shane.dawalt@wright.edu> writes:
> >   For months, particularly since February, I have been receiving e-mail 
> > that is out-of-date.
> 
> The particular example you show is not anything out of the ordinary:
> it looks to me like it's a nonmember submission that Marc didn't get
> around to approving for several days.  The only solution would be to
> volunteer to help moderate the lists ...

There are a lot of duplicate emails on the postgresql lists, both two
copies sent at the same time and (I think, less often) mails being
resent after some time.

I'd assumed it was a known problem.

grep Message-ID Mail/pgsql-general | sort | uniq -c | sort -nr | head -15
      7 Message-ID: 
      2 Message-ID: <slrnc8fsnl.soo.rmunn@rmunnlfs.dyndns.org>
      2 Message-ID: <Pine.LNX.4.44.0404281122420.12294-100000@emo.org.tr>
      2 Message-ID: <Pine.LNX.4.33.0403021406090.4475-100000@css120.ihs.com>
      2 Message-ID: <Pine.BSO.4.56.0404261333510.26968@leary.csoft.net>
      2 Message-ID: <OF539ADD90.E493F3D8-ONC1256E4C.00449B72-C1256E4C.00449C9C@beauchamp.loxane.fr>
      2 Message-ID: <NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de>
      2 Message-ID: <E1CF34F4AA445E47990786EEED7BE6DC603AEE@ems9.uwsp.edu>
      2 Message-ID: <D90A5A6C612A39408103E6ECDD77B829408D6D@voyager.corporate.connx.com>
      2 Message-ID: <c9ke9015ilkb530p9tj5tte2c4fu1fe51o@email.aon.at>
      2 Message-ID: <BCB93AEE.1052D%hierophant@pcisys.net>
      2 Message-ID: <BCB28CE1.46823%scott_ribe@killerbytes.com>
      2 Message-ID: <BAY17-F42gPasSmz6Uu000e5795@hotmail.com>
      2 Message-ID: <871xoceat5.fsf@stark.xeocode.com>
      2 Message-ID: <71E37EF6B7DCC1499CEA0316A256832801057916@loki.wc.globexplorer.net>

I'm happy to provide more data if needed.

Cheers,
  Steve



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-05-05 14:54 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-05-04 13:01 [Fwd: help building datetime from varchars] Shane D. <shane.dawalt@wright.edu>
2004-05-05 13:22 ` Mail delays (was Re: [Fwd: help building datetime from varchars]) Tom Lane <tgl@sss.pgh.pa.us>
2004-05-05 14:54   ` Re: Mail delays (was Re: [Fwd: help building datetime from varchars]) Steve Atkins <steve@blighty.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox