Re: Progress indication prototype - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Progress indication prototype
Date
Msg-id 1282165047.27661.8.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: Progress indication prototype  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
On tis, 2010-08-17 at 13:52 -0400, Stephen Frost wrote:
> I don't like how the backend would have to send something NOTICE-like,
> I had originally been thinking "gee, it'd be nice if psql could query
> pg_stat while doing something else", but that's not really possible...
> So, I guess NOTICE-like messages would work, if the backend could be
> taught to do it.

That should be doable; you'd just have to do some ereport(NOTICE)
variant inside pgstat_report_progress and have a switch to turn it on
and off, and have psql do something with it.  The latter is really the
interesting part; the former is relatively easy once the general
framework is in place.



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Return of the Solaris vacuum polling problem -- anyone remember this?
Next
From: Peter Eisentraut
Date:
Subject: Re: Progress indication prototype