difference between current_timestamp and now() in quotes

From: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
To: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: difference between current_timestamp and now() in quotes
Date: 2009-01-22 13:52:21
Message-ID: 2f4958ff0901220552g6fbc9091t9307df5f17ad16fa@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

test2=# create table dupa(a timestamp, b serial);
NOTICE: CREATE TABLE will create implicit sequence "dupa_b_seq" for
serial column "dupa.b"
CREATE TABLE

test2=# insert into dupa(a) select current_timestamp from
generate_series(1,100);
INSERT 0 100

test2=# insert into dupa(a) select 'current_timestamp' from
generate_series(1,100);
ERROR: date/time value "current" is no longer supported
LINE 1: insert into dupa(a) select 'current_timestamp' from generate...
^
test2=# insert into dupa(a) select 'now()' from generate_series(1,100);
INSERT 0 100

Any ideas why the difference ?

--
GJ

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hannu Krosing 2009-01-22 14:13:45 Re: [Plproxy-users] A complex plproxy query
Previous Message Grzegorz Jaśkiewicz 2009-01-22 13:19:16 Re: [GENERAL] bytea size limit?