Lists: | pgsql-hackers |
---|
From: | Anuj Tripathi <anujt(at)it(dot)iitb(dot)ac(dot)in> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Graphics in postgress using GTK |
Date: | 2005-12-02 10:45:55 |
Message-ID: | 439025E3.7000009@it.iitb.ac.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
GTK-warning ** : Cannot open display
Can someone suggest a method to integrate this GTK code into postgres
and solve this problem.
Thanks and Regards
Anuj Tripathi
From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Anuj Tripathi <anujt(at)it(dot)iitb(dot)ac(dot)in> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Graphics in postgress using GTK |
Date: | 2005-12-02 11:06:01 |
Message-ID: | 20051202110601.GC3057@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | 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(at)svana(dot)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.
From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Anuj Tripathi <anujt(at)it(dot)iitb(dot)ac(dot)in> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Graphics in postgress using GTK |
Date: | 2005-12-02 11:10:29 |
Message-ID: | 43902BA5.7070905@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
>
> GTK-warning ** : Cannot open display
>
> Can someone suggest a method to integrate this GTK code into postgres
> and solve this problem.
Um - don't you want to be doing this in the client, not in the backend?
--
Richard Huxton
Archonet Ltd
From: | "Cristian Prieto" <cristian(at)clickdiario(dot)com> |
---|---|
To: | "'Anuj Tripathi'" <anujt(at)it(dot)iitb(dot)ac(dot)in>, <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Graphics in postgress using GTK |
Date: | 2005-12-02 15:12:15 |
Message-ID: | 005801c5f752$c87ecfa000a8c0@gt.ClickDiario.local |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
What are you doing? Trying to run the GTK application in the same server as
the database?
Or are you trying to do a graphical interface in a server without an X
server?. I guess there is something very bad with your approach, I guess
your graphical interface should be running in the client side NOT in the
server side.
-----Original Message-----
From: pgsql-hackers-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-owner(at)postgresql(dot)org] On Behalf Of Anuj Tripathi
Sent: Viernes, 02 de Diciembre de 2005 04:46 a.m.
To: pgsql-hackers(at)postgresql(dot)org
Subject: [HACKERS] Graphics in postgress using GTK
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
GTK-warning ** : Cannot open display
Can someone suggest a method to integrate this GTK code into postgres
and solve this problem.
Thanks and Regards
Anuj Tripathi
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
From: | Jaime Casanova <systemguards(at)gmail(dot)com> |
---|---|
To: | Anuj Tripathi <anujt(at)it(dot)iitb(dot)ac(dot)in> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Graphics in postgress using GTK |
Date: | 2005-12-02 15:30:10 |
Message-ID: | c2d9e70e0512020730o56e31055t7458fa52eb1cc2b4@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 12/2/05, Anuj Tripathi <anujt(at)it(dot)iitb(dot)ac(dot)in> 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
>
> GTK-warning ** : Cannot open display
>
> Can someone suggest a method to integrate this GTK code into postgres
> and solve this problem.
>
> Thanks and Regards
> Anuj Tripathi
>
>
What about to return to your application a cursor or a set of rows and
while looping let your progress bar advance?
--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)