On Mon, Jan 3, 2011 at 2:46 PM, Joel Jacobson <joel@gluefinance.com> wrote:
> My major concern of parsing the schema file is I would never fully
> trust the output from the script, even if the regex is extremely
> paranoid and really strict, there is still a risk it contains a bug.
That could possibly be resolved by using the custom or tar formats.
> If you cannot trust the output from the schema parse script, it's not
> safe to use it to do a partial restore of objects.
> Let's say you want to restore only a few functions from your backup
> schema.
I don't think this is the right solution to that problem; or at least,
it's not the solution I want personally. I want something like
--function=glob (and yes I do want that same thing for every other
object type, too, but PARTICULARLY for functions). This might be a
next-best solution to that problem, but I'm still holding out for the
home run.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company