Received: from bjke.com (firewall-user@ganymede.bjke.com [144.210.8.38]) by hub.org (8.8.8/8.7.5) with ESMTP id MAA18817 for ; Fri, 12 Jun 1998 12:26:53 -0400 (EDT) Received: by bjke.com; id MAA10586; Fri, 12 Jun 1998 12:24:19 -0400 (EDT) Received: from cpsmail.cpsgroup.com(144.210.12.11) by gauntlet.bjke.com via smap (3.2) id xmaa10309; Fri, 12 Jun 98 12:24:01 -0400 Received: by cpsmail with Internet Mail Service (5.0.1458.49) id ; Fri, 12 Jun 1998 11:27:08 -0500 Message-ID: From: "Jackson, DeJuan" To: trowbrid@writeme.com, pgsql-sql@postgreSQL.org Subject: RE: [SQL] DefineQueryRewrite: rule plan string too big Date: Fri, 12 Jun 1998 11:27:07 -0500 X-Priority: 3 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.0.1458.49) Content-Type: text/plain 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