Skip site navigation (1) Skip section navigation (2)

Re: final light versions of Oracle compatibility (SQLSTATE,

From: Neil Conway <neilc(at)samurai(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pavel Stehule <stehule(at)kix(dot)fsv(dot)cvut(dot)cz>,pgsql-patches(at)postgresql(dot)org, pgman(at)candle(dot)pha(dot)pa(dot)us
Subject: Re: final light versions of Oracle compatibility (SQLSTATE,
Date: 2005-06-10 16:23:32
Message-ID: 42A9BE84.1010703@samurai.com (view raw or flat)
Thread:
Lists: pgsql-patches
Tom Lane wrote:
> A nonterminal that is not intended to represent any real input, ever,
> is just plain weird.

If you say so... PL/PgSQL already uses such a beast, though: the lno 
nonterminal, for example.

> Not at all.  The right way to do this, I think, is for the mid-rule
> action to palloc the PLpgSQL_exception_block, fill the variables into
> that, and return the block as its semantic value.  The end-of-rule
> action then picks up the block and adds what it needs to.

Ah, I see -- that makes sense. Attached is a revised patch -- applied to 
HEAD.

-Neil

Attachment: sqlstate-8.patch
Description: text/x-patch (17.6 KB)

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2005-06-10 16:28:52
Subject: Re: psql: customizable readline history filename
Previous:From: Andreas SeltenreichDate: 2005-06-10 16:20:09
Subject: Re: psql: customizable readline history filename

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group