sequence aliases? - Mailing list pgsql-general

From CSN
Subject sequence aliases?
Date
Msg-id 20051106022128.2578.qmail@web52915.mail.yahoo.com
Whole thread Raw
Responses Re: sequence aliases?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Assad Jarrahian
Date:
Subject: Re: pl/pgsql list as parameter.
Next
From: "Carlos Oliva"
Date:
Subject: Setting max_fsm_pages