Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP

From: Sandro Dentella <sandro(dot)dentella(at)mi(dot)infn(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP
Date: 2000-02-29 22:55:23
Message-ID: 200002292255.XAA11967@bluff.ermit.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)dentella(at)mi(dot)infn(dot)it sandro(at)ermit(dot)it

Browse pgsql-general by date

  From Date Subject
Next Message Timothy Grant 2000-02-29 23:32:17 Real newbie question re documentation for PL/SQL
Previous Message Steve Wolfe 2000-02-29 21:52:34 Re: [GENERAL] "LockRelease: locktable lookup failed, no lock"