pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → textReconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If
column is supplied and is not zero, only the definition of that column is reconstructed.