Re: table dump function

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: table dump function
Date: 2013-03-07 19:27:41
Message-ID: khapmh$giv$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Magnus Hagander 2013-03-07 19:33:33 Re: FW: statement failure
Previous Message Little, Douglas 2013-03-07 19:09:21 Re: table dump function