Re: Question about inscrutable cast syntax

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kevin Murphy <murphy(at)genome(dot)chop(dot)edu>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Question about inscrutable cast syntax
Date: 2008-12-19 16:53:33
Message-ID: 26962.1229705613@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Kevin Murphy <murphy(at)genome(dot)chop(dot)edu> writes:
> lastupdated timestamp without time zone DEFAULT
> ('now'::text)::timestamp(6) with time zone NOT NULL

> For my personal edification, I'd like to understand what's going on with
> that first one!

It's what the PG grammar converts CURRENT_TIMESTAMP(6) into.

(We really ought to do a better job of hiding that from the user...)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jason Long 2008-12-19 22:20:02 Out of control query
Previous Message Merlin Moncure 2008-12-19 16:15:56 Re: [PGSQL 8.3.5] How to handle FKs with partitioning?