Re: pre-parser query manipulation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Randall Smith <randall(at)tnr(dot)cc>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pre-parser query manipulation
Date: 2007-03-16 04:02:21
Message-ID: 821.1174017741@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Randall Smith <randall(at)tnr(dot)cc> writes:
> I'm at a loss as to how to remove the OF clause at the server. It it
> possible to do it with a rule?

No, because the syntax error will occur long before any rule has a
chance to get involved. You'd have to actually hack the C code
(see transformLockingClause in src/backend/parser/analyze.c).

It's unfortunate that somebody decided to use the standard FOR UPDATE
syntax to mean something that's got nearly 0 to do with what the spec
intends it to mean :-(.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-03-16 04:12:57 Re: Practical question.
Previous Message Randall Smith 2007-03-16 03:30:06 Re: pre-parser query manipulation