Forum: Ruby on Rails Strange Postgres Behaviour with Session Variables

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
233d3e1830cfcbb2cc850f15eecc8370?d=identicon&s=25 Tyler Keating (Guest)
on 2006-03-01 18:09
Can someone explain why Rails is querying the Postgres database every
time I retrieve a session variable??  The query is to determine the
attributes of the model object I guess and looks like this: "SELECT
a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT....".

Like I said, this SELECT only occurs when I load a variable such as:
@value = session[:value]

The behaviour seems wrong since it wasn't occurring using MySQL
previously.

Thanks,
Tyler
233d3e1830cfcbb2cc850f15eecc8370?d=identicon&s=25 Tyler Keating (Guest)
on 2006-03-01 23:08
I still haven't found any reason for this.  Any ideas??
This topic is locked and can not be replied to.