Re: [sqlalchemy] Set PostgreSQL default index tablespace

2021-01-24 Thread Mike Bayer
On Sun, Jan 24, 2021, at 9:42 AM, sector119 wrote: > Hello > > Is it possible to set default tablespace for all indexes? > > I know that I cat set it with > Index('my_index', my_table.c.data, postgresql_tablespace='my_tablespace') > > But I want to set set it by default somehow, that when I

[sqlalchemy] Set PostgreSQL default index tablespace

2021-01-24 Thread sector119
Hello Is it possible to set default tablespace for all indexes? I know that I cat set it with Index('my_index', my_table.c.data, postgresql_tablespace='my_tablespace') But I want to set set it by default somehow, that when I just put "index=True" on column, I get index created at some