From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Fwd: Questions about connection clean-up and "invalid page header" |
Date: | 2010-01-25 13:56:53 |
Message-ID: | 407d949e1001250556t36ede117x3bf424da81d83bb3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Given this thread on pgsql-general I wonder if we should have
something like 1 in every 1,000 CHECK_FOR_INTERRUPTS check if the
client socket is still open.
This has come up in the past and the concern was that syscalls would
be way too slow to put in critical loops but perhaps if it's only done
once every n checks it would be possible to find a good tradeoff?
---------- Forwarded message ----------
From: Greg Stark <gsstark(at)mit(dot)edu>
Date: Mon, Jan 25, 2010 at 1:52 PM
Subject: Re: Questions about connection clean-up and "invalid page header"
To: Herouth Maoz <herouth(at)unicell(dot)co(dot)il>
Cc: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
On Mon, Jan 25, 2010 at 1:16 PM, Herouth Maoz <herouth(at)unicell(dot)co(dot)il> wrote:
> Well, I assume by the fact that eventually I get an "Unexpected end of file"
> message for those queries, that something does go in and check them. Do you
> have any suggestion as to how to cause the postgresql server to do so
> earlier?
No, Postgres pretty intentionally doesn't check because checking would
be quite slow.
If this is a plpgsql function looping you can put a RAISE NOTICE in
the loop periodically. I suppose you could write such a function and
add it to your query but whether it does what you want will depend on
the query plan.
--
greg
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Ivan Sergio Borgonovo | 2010-01-25 14:07:08 | Re: not officially documented use of setweight?? |
Previous Message | Greg Stark | 2010-01-25 13:52:24 | Re: Questions about connection clean-up and "invalid page header" |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-01-25 13:57:10 | Re: Review: listagg aggregate |
Previous Message | Greg Stark | 2010-01-25 13:52:24 | Re: Questions about connection clean-up and "invalid page header" |