Skip to content

All tables from Postgres in None schema #1566

Discussion options

You must be logged in to vote

the "None" schema in your table metadata means the "default" schema which is what you see on PostgreSQL if you run this command:

test=> show search_path;
   search_path   
-----------------
 "$user", public
(1 row)

we recommend that search_path is set to just "public", or if it includes the "$user" token, that the username used to log into the database is not the same name as a schema.

overall, the exact meaning of None can be seen this way, where default_schema_name is what is assumed to be the schema when a Table otherwise has None for schema:

>>> from sqlalchemy import create_engine
>>> e = create_engine("postgresql://scott:tiger@localhost/test", echo='debug')
>>> c = e.connect()
2024-

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@thomscode
Comment options

@zzzeek
Comment options

@thomscode
Comment options

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