Re: Easily reading debug_print_plan

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Craig Ringer <craig(at)2ndquadrant(dot)com>
Cc: Antonin Houska <antonin(dot)houska(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Easily reading debug_print_plan
Date: 2013-11-21 03:29:29
Message-ID: 20131121032929.GA6041@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Craig Ringer escribió:
> On 11/20/2013 04:22 PM, Antonin Houska wrote:
> > vim editor. The '%' shortcut can be used to jump between opening and
> > closing brackets and thus skip smaller or bigger parts of the output.
> > IMO, this output is primarily for hackers (as opposed to application
> > developers or users) and hacker should know at least a few vim shortcuts
> > anyway :-)
>
> That's what I'm currently doing, I just wanted something that makes it
> quicker and easier. Jumping around the tree is good, but easy
> collapse/expand would be much better.

I think teaching Vim to fold (see ":help foldmethod") using the syntax
might be useful. I would assume it's just a matter of writing a syntax
colorizer for outfuncs.c output, and set the foldmethod to syntax ...?

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2013-11-21 03:41:46 Re: Proof of concept: standalone backend with full FE/BE protocol
Previous Message Amit Khandekar 2013-11-21 03:05:34 Re: COPY table FROM STDIN doesn't show count tag