From: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
---|---|
To: | Stephen Frost <sfrost(at)snowman(dot)net> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Golub <pavel(at)gf(dot)microolap(dot)com>, Pavel Golub <pavel(at)microolap(dot)com>, ˧ <shuai900217(at)126(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [GSOC] questions about idea "rewrite pg_dump as library" |
Date: | 2013-04-12 00:17:07 |
Message-ID: | CAB7nPqRqpbak89SzR-3qY6Y3LxD1-CLnB=xWkpvQJdpxTTKNqg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Apr 12, 2013 at 1:00 AM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> > Well, either they want that or they want that output more
> > accessibly, and without all the baggage that pg_dump necessarily
> > brings to the table. pg_dump does a lot of stuff that's basically
> > designed for bulk operations, and often what people want is a way to
> > get, say, the creation DDL for some object, without any locks than
> > the usual locks any transaction takes.
>
> Yes- being able to get that from a simple database function would be
> very nice. I wonder if some of what's been done with the "event"
> triggers would inform us about what that API should look like.
>
I recall discussions about reverse engineering of a parsed query tree in
the event trigger threads but nothing has been committed I think. Also, you
need to consider that implementing such reverse engineering mechanism in
core might not be a good thing for new features and maintenance, as it
would mean that it is necessary to change those APIs consistently with what
is added on the parsing side.
It could make more sense to have such a set of functions created as a
separate project.
My 2c.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2013-04-12 00:29:22 | Re: [GSOC] questions about idea "rewrite pg_dump as library" |
Previous Message | Tom Lane | 2013-04-12 00:07:47 | Re: (auto)vacuum truncate exclusive lock |