Clearing The Session Table With PostgreSQL

So, those folks out there that are using ActiveRecord based sessions and
PostgreSQL… What are you doing to clear out your session table on a
regular basis?

I have a query that kills stuff that is more than 90 minutes old but I
having a hell of a time getting it running from the command line.

I’m hoping someone has a script or something that pulls this off.


Sounds like a job for BackgrounDrb (


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs