From: Robert Buels Date: Mon, 17 Aug 2009 21:46:21 +0000 (+0000) Subject: added POD section about schema support to DBIx::Class::Storage::Pg X-Git-Tag: v0.08109~2^2~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c0176a11f99fc644e129ef2016debc59672700b;p=dbsrgits%2FDBIx-Class.git added POD section about schema support to DBIx::Class::Storage::Pg --- diff --git a/lib/DBIx/Class/Storage/DBI/Pg.pm b/lib/DBIx/Class/Storage/DBI/Pg.pm index bea44c8..10a82f5 100644 --- a/lib/DBIx/Class/Storage/DBI/Pg.pm +++ b/lib/DBIx/Class/Storage/DBI/Pg.pm @@ -166,7 +166,28 @@ DBIx::Class::Storage::DBI::Pg - Automatic primary key class for PostgreSQL This class implements autoincrements for PostgreSQL. -=head1 AUTHORS +=head1 POSTGRESQL SCHEMA SUPPORT + +This supports multiple PostgreSQL schemas, with one caveat: for +performance reasons, the schema search path is queried the first time it is +needed and CACHED for subsequent uses. + +For this reason, you should do any necessary manipulation of the +PostgreSQL search path BEFORE instantiating your schema object, or as +part of the on_connect_do option to connect(), for example: + + my $schema = My::Schema->connect + ( $dsn,$user,$pass, + { on_connect_do => + [ 'SET search_path TO myschema, foo, public' ], + }, + ); + +=head1 CONTRIBUTORS + +Robert Buels + +=head1 AUTHOR Marcus Ramberg