Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 111834763DF; Tue, 26 Nov 2002 08:57:56 -0500 (EST) Received: from cmnt4011.rvc.ac.uk (cmnt4011.rvc.ac.uk [195.195.217.13]) by postgresql.org (Postfix) with ESMTP id 057E147673A; Tue, 26 Nov 2002 08:54:09 -0500 (EST) Received: by cmnt4011.rvc.ac.uk with Internet Mail Service (5.5.2653.19) id ; Tue, 26 Nov 2002 13:53:50 -0000 Message-ID: <6BD8CE460CC6EE40B83DDFCED609F84BE140D8@cmnt4008.rvc.ac.uk> From: "Rison, Stuart" To: "'pgsql-sql@postgresql.org'" , "'pgsql-bugs@postgresql.org'" Subject: [SQL/BUGS] (possible) inconsistent behaviour of timestamp? Date: Tue, 26 Nov 2002 13:54:03 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/153 X-Sequence-Number: 4935 Here's an "interesting" timestamp related postgreSQL quirk: testdb2=# select "timestamp"('now'); timestamp ---------------------------- 2002-11-26 13:47:12.454157 (1 row) testdb2=# select 'now'::timestamp; timestamptz ------------------------------ 2002-11-26 13:47:34.88358+00 (1 row) testdb2=# select timestamp 'now'; timestamptz ------------------------------- 2002-11-26 13:47:47.701731+00 (1 row) The first SELECT returns a 'timestamp', but the next two return a 'timestamptz' (presumably with timezone); is this inconsitent behaviour? Cheers, Stuart. Royal Veterinary College London, UK