Re: Display line numbers in query tool

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Danny Lo <lo(dot)dannyk(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Display line numbers in query tool
Date: 2010-02-12 09:48:55
Message-ID: 4B752407.9060700@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On 12/02/2010 00:39, Danny Lo wrote:
> Hi, I'm a novice SQL user running pgadmin version v 1.10.1 and I'm wondering
> if the query tool can support displaying line numbers for the purpose of
> debugging moderate sized plpgsql scripts.

Actually, the edit window does give you the current line and column in
the status bar, which is good enough for most purposes.

An additional complication AFAICT is that the line number in error
messages returned from PostgreSQL isn't necessarily (or even usually)
the line number as you see it in the edit window - I suppose that for PG
line numbering starts from the body of the function, leaving out the
"create or replace function..." command.

However, I agree that line numbers in the left column would be a nice
touch... +1 for its inclusion.

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Little, Douglas 2010-02-12 12:41:08 Feature request - Log search
Previous Message Walter Willmertinger 2010-02-12 08:01:19 PgScript: How to call from command line in shell-scripts (or .Bat-Files in Windows)