Re: Seeking a better PL/pgSQL editor-debugger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ken Winter" <ken(at)sunward(dot)org>
Cc: "PostgreSQL pg-general List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Seeking a better PL/pgSQL editor-debugger
Date: 2006-01-28 18:26:04
Message-ID: 18753.1138472764@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ken Winter" <ken(at)sunward(dot)org> writes:
> I ask because I was stuck for two days on the following error message:
> ERROR: syntax error at or near "LOOP"
> CONTEXT: compile of PL/pgSQL function "gen_history" near line 126
> and neither of those tools offered any more help than that. It turned out
> the error was a missing ";" way back in line 53, and it took two days of
> trial and error and staring at the code to find it.

What Postgres version are you using?

I would blame the backend more than the client tools for the failure to
localize this syntax error. We've made significant progress in 8.0
and again in 8.1 on improving plpgsql's error messages --- if you are
not on 8.1 the first thing to try is a backend upgrade.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-01-28 18:34:27 Re: Viewing Database Scheme
Previous Message Doug McNaught 2006-01-28 18:23:44 Re: Viewing Database Scheme