pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: trowbrid@writeme.com
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] DefineQueryRewrite: rule plan string too big
Date: Fri, 12 Jun 1998 11:27:07 -0500
Message-ID: <F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail> (raw)

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



view thread (4+ messages)  latest in thread

Message-ID: <F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail>
Permalink:  ../F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail/
Also on:    postgresql.org/message-id/F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: djackson@cpsgroup.com, trowbrid@writeme.com
  Subject: Re: [SQL] DefineQueryRewrite: rule plan string too big
  In-Reply-To: <F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail>
  References: <F10BB1FAF801D111829B0060971D839F2D53FD@cpsmail>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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