Re: System Date - Mailing list pgsql-admin

From Negandhi, Nishith
Subject Re: System Date
Date
Msg-id FE0C41EEBEF01C47BF3A91F60669446804973251@PUNISHER.intra.infousa.com
Whole thread Raw
In response to System Date  ("Negandhi, Nishith" <Nishith.Negandhi@infoUSA.com>)
Responses Re: System Date  ("Chad Wagner" <chad.wagner@gmail.com>)
Re: System Date  ("Milen A. Radev" <milen@radev.net>)
List pgsql-admin
Hi Thanx..one more help.
I am creating a function that will retuen the current systemdate.
 
CREATE FUNCTION "CreateDate"() RETURNS date AS
'select now();'
LANGUAGE 'plpgsql';
 
However, I get the error:
 
ERROR:  syntax error at or near "select" at character 51
 
Any suggestions .??
 
Thanks in advance
 


From: Benjamin Krajmalnik [mailto:kraj@illumen.com]
Sent: Thursday, January 18, 2007 5:31 PM
To: Negandhi, Nishith; pgsql-admin@postgresql.org
Subject: RE: [ADMIN] System Date

select CURRENT_TIMESTAMP
 
or
 
select LOCALTIMESTAMP
 
the first has the information with the timezone offset at the end, whereas the second does not.


From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Negandhi, Nishith
Sent: Thursday, January 18, 2007 3:43 PM
To: pgsql-admin@postgresql.org
Subject: [ADMIN] System Date

Hi,
How to check the system date using PG/SQL ??

pgsql-admin by date:

Previous
From: "Benjamin Krajmalnik"
Date:
Subject: Re: System Date
Next
From: "Chad Wagner"
Date:
Subject: Re: System Date