Re: plpgsql Difference in behaviour between versions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris McDonald <chrisjonmcdonald(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql Difference in behaviour between versions?
Date: 2011-11-24 03:10:25
Message-ID: 10591.1322104225@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris McDonald <chrisjonmcdonald(at)gmail(dot)com> writes:
> Still interested in a definitive answer, but the fix for me appears to be simply to change the word open to something else.

Well, if you want a definitive answer, you can consult the list of
plpgsql reserved words here:
http://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/pl/plpgsql/src/pl_scanner.c;h=76e8436e50e9c1d4919a60916b0cabfa83a13eb1;hb=HEAD#l30
where you will find that "open" is indeed a reserved word.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Naoya Anzai 2011-11-24 09:55:53 "CREATE TABLE table_name AS EXECUTE name WITH DATA" becomes syntax error.
Previous Message Adrian Klaver 2011-11-24 02:42:54 Re: Installed. Now what?