skytf=> select oid,proname from pg_proc where proname='create_table'; oid | proname ----------+-------------- 14290044 | create_table (1 row) skytf=> select pg_get_functiondef(14290044);
9 查看索引创建语句
1 2 3 4 5 6 7 8 9 10 11
skytf=> select oid ,relname from pg_class where relname='game_appid_key'; oid | relname ----------+---------------- 14311899 | game_appid_key (1 row)
skytf=> select pg_get_indexdef(14311899); pg_get_indexdef ---------------------------------------------------------------- CREATEUNIQUEINDEX game_appid_key ON game USING btree (appid) (1 row)