From: wieck@debis.com
To: ertz@illite.u-strasbg.fr
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] RewriteDefine.c : Rule size
Date: Thu, 8 Jul 1999 18:30:16 +0200 (MET DST)
Message-ID: <m112H3w-0003ktC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <3784CE8B.9E412BB3@illite.u-strasbg.fr>
>
> Hello,
>
> I'm using Postgres 6.4.2.
> I want to create a view, but a message appear :
> ERROR: DefineQueryRewrite: rule plan string too big.
> What could be the solution to avoid the problem? In fact, I have 31
> columns in a table, and i want to make a view on this table (with
> a line restrict = WHERE clause).
That's a well known, long standing problem which is still not
fixed in v6.5. I'm planning to fix it for v6.6 - though that
doesn't help you.
> I watched the RewriteDefine.c code and saw :
> #define RULE_PLAN_SIZE BLCKSZ
> I thought changing the value of this size, but I don't find the
> place to modify the BLCKSZ value.
> But, before doing the modification and recompile, I would like to
> have your opinion on the problem...perhaps is there an easier way to
> resolve the problem.
Never did it, but the BLCKSZ is defined in include/config.h.
That is a file generated from config.h.in, so be sure to
change it there and reconfigure before recompiling.
And if you change the blocksize, be sure to run initdb after
because your databases will not be binary compatible any
more!
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#========================================= wieck@debis.com (Jan Wieck) #
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: wieck@debis.com, ertz@illite.u-strasbg.fr
Subject: Re: [SQL] RewriteDefine.c : Rule size
In-Reply-To: <m112H3w-0003ktC@orion.SAPserv.Hamburg.dsh.de>
References: <3784CE8B.9E412BB3@illite.u-strasbg.fr> <m112H3w-0003ktC@orion.SAPserv.Hamburg.dsh.de>
* 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