Re: using postgresql for session

From: Bill Moran <wmoran(at)potentialtech(dot)com>
To: "john(dot)tiger" <john(dot)tigernassau(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: using postgresql for session
Date: 2015-10-07 16:53:18
Message-ID: 20151007125318.ec1301e1400c4f32a4900e6c@potentialtech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 7 Oct 2015 09:58:04 -0600
"john.tiger" <john(dot)tigernassau(at)gmail(dot)com> wrote:

> has anyone used postgres jsonb for holding session ? Since server side
> session is really just a piece of data, why bother with special
> "session" plugins and just use postgres to hold the data and retrieve it
> with psycopg2 ? Maybe use some trigger if session changes? We are
> using python Bottle with psycopg2 (super simple, powerful combo) - are
> we missing something magical about session plugins ?

Nothing that I'm aware of. I've worked on large projects that keep the
session data in a Postgres table with great success.

--
Bill Moran

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ramalingam, Sankarakumar 2015-10-07 17:02:08 Re: postgres standby won't start
Previous Message Peter Geoghegan 2015-10-07 16:52:39 Re: Issues with german locale on CentOS 5,6,7