marcosbeirigo marcosbeirigo - 8 months ago 58
Java Question

Is it possible to specify schema when connecting to postgres with JDBC?

Is it possible? Can i specify it on the connection URL? How to do that?

Answer Source

I know this was answered already, but I just ran into the same issue trying to specify the schema to use for the liquibase command line.

According to this:

You can specify the url like so:


Update As of 9.4 you can specify the url with the new currentSchema parameter like so: