pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedDefineQueryRewrite: rule plan string too big
4+ messages / 3 participants
[nested] [flat]
* DefineQueryRewrite: rule plan string too big
@ 1998-06-12 16:01 Tim J Trowbridge <trowbrid@execpc.com>
1998-06-12 16:07 ` Re: [SQL] DefineQueryRewrite: rule plan string too big Bruce Momjian <maillist@candle.pha.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tim J Trowbridge @ 1998-06-12 16:01 UTC (permalink / raw)
To: 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@writeme.com
Interested in my genealogy? http://www.execpc.com/~trowbrid
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [SQL] DefineQueryRewrite: rule plan string too big
1998-06-12 16:01 DefineQueryRewrite: rule plan string too big Tim J Trowbridge <trowbrid@execpc.com>
@ 1998-06-12 16:07 ` Bruce Momjian <maillist@candle.pha.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Momjian @ 1998-06-12 16:07 UTC (permalink / raw)
To: trowbrid@writeme.com; +Cc: 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@writeme.com
> Interested in my genealogy? http://www.execpc.com/~trowbrid
>
>
--
Bruce Momjian | 830 Blythe Avenue
maillist@candle.pha.pa.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)
^ permalink raw reply [nested|flat] 4+ messages in thread
* RE: [SQL] DefineQueryRewrite: rule plan string too big
@ 1998-06-12 16:27 Jackson, DeJuan <djackson@cpsgroup.com>
1998-06-12 21:21 ` Re: [SQL] DefineQueryRewrite: rule plan string too big Tim J Trowbridge <trowbrid@execpc.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jackson, DeJuan @ 1998-06-12 16:27 UTC (permalink / raw)
To: trowbrid@writeme.com; pgsql-sql
A simple work around if that is your exact query would be to use regex
matching against '^id[1-9a-d]$'.
Just a thought,
-DEJ
> -----Original Message-----
> From: Tim J Trowbridge [SMTP:trowbrid@execpc.com]
> Sent: Friday, June 12, 1998 11:02 AM
> To: pgsql-sql@postgreSQL.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@writeme.com
> Interested in my genealogy? http://www.execpc.com/~trowbrid
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: [SQL] DefineQueryRewrite: rule plan string too big
1998-06-12 16:27 RE: [SQL] DefineQueryRewrite: rule plan string too big Jackson, DeJuan <djackson@cpsgroup.com>
@ 1998-06-12 21:21 ` Tim J Trowbridge <trowbrid@execpc.com>
0 siblings, 0 replies; 4+ messages in thread
From: Tim J Trowbridge @ 1998-06-12 21:21 UTC (permalink / raw)
To: djackson@cpsgroup.com; +Cc: 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@execpc.com]
> > Sent: Friday, June 12, 1998 11:02 AM
> > To: pgsql-sql@postgreSQL.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@writeme.com
> > Interested in my genealogy? http://www.execpc.com/~trowbrid
>
--
Tim J Trowbridge trowbrid@writeme.com
Interested in my genealogy? http://www.execpc.com/~trowbrid
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~1998-06-12 21:21 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-06-12 16:01 DefineQueryRewrite: rule plan string too big Tim J Trowbridge <trowbrid@execpc.com>
1998-06-12 16:07 ` Bruce Momjian <maillist@candle.pha.pa.us>
1998-06-12 16:27 RE: [SQL] DefineQueryRewrite: rule plan string too big Jackson, DeJuan <djackson@cpsgroup.com>
1998-06-12 21:21 ` Tim J Trowbridge <trowbrid@execpc.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox