Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP - Mailing list pgsql-general

From Sandro Dentella
Subject Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP
Date
Msg-id 200002292255.XAA11967@bluff.ermit.it
Whole thread Raw
In response to CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP  ("sheila bel" <sheilabel@hotmail.com>)
List pgsql-general
You may be right that sometime is not that easy to fin documentation, but to
see how CURRENT_TIME works, try:

erm=> select CURRENT_DATE;
  ?column?
----------
29-02-2000
(1 row

I use it (and the others) in default part of create table:
create table aaa (
   who  text  DEFAULT CURRENT_USER,
   when date  NOT NULL DEFALUT CURRENT_DATE
);

The problem is pg_dump transforms CURRENT_DATE in something w/ "'" that can
not be fed back to    "psql db < file"

By
sandro
*:-)

--
Sandro Dentella  *:-)
e-mail: sandro.dentella@mi.infn.it sandro@ermit.it

pgsql-general by date:

Previous
From: "Steve Wolfe"
Date:
Subject: Re: [GENERAL] "LockRelease: locktable lookup failed, no lock"
Next
From: Timothy Grant
Date:
Subject: Real newbie question re documentation for PL/SQL