Forum: Ruby on Rails Strange Postgres Behaviour with Session Variables

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tyler Keating (Guest)
on 2006-03-01 19: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

Tyler Keating (Guest)
on 2006-03-02 00:08
I still haven't found any reason for this.  Any ideas??
This topic is locked and can not be replied to.