PostgresDriver.enableExtensions
is runned on slave connection
#7691
Labels
PostgresDriver.enableExtensions
is runned on slave connection
#7691
Issue Description
PostgresDriver.enableExtensions
is runned on slave connection.Expected Behavior
I expected that
CREATE EXTENSION
always run on amaster
connection.Actual Behavior
This produces the following error:
Steps to Reproduce
I created a dedicated repository to reproduce error using Docker to mount a master/slave environment
git clone https://github.com/madeindjs/typeorm_bug cd typeorm_bug docker-compose up
You'll see and output like this
This is caused by this entity
You can see the complete file here:
My Environment
Additional Context
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: