Re: updating a view

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: m(dot)c(dot)wilkins(at)massey(dot)ac(dot)nz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: updating a view
Date: 2006-12-15 01:41:28
Message-ID: 115.1166146888@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

m(dot)c(dot)wilkins(at)massey(dot)ac(dot)nz writes:
> i would like to allow updates to a view, but pgsql crashes,
> presummably from an infinite loop.

If it crashes, that's a bug, regardless of whether the code is doing
what you want. However, if the thing is indeed into an infinite
recursion, you might be running out of stack space, in which case the
bug is an incorrect setting of max_stack_depth. (PG 8.2 should be able
to set max_stack_depth for itself on most platforms, but older releases
rely on you to get it right.) If you reduce max_stack_depth, do you get
an error message instead of a crash? What are the exact crash symptoms,
anyway? And which PG version is this?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message m.c.wilkins 2006-12-15 02:07:55 Re: updating a view
Previous Message m.c.wilkins 2006-12-15 00:42:45 updating a view