X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4FE335290D for ; Tue, 5 Jul 2005 19:46:04 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29004-09 for ; Tue, 5 Jul 2005 22:45:55 +0000 (GMT) Received: from smtp.greatmail.com (216-18-5-70.nmsrv.com [216.18.5.70]) by svr1.postgresql.org (Postfix) with ESMTP id 249425287E for ; Tue, 5 Jul 2005 19:45:54 -0300 (ADT) Received: (qmail 13272 invoked from network); 5 Jul 2005 22:45:57 -0000 X-AntiVirus: Clean Received: from unknown (HELO IO) (63.193.251.250) by greatmail2.nmsrv.com with SMTP; 5 Jul 2005 22:45:57 -0000 From: "Mike Fahrenkrog" To: Subject: Batch Scripting of DB Objects to Separate Files Date: Tue, 5 Jul 2005 15:46:53 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C58178.C416E2E0" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcWBs3Am+QE5rBsZQJiW9FUywJOJxw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20050705224554.249425287E@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.549 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_40_50, HTML_MESSAGE, MSGID_FROM_MTA_ID X-Spam-Level: * X-Archive-Number: 200507/27 X-Sequence-Number: 18083 This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C58178.C416E2E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Could someone please advise as to the most efficient way to script database objects (preferably all objects, but particularly functions) to separate files with a single command? Is there a PostgreSQL command or Win32 client tool that can do this? The export metadata tool in EMS PostgreSQL Manager seems to only allow the generation of a single script. I would like to have a separate file for each object, so that I can easily add the objects to source control. We have well over a thousand objects, so I would need to generate these files with a single command, script or batch file. Thanks, --Mike ------=_NextPart_000_0004_01C58178.C416E2E0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Batch Scripting of DB Objects to Separate Files

Hi,

Could someone please advise as to the = most efficient way to script database objects (preferably all objects, = but particularly functions) to separate files with a single command? Is = there a PostgreSQL command or Win32 client tool that can do this? The = export metadata tool in EMS PostgreSQL Manager seems to only allow the = generation of a single script. I would like to have a separate file for = each object, so that I can easily add the objects to source control. We = have well over a thousand objects, so I would need to generate these = files with a single command, script or batch file.

Thanks,
--Mike


------=_NextPart_000_0004_01C58178.C416E2E0--