Re: How to crash postgres using savepoints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: How to crash postgres using savepoints
Date: 2006-11-16 20:35:11
Message-ID: 576.1163709311@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

Joseph Shraibman <jks(at)selectacast(dot)net> writes:
> See example below. At the very least the documentation needs to tell
> users that savepoints use shared memory, and the cofusing HINT string
> needs to be changed to something more useful.

Which part of "You may need to increase max_locks_per_transaction" do
you find confusing? If you actually need tens of thousands of nested
savepoints then this is accurate advice.

Actually, I'd say the dubious behavior here is that

SAVEPOINT foo;
SAVEPOINT foo;
SAVEPOINT foo;

creates three nested savepoints ... it might be better if it
automatically released any existing savepoint of the same name.
I notice that the SAVEPOINT reference page says the latter is
the behavior required by the SQL spec. Did we explicitly decide
to do this differently from spec, and if so why?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Joseph Shraibman 2006-11-16 20:59:17 Re: How to crash postgres using savepoints
Previous Message Magnus Hagander 2006-11-16 14:49:20 Re: 8.2beta1 (w32): server process crash (tsvector)

Browse pgsql-general by date

  From Date Subject
Next Message Glen Parker 2006-11-16 20:40:41 Linux hard drive/device nodes for a Postgres RAID array
Previous Message Tom Lane 2006-11-16 20:15:27 Re: PG_MODULE_MAGIC check in 8.2