Re: new type proposal

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: new type proposal
Дата
Msg-id 200102062136.QAA14411@candle.pha.pa.us
обсуждение исходный текст
Ответ на new type proposal  (Joseph Shraibman <jks@selectacast.net>)
Ответы Re: new type proposal  (Alex Pilosov <alex@pilosoft.com>)
Список 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 по дате отправления:

Предыдущее
От: "Mitch Vincent"
Дата:
Сообщение: Re: full text searching
Следующее
От: Alex Pilosov
Дата:
Сообщение: Re: new type proposal