Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> writes:
> Does anybody know what is the proper way to tell if index column is ASC or
> DESC in 9.6+?
Using pg_get_indexdef() would leave you much less vulnerable to cross-
version differences in the system catalogs.
regards, tom lane