Re: Graphics in postgress using GTK - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Graphics in postgress using GTK
Date
Msg-id 20051202110601.GC3057@svana.org
Whole thread Raw
In response to Graphics in postgress using GTK  (Anuj Tripathi <anujt@it.iitb.ac.in>)
List pgsql-hackers
On Fri, Dec 02, 2005 at 04:15:55PM +0530, Anuj Tripathi wrote:
> Hi
> We are trying to implement a progress estiamator for long queries. We
> are trying to make the display graphical using GTK but we get an error
> saying
> Xlib : Connection to ":0.0" refused by server
> xlib : no protocol specified

Err, why on earth would the *backend* need to talk to the X server.
Shouldn't it be sending messages to the client and then the client
making the pics? How do you plan to deal with 10 queries running
simultaneously on a server at the other side of the world. I'm not even
running an X-server on my database server...

Anyway, the database server doesn't have permissions to access the X
server, that's the error.

> Can someone suggest a method to integrate this GTK code into postgres
> and solve this problem.

Umm, don't?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

pgsql-hackers by date:

Previous
From: Anuj Tripathi
Date:
Subject: Graphics in postgress using GTK
Next
From: Richard Huxton
Date:
Subject: Re: Graphics in postgress using GTK