From: Mike Fahrenkrog <mikef@travelpost.com>
To: pgsql-admin@postgresql.org
Subject: Batch Scripting of DB Objects to Separate Files
Date: Tue, 5 Jul 2005 15:46:53 -0700
Message-ID: <20050705224554.249425287E@svr1.postgresql.org> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: mikef@travelpost.com
Subject: Re: Batch Scripting of DB Objects to Separate Files
In-Reply-To: <20050705224554.249425287E@svr1.postgresql.org>
References: <20050705224554.249425287E@svr1.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox