From: | "Tim J Trowbridge" <trowbrid(at)execpc(dot)com> |
---|---|
To: | djackson(at)cpsgroup(dot)com (Jackson DeJuan) |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: [SQL] DefineQueryRewrite: rule plan string too big |
Date: | 1998-06-12 21:21:27 |
Message-ID: | 199806122121.QAA09303@earth.execpc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Jackson, DeJuan wrote:
>
> A simple work around if that is your exact query would be to use regex
> matching against '^id[1-9a-d]$'.
> Just a thought,
That would work, except that id? was hypothetical data in the table. The
actual data in the table is names that don't conform to such nice regex
matching. :-)
> -DEJ
>
> > -----Original Message-----
> > From: Tim J Trowbridge [SMTP:trowbrid(at)execpc(dot)com]
> > Sent: Friday, June 12, 1998 11:02 AM
> > To: pgsql-sql(at)postgreSQL(dot)org
> > Subject: [SQL] DefineQueryRewrite: rule plan string too big
> >
> > 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
>
--
Tim J Trowbridge trowbrid(at)writeme(dot)com
Interested in my genealogy? http://www.execpc.com/~trowbrid
From | Date | Subject | |
---|---|---|---|
Next Message | Brook Milligan | 1998-06-12 22:50:14 | Re: [SQL] finding rows in one table not in another |
Previous Message | Jackson, DeJuan | 1998-06-12 20:57:54 | RE: [SQL] finding rows in one table not in another |