Re: Questions about connection clean-up and "invalid page header"

From: Greg Stark <gsstark(at)mit(dot)edu>
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
Subject: Re: Questions about connection clean-up and "invalid page header"
Date: 2010-01-25 13:52:24
Message-ID: 407d949e1001250552i725f93e9h727865c863933825@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2010-01-25 13:56:53 Fwd: Questions about connection clean-up and "invalid page header"
Previous Message Tom Lane 2010-01-25 13:51:07 Re: Make & Install contrib/tablefunc Problems

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2010-01-25 13:56:53 Fwd: Questions about connection clean-up and "invalid page header"
Previous Message Herouth Maoz 2010-01-25 13:16:18 Re: Questions about connection clean-up and "invalid page header"