how to convert a time interval to seconds? - Mailing list pgsql-novice

From Chansup Byun
Subject how to convert a time interval to seconds?
Date
Msg-id 4506C69D.9030501@sun.com
Whole thread Raw
Responses Re: how to convert a time interval to seconds?
Re: how to convert a time interval to seconds?
List pgsql-novice
Hi,

I searched how to convert a time interval to seconds but failed to find
an example.

I want to convert the following wait_time column into seconds. How can I
do that? The datatype for the wait_time is time without timezone.

 job_number | task_number |   submission_time   | wait_time
------------+-------------+---------------------+-----------
         56 |           0 | 2006-04-13 08:47:53 | 00:01:28
         55 |           0 | 2006-04-13 08:47:51 | 00:01:21
         58 |           0 | 2006-04-13 08:47:54 | 00:01:28
         60 |           0 | 2006-04-13 08:47:55 | 00:01:27

Thanks,

- Chansup


pgsql-novice by date:

Previous
From: "Sree Narayana"
Date:
Subject: Re: Sorry.Problme in my pg_restore command.
Next
From: Michael Fuhr
Date:
Subject: Re: how to convert a time interval to seconds?