NAME
Web::Session::Postgres - Alias of Web::Session::PgJSON
SYNOPSIS
use Web::Session::Postgres;
my $args = {
DataSource => 'dbi:Pg:sessions',
UserName => $db_user,
Password => $db_pass,
Commit => 1,
};
tie %session, 'Web::Session::Postgres', $id, $args;
DESCRIPTION
This module is an alias of Web::Session::PgJSON: sessions are stored as JSON in a json or jsonb column, and indexes are expression indexes on this column. See Web::Session::PgJSON for the table, the indexes and the available options.
Previous versions stored each indexed field in its own column. A table created for them is not compatible: create a new table as described in Web::Session::PgJSON, then copy the sessions, for example:
INSERT INTO new_sessions (id, a_session)
SELECT id, a_session::jsonb FROM sessions
WHERE a_session IS JSON;
(IS JSON needs PostgreSQL 16 or later.)
SEE ALSO
Web::Session::PgJSON, Web::Session
COPYRIGHT AND LICENSE
- 2009-2026 by Xavier Guimard
- 2013-2025 by Clément Oudot
- 2019-2025 by Maxime Besson
- 2013-2025 by Worteks
- 2023-2026 by Linagora
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.