Re: Proposal for debugging of server-side stored procedures - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Proposal for debugging of server-side stored procedures
Date
Msg-id 447B374F.9050601@tada.se
Whole thread Raw
In response to Re: Proposal for debugging of server-side stored procedures  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Proposal for debugging of server-side stored procedures
List pgsql-hackers
Tom Lane wrote:
> "Mark Cave-Ayland" <m.cave-ayland@webbased.co.uk> writes:
> ... So basically yeah, what we need
> is a debug subchannel in the FE/BE protocol.  I'd suggest inventing
> a single Debug message type (sendable in both directions) with the
> contents being specified by a separate protocol definition.  Or perhaps
> invert that and imagine the FE/BE protocol as embedded in a debug
> protocol.
> 
I think this is a bad idea. PL/Java will use either shared memory or a socket to attach and 
as you already mentioned, when using C, a gdb will attach directly using the pid. I wouldn't 
be too surprised if Perl, Python, and PHP all have a similar solution and thus have no 
benefit from additions to the FE/BE protocol. IMO, debugging should be language specific and 
take place in a separate channel. There's no gain whatsoever mixing it with the FE/BE protocol.

Regards,
Thomas Hallgren




pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: anoncvs still slow
Next
From: "Magnus Hagander"
Date:
Subject: Re: anoncvs still slow