sequence aliases?

Поиск
Список
Период
Сортировка
От CSN
Тема sequence aliases?
Дата
Msg-id 20051106022128.2578.qmail@web52915.mail.yahoo.com
обсуждение исходный текст
Ответы Re: sequence aliases?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I'm checking out Ruby on Rails and there's a tutorial
about using Postgresql views and making them
updateable
(http://wiki.rubyonrails.com/rails/pages/HowtoUsePostgresViewsAsTables).
The tutorial suggests renaming the sequence for the
table to coincide with the view so that Rails can
automatically access the sequence. I don't like this
as it may break other things. Is there a way to create
an alias or something (e.g. quotes_seq_id points to
quotes_table_seq_id), or is there a better way?

Thanks,
CSN




__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

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

Предыдущее
От: Assad Jarrahian
Дата:
Сообщение: Re: pl/pgsql list as parameter.
Следующее
От: "Carlos Oliva"
Дата:
Сообщение: Setting max_fsm_pages