Re: new type proposal - Mailing list pgsql-general

From Bruce Momjian
Subject Re: new type proposal
Date
Msg-id 200102062136.QAA14411@candle.pha.pa.us
Whole thread Raw
In response to new type proposal  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: new type proposal  (Alex Pilosov <alex@pilosoft.com>)
List pgsql-general
> I've been thinking on some new pesudo-types like SERIAL.
>
> 1) LAST_MODIFIED is the timestamp of that last time this row was
> modified.  Easy enough to do currently with triggers.
> 2) TIME_CREATED is the timestamp of when this row was first created with
> an INSERT.  I'm not sure how to do this because it needs to be read
> only.
>
> Both of these could be useful to me and I can implement them by myself
> (except #2 which I'll just have to trust myself not to screw up) but
> general users might find them useful.


Well, SERIAL does auto-sequence create and DEFAULT.   I don't see why we
can't add these features like we did for SERIAL.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Re: full text searching
Next
From: Alex Pilosov
Date:
Subject: Re: new type proposal