Re: proposal: more practical view on function's source code

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: more practical view on function's source code
Date: 2010-03-22 04:10:56
Message-ID: 162867791003212110n6fee9f5hab89651e82237e7c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> The direction that we ought to be pushing in, I think, is the same as
> the vision for syntax error handling: enable pgAdmin and similar tools
> to pop up the function text with a cursor placed at (more or less) the
> right place.  It's interesting to think about how that might be extended
> to lower-tech solutions like \ef.  I could see telling people to type
>        \ef function-name line-number
> with suitable magic to get the editor to place the cursor at that line.
> I suspect this wouldn't be too hard to do with emacs --- what do you
> think about vi?
>

some thinking. This is other functionality and can be nice in psql too
- but it can be more automatic - only

\ef"E" without others parameters - like show line on last error -
without writing function name, without writing line number - both
information can be in error buffer. But you have to design universal
mechanism for editor call with line number parameter (isn't big
problem probably). And it's slower - you have to start second
application.

What about some hypotetical statement Show Function?

\sf name -- show function
\sf name, line -- show function from line

Pavel

>                        regards, tom lane
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joseph Adams 2010-03-22 04:36:37 Proposal: access control jails (and introduction as aspiring GSoC student)
Previous Message Pavel Stehule 2010-03-22 03:53:45 Re: proposal: more practical view on function's source code