Re: [SQL] DefineQueryRewrite: rule plan string too big

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: trowbrid(at)writeme(dot)com
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] DefineQueryRewrite: rule plan string too big
Date: 1998-06-12 16:07:14
Message-ID: 199806121607.MAA13997@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>
> First, thanks for the help on sorting by birth month.
> BTW: The reason I needed to do that was because otherwise it would have
> been sorted by birth year, and a birthday list isn't very convenient
> when sorted by year. :-)
>
> Now I'm trying to create a view with about a dozen (or more) items in the
> where clause:
>
> create view x as select * from table where ID in ('id1','id2','id3','id3',
> 'id4','id5','id6','id7','id8','id9','ida','idb','idc','idd');
>
> and the error is:
> DefineQueryRewrite: rule plan string is too big.
>
> I looked in the src, and in src/backend/rewrite/RewriteDefine.c,
> it mentions something about RULE_PLAN_SIZE being too small, and will
> eventually have to be large objects.
>
> Is this something that's in the works, and is there a workaround?
>
> TIA
>
> --
> Tim J Trowbridge trowbrid(at)writeme(dot)com
> Interested in my genealogy? http://www.execpc.com/~trowbrid
>
>

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jackson, DeJuan 1998-06-12 16:27:07 RE: [SQL] DefineQueryRewrite: rule plan string too big
Previous Message Tim J Trowbridge 1998-06-12 16:01:56 DefineQueryRewrite: rule plan string too big