Re: table dump function - Mailing list pgsql-general

From Thomas Kellerer
Subject Re: table dump function
Date
Msg-id khapmh$giv$1@ger.gmane.org
Whole thread Raw
In response to Re: table dump function  (Adrian Klaver <adrian.klaver@gmail.com>)
List pgsql-general
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


pgsql-general by date:

Previous
From: "Little, Douglas"
Date:
Subject: Re: table dump function
Next
From: Magnus Hagander
Date:
Subject: Re: FW: statement failure