Re: Graphics in postgress using GTK

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Graphics in postgress using GTK
Дата
Msg-id 20051202110601.GC3057@svana.org
обсуждение исходный текст
Ответ на Graphics in postgress using GTK  (Anuj Tripathi <anujt@it.iitb.ac.in>)
Список 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 по дате отправления:

Предыдущее
От: Anuj Tripathi
Дата:
Сообщение: Graphics in postgress using GTK
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Graphics in postgress using GTK