Adrian Klaver wrote on 07.03.2013 19:18:
> Not that I know of. If you feel adventurous you could look at
> dumpTableSchema in pg_dump.c in the source to see how pg_dump does
> it.
I think a function "pg_get_tabledef()" would be very helpful.
We already have a lot of pg_get_XXXdef() functions (pg_get_viewdef, pg_get_functiondef, ...)
I would make sense to have one for tables as well.
Regards
Thomas