Re: Questions about connection clean-up and "invalid page header" - Mailing list pgsql-general

From Greg Stark
Subject Re: Questions about connection clean-up and "invalid page header"
Date
Msg-id 407d949e1001250552i725f93e9h727865c863933825@mail.gmail.com
Whole thread Raw
In response to Re: Questions about connection clean-up and "invalid page header"  (Herouth Maoz <herouth@unicell.co.il>)
List pgsql-general
On Mon, Jan 25, 2010 at 1:16 PM, Herouth Maoz <herouth@unicell.co.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Make & Install contrib/tablefunc Problems
Next
From: Ivan Sergio Borgonovo
Date:
Subject: Re: not officially documented use of setweight??