You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our development setup, we have different services connecting to the same postgres instance. Those services can have conflicting table names, so we want to use postgres schemas to separate them.
Unfortunately, Exposed will not create a table in the current schema if a table with the same name exists in another schema. I see that the tableNames getter returns all tables across all schemas by default:
Since we're on postgres, oracleSchema returns null, which means that getTables will return all tables across all schemas. Is there a way to only respect the current schema in there?
The text was updated successfully, but these errors were encountered:
In our development setup, we have different services connecting to the same postgres instance. Those services can have conflicting table names, so we want to use postgres schemas to separate them.
Unfortunately, Exposed will not create a table in the current schema if a table with the same name exists in another schema. I see that the
tableNames
getter returns all tables across all schemas by default:Exposed/exposed-jdbc/src/main/kotlin/org/jetbrains/exposed/sql/statements/jdbc/JdbcDatabaseMetadataImpl.kt
Lines 24 to 26 in 6b46eb0
Since we're on postgres,
oracleSchema
returnsnull
, which means thatgetTables
will return all tables across all schemas. Is there a way to only respect the current schema in there?The text was updated successfully, but these errors were encountered: