OK maybe a quick test for test/dialect/test_postgresql.py , also does the way the string is being formatted there change the look of existing Index constructs (extra space ?)
If you can post as a ticket at http://www.sqlalchemy.org/trac/newticket (log in as guest/guest) else i'll almost certainly lose track. On Jun 20, 2011, at 6:16 AM, Filip Zyzniewski - Tefnet wrote: > Hi, > > I've attached a tiny patch which adds support for index specification > like this: > > sqlalchemy.schema.Index('ix_name', 'column', postgresql_ops = {'column': > 'text_pattern_ops'}) > > resulting in: > "ix_name" btree (column text_pattern_ops) > > Operator classes for indexes are documented here: > http://www.postgresql.org/docs/9.0/static/indexes-opclass.html > > How do you like it? > > regards, > Filip Zyzniewski > Tefnet > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to sqlalchemy@googlegroups.com. > To unsubscribe from this group, send email to > sqlalchemy+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > > <postgresql_ops.diff> -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.