Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

EXPLAIN progress info


  • From: Gregory Stark <stark(at)enterprisedb(dot)com>
  • To: pgsql-patches(at)postgresql(dot)org
  • Subject: EXPLAIN progress info
  • Date: Tue, 08 Apr 2008 20:32:33 +0100
  • Message-id: <87wsn82lda.fsf@oxford.xeocode.com> <text/plain>

Not to be opened before May 1st!


I know I should still be looking at code from the March Commitfest but I was
annoyed by this *very* FAQ:

 http://archives.postgresql.org/pgsql-general/2008-04/msg00402.php 

This also came up at the UKUUG-Pg conference so it was already on my mind. I
couldn't resist playing with it and trying to solve this problem.

Attachment: explain-progress.diff.gz
Description: Binary data

I'm not sure what the right way to get the data back to psql would be.
Probably it should be something other than what it's doing now, an INFO
message. It might even be a special message type? Also need some thought about
what progress info could be reported in other situations aside from the
executor. VACUUM, for example, could report its progress pretty easily.

To use it run a long query in psql and hit C-\ in (unless you're on a system
with SIGINFO support such as BSD where the default will probably be C-t).

But no reviewing it until we finish with the March patches! 
Do as I say, not as I do :(

Attachment: explain-progress.diff.gz
Description: Binary data


-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's PostGIS support!


Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group