![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'd like to get a textual SQL representation of expression and partial indexes. I've found that the information is somehow contained in pg_index indexprs and indpred, but apparently in parsed form. There obviously is a way to get back an SQL representation, pgadmin3 does it, but how? |
#3
| |||
| |||
|
|
Michael Schuerig <michael (AT) schuerig (DOT) de> wrote: I'd like to get a textual SQL representation of expression and partial indexes. I've found that the information is somehow contained in pg_index indexprs and indpred, but apparently in parsed form. There obviously is a way to get back an SQL representation, pgadmin3 does it, but how? see pg_indexes, column indexdef. Or use pg_get_indexdef(index_oid). |
#4
| |||
| |||
|
|
Michael Schuerig <michael (AT) schuerig (DOT) de> wrote: I'd like to get a textual SQL representation of expression and partial indexes. I've found that the information is somehow contained in pg_index indexprs and indpred, but apparently in parsed form. There obviously is a way to get back an SQL representation, pgadmin3 does it, but how? see pg_indexes, column indexdef. Or use pg_get_indexdef(index_oid). |
![]() |
| Thread Tools | |
| Display Modes | |
| |