pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedTime Type
4+ messages / 3 participants
[nested] [flat]
* Time Type
@ 2008-07-28 18:16 Rafael Domiciano <rafael.domiciano@gmail.com>
2008-07-28 18:28 ` Re: Time Type Kenneth Marshall <ktm@rice.edu>
2008-07-29 03:42 ` Re: Time Type Lennin Caro <lennin.caro@yahoo.com>
0 siblings, 2 replies; 4+ messages in thread
From: Rafael Domiciano @ 2008-07-28 18:16 UTC (permalink / raw)
To: pgsql-admin
Hi there,
I'm trying to do some as following and I couldn't:
select '00:01:00'::time + '00:10:00'::time
ERROR: operator is not unique: time without time zone + time without time
zone at character 127
HINT: Could not choose a best candidate operator. You might need to add
explicit type casts.
Postgres version: 8.3.3
Anyone knows anything?
Regards,
Rafael Domiciano
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Time Type
2008-07-28 18:16 Time Type Rafael Domiciano <rafael.domiciano@gmail.com>
@ 2008-07-28 18:28 ` Kenneth Marshall <ktm@rice.edu>
2008-07-28 18:46 ` Re: Time Type Rafael Domiciano <rafael.domiciano@gmail.com>
1 sibling, 1 reply; 4+ messages in thread
From: Kenneth Marshall @ 2008-07-28 18:28 UTC (permalink / raw)
To: Rafael Domiciano <rafael.domiciano@gmail.com>; +Cc: pgsql-admin
What exactly are you hoping for? I do not think that adding two
times makes sense. Maybe you want one to be an interval?
Ken
On Mon, Jul 28, 2008 at 03:16:12PM -0300, Rafael Domiciano wrote:
> Hi there,
>
> I'm trying to do some as following and I couldn't:
> select '00:01:00'::time + '00:10:00'::time
> ERROR: operator is not unique: time without time zone + time without time
> zone at character 127
> HINT: Could not choose a best candidate operator. You might need to add
> explicit type casts.
>
> Postgres version: 8.3.3
>
> Anyone knows anything?
>
> Regards,
>
> Rafael Domiciano
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Time Type
2008-07-28 18:16 Time Type Rafael Domiciano <rafael.domiciano@gmail.com>
2008-07-28 18:28 ` Re: Time Type Kenneth Marshall <ktm@rice.edu>
@ 2008-07-28 18:46 ` Rafael Domiciano <rafael.domiciano@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Rafael Domiciano @ 2008-07-28 18:46 UTC (permalink / raw)
To: Kenneth Marshall <ktm@rice.edu>; +Cc: pgsql-admin
I'm doing the following SQL and i getting error:
SELECT
flc.cod_fila_negociacao,
1 AS ordem
FROM cbrflcfila_cobranca flc
WHERE
flc.num_prioridade = 0 AND
flc.hor_distribuicao +
( SELECT pac.num_tempo_espera_urgente
FROM cbrpacparametro_cobranca pac
)
<= CURRENT_TIME
I need to get a time to do a condition.
I couldn't do the SQL
2008/7/28 Kenneth Marshall <ktm@rice.edu>
> What exactly are you hoping for? I do not think that adding two
> times makes sense. Maybe you want one to be an interval?
>
> Ken
>
> On Mon, Jul 28, 2008 at 03:16:12PM -0300, Rafael Domiciano wrote:
> > Hi there,
> >
> > I'm trying to do some as following and I couldn't:
> > select '00:01:00'::time + '00:10:00'::time
> > ERROR: operator is not unique: time without time zone + time without
> time
> > zone at character 127
> > HINT: Could not choose a best candidate operator. You might need to add
> > explicit type casts.
> >
> > Postgres version: 8.3.3
> >
> > Anyone knows anything?
> >
> > Regards,
> >
> > Rafael Domiciano
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Time Type
2008-07-28 18:16 Time Type Rafael Domiciano <rafael.domiciano@gmail.com>
@ 2008-07-29 03:42 ` Lennin Caro <lennin.caro@yahoo.com>
1 sibling, 0 replies; 4+ messages in thread
From: Lennin Caro @ 2008-07-29 03:42 UTC (permalink / raw)
To: pgsql-admin; Rafael Domiciano <rafael.domiciano@gmail.com>
you try to do something like this
select '00:01'::time + interval '10 minutes'
--- On Mon, 7/28/08, Rafael Domiciano <rafael.domiciano@gmail.com> wrote:
> From: Rafael Domiciano <rafael.domiciano@gmail.com>
> Subject: [ADMIN] Time Type
> To: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.org>
> Date: Monday, July 28, 2008, 6:16 PM
> Hi there,
>
> I'm trying to do some as following and I couldn't:
> select '00:01:00'::time + '00:10:00'::time
> ERROR: operator is not unique: time without time zone +
> time without time
> zone at character 127
> HINT: Could not choose a best candidate operator. You
> might need to add
> explicit type casts.
>
> Postgres version: 8.3.3
>
> Anyone knows anything?
>
> Regards,
>
> Rafael Domiciano
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2008-07-29 03:42 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-28 18:16 Time Type Rafael Domiciano <rafael.domiciano@gmail.com>
2008-07-28 18:28 ` Kenneth Marshall <ktm@rice.edu>
2008-07-28 18:46 ` Rafael Domiciano <rafael.domiciano@gmail.com>
2008-07-29 03:42 ` Lennin Caro <lennin.caro@yahoo.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