Re: Can I add a super table to existing tables?

Поиск
Список
Период
Сортировка
От Jun Yang
Тема Re: Can I add a super table to existing tables?
Дата
Msg-id b365d0610908012209l3a2392bcvcb56c341574bc867@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Can I add a super table to existing tables?  (David Fetter <david@fetter.org>)
Список pgsql-general
On Sat, Aug 1, 2009 at 9:42 PM, David Fetter <david@fetter.org> wrote:
On Sat, Aug 01, 2009 at 08:10:02PM -0700, Jun Yang wrote:
> On Sat, Aug 1, 2009 at 7:53 PM, David Fetter <david@fetter.org> wrote:
> > On Sat, Aug 01, 2009 at 06:28:54PM -0700, Jun Yang wrote:
> > > Hi all,
> > >
> > > I want to add some common columns to all of my tables.
> >
> > Your case may be very special, but offhand, this sounds like a
> > very bad idea.  What task is it you're trying to accomplish?
>
> Very simple.  I have columns update_by and updated_at that I want
> every table to have but don't want to add them one by one.

This sounds like you're working your way up to some kind of logging
system :)

Check out the tablelog <http://pgfoundry.org/projects/tablelog/>

Very interesting.  Thanks a lot for the pointer.
 
Cheers,
David.

Jun
 

--
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: questions on (parallel) COPY and when to REINDEX
Следующее
От: Alexy Khrabrov
Дата:
Сообщение: Re: building a binary-portable database