I had implemented similar code on top of FDW API.
https://github.com/kaigai/pg_strom/blob/old_cuda/utilcmds.c#L244
Probably, heap_create_with_catalog() is what you are finding out.
2014-03-21 22:57 GMT+09:00 Rajashree Mandaogane <rajashree(dot)28m(at)gmail(dot)com>:
> We are working on a project in which we need to create tables for each
> column. So which function should we call in recursion to create the tables?
--
KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp>