Re: Sobre raise notice y variables [SOLUCIONADO]

From: Tonny <tonny(dot)lists(at)gmail(dot)com>
To: Foros Postgre Ecuador <ecpug(at)postgresql(dot)org>
Subject: Re: Sobre raise notice y variables [SOLUCIONADO]
Date: 2013-08-01 08:14:49
Message-ID: 51FA18F9.5020005@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: ecpug

On 07/02/2013 11:33 PM, Jaime Casanova wrote:
> 2013/7/1 Tonny <tonny(dot)lists(at)gmail(dot)com>:
>> Buenas, quiero mostrar la fecha hora actual en el que van sucediendo eventos
>> en mi funcion estoy usando
>> raise notice 'Inicia... % ', CURRENT_TIMESTAMP;
>> , pero al usar CURRENT_TIMESTAMP o SELECT now(), me da siempre la misma hora
>> y fecha de inicio.
>>
> eso es porque CURRENT_TIMESTAMP y now() están definidos como la fecha
> y hora de inicio de la "transacción". lo que buscas es
> clock_timestamp()
>
> --
> Jaime Casanova www.2ndQuadrant.com
> Professional PostgreSQL: Soporte 24x7 y capacitación
> Phone: +593 4 5107566 Cell: +593 987171157

Perfecto!! eso es lo que buscaba.

Gracias :)

In response to

Browse ecpug by date

  From Date Subject
Next Message Vladimir Quinde 2013-08-08 17:09:07 Capacitaciones PostgreSQL septiembre - diciembre 2013
Previous Message Marcos Luis 2013-07-15 17:10:09 Thought you'd find this interesting