table dump function - Mailing list pgsql-general

From Little, Douglas
Subject table dump function
Date
Msg-id 8585BA53443004458E0BAA6134C5A7FBB6BEAFA7@EGEXCMB01.oww.root.lcl
Whole thread Raw
Responses Re: table dump function
List pgsql-general

I need a pl/pgsql function that will dump a table ddl  so I can export the definition to a file  before I drop the object.

 

the psql \d command won’t work, since it doesn’t dump the table ddl, it just lists the table’s attributes and indexes.

 

I’ve got the function mostly working,  but need help translating the ACL list into the grant commands.

 

Are there any standard PG functions that would be useful  for creating the grants?

 

Thanks in advance.

 

 

Doug Little

 

Sr. Data Warehouse Architect | Business Intelligence Architecture | Orbitz Worldwide

500 W. Madison, Suite 1000  Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741

Douglas.Little@orbitz.com

 cid:image001.jpg@01CABEC8.D4980670  orbitz.com | ebookers.com | hotelclub.com | cheaptickets.com | ratestogo.com | asiahotels.com

 

Attachment

pgsql-general by date:

Previous
From: Eduardo Morras
Date:
Subject: Re: Gitorious
Next
From: Adrian Klaver
Date:
Subject: Re: table dump function