From: pgsql-jd...@postgresql.org [mailto:pgsql-jd...@postgresql.org] On Behalf Of Julien Demoor
Sent: Monday, July 30, 2012 8:56 AM
To: pgsql...@postgresql.org
Subject: [JDBC] Search path in connection string
Julien
You can customize the connection string to accomplish this. You vary the “user” that is connecting and configure a search_path specific to that user.
ALTER ROLE custom_role SET search_path = …
David J.
2012/7/31 Valentine Gogichashvili <val...@gmail.com>
Hello Julien,As normally you would always use a connection pool (like BoneCP or c3p0), you can easily configure an InitSQL property to initialize your connection as needed.Note that JDBC driver for now does not support search_path at all, as the OID cache lookup is not taking it into an account. So prepare for some crazy problems when for example returning a type that exists in several schemas with the same name.With best regards,
-- Valentine
Hello Valentine,I'll see if connection pools are available with BIRT (I'm using the integrated web viewer so I can't go around its limitations).Thanks for the tip regarding the support for the search_path. Should I expect issues if the types that share a name across schemas have the same definition?Regards,Julien