pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedparameter to control cycle detection
4+ messages / 3 participants
[nested] [flat]
* parameter to control cycle detection
@ 2004-04-07 23:41 Coby Beck <coby101@bigpond.com>
2004-04-09 04:22 ` Re: parameter to control cycle detection Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Coby Beck @ 2004-04-07 23:41 UTC (permalink / raw)
To: pgsql-admin
Hi,
I get the following error trying to update a view:
"ERROR: query rewritten 10 times, may contain cycles"
and it doesn't. There is a function in there legitimately called 10 times
with the same parameters. 10 seems a little low to panic about, is this
configurable? The rule code is generated programmatically so for now at
least I would like to avoid having to find a general solution for the sake
of an optimization I may not need and it is not an option to hand tweak this
one problem rule.
Can I set this 10 parameter higher somewhere?
TIA.
Coby Beck
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 22/03/2004
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: parameter to control cycle detection
2004-04-07 23:41 parameter to control cycle detection Coby Beck <coby101@bigpond.com>
@ 2004-04-09 04:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-04-09 06:14 ` Re: parameter to control cycle detection Coby Beck <dragon.huneault@bigpond.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2004-04-09 04:22 UTC (permalink / raw)
To: Coby Beck <coby101@bigpond.com>; +Cc: pgsql-admin
"Coby Beck" <coby101@bigpond.com> writes:
> I get the following error trying to update a view:
> "ERROR: query rewritten 10 times, may contain cycles"
Update to something newer. The default limit is 100 in 7.3, and the
whole thing is gone in favor of *real* loop detection in 7.4 ...
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: parameter to control cycle detection
2004-04-07 23:41 parameter to control cycle detection Coby Beck <coby101@bigpond.com>
2004-04-09 04:22 ` Re: parameter to control cycle detection Tom Lane <tgl@sss.pgh.pa.us>
@ 2004-04-09 06:14 ` Coby Beck <dragon.huneault@bigpond.com>
2004-04-09 12:44 ` Re: parameter to control cycle detection Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Coby Beck @ 2004-04-09 06:14 UTC (permalink / raw)
To: pgsql-admin
>
> "Coby Beck" <coby101@bigpond.com> writes:
> > I get the following error trying to update a view:
> > "ERROR: query rewritten 10 times, may contain cycles"
>
> Update to something newer. The default limit is 100 in 7.3, and the
> whole thing is gone in favor of *real* loop detection in 7.4 ...
Thanks for the reply, Tom. Upgrading is on the TODO list for sure. In the
meantime, is there not a way to change the default?
Coby
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.639 / Virus Database: 408 - Release Date: 22/03/2004
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: parameter to control cycle detection
2004-04-07 23:41 parameter to control cycle detection Coby Beck <coby101@bigpond.com>
2004-04-09 04:22 ` Re: parameter to control cycle detection Tom Lane <tgl@sss.pgh.pa.us>
2004-04-09 06:14 ` Re: parameter to control cycle detection Coby Beck <dragon.huneault@bigpond.com>
@ 2004-04-09 12:44 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2004-04-09 12:44 UTC (permalink / raw)
To: Coby Beck <dragon.huneault@bigpond.com>; +Cc: pgsql-admin
"Coby Beck" <dragon.huneault@bigpond.com> writes:
> I get the following error trying to update a view:
> Thanks for the reply, Tom. Upgrading is on the TODO list for sure. In the
> meantime, is there not a way to change the default?
Not without recompiling. IIRC it's a #define in
backend/rewriter/rewriteHandler.c.
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-04-09 12:44 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-04-07 23:41 parameter to control cycle detection Coby Beck <coby101@bigpond.com>
2004-04-09 04:22 ` Tom Lane <tgl@sss.pgh.pa.us>
2004-04-09 06:14 ` Coby Beck <dragon.huneault@bigpond.com>
2004-04-09 12:44 ` Tom Lane <tgl@sss.pgh.pa.us>
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