Skip to content
Discussion options

You must be logged in to vote

hi -

if you are messing around with search_path and all that you may need to take additional steps to ensure only the objects you expect are considered. as to the question "is this expected", in general the answer is "yes", the way that SQLAlchemy interprets PG foreign keys is described in depth at https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#postgresql-schema-reflection , I would recommend stepping through that document and comparing to what's happening in your code to get a full picture.

It looks like you are using some variant of the recipe at https://alembic.sqlalchemy.org/en/latest/cookbook.html#rudimental-schema-level-multi-tenancy-for-postgresql-mysql-other-databases

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@decardev
Comment options

@zzzeek
Comment options

@zzzeek
Comment options

@decardev
Comment options

@zzzeek
Comment options

Answer selected by decardev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants