"Kevin Grittner" <kevin.gritt...@wicourts.gov> writes: > Jon Nelson <jnelson+pg...@jamponi.net> wrote: >> Would the following query be more (most?) correct, assuming the >> oid of the table is known? > It doesn't seem to work for indexes on expressions.
Depends on what you mean by "work". If you're looking for attributes that are used as simple index columns, it's probably fine. If you want to also find attributes that are used in index expressions, you might want to make use of a join through pg_depend. One disadvantage of pg_depend is that it doesn't help for system catalog indexes (because indexes built at bootstrap time aren't included in pg_depend) --- not sure if that is something SQLAlchemy cares about. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs