Re: [HACKERS] plpgsql error message

2009-06-17 Thread Tom Lane
Peter Eisentraut writes: > In plpgsql, if you write > OPEN var BLAH > you can an error message like this: > ERROR: syntax error ... > DETAIL: Expected "FOR", to open a reference cursor. > But what is a "reference cursor"? Isn't this rather saying "... to open a > cursor, a reference to whic

[HACKERS] plpgsql error message

2009-06-17 Thread Peter Eisentraut
In plpgsql, if you write OPEN var BLAH you can an error message like this: ERROR: syntax error ... DETAIL: Expected "FOR", to open a reference cursor. But what is a "reference cursor"? Isn't this rather saying "... to open a cursor, a reference to which will be stored in your variable"? An