Re: MAX() of 0 records. - Mailing list pgsql-sql

From Tom Lane
Subject Re: MAX() of 0 records.
Date
Msg-id 8477.962940582@sss.pgh.pa.us
Whole thread Raw
In response to MAX() of 0 records.  (Paul McGarry <paulm@opentec.com.au>)
List pgsql-sql
Paul McGarry <paulm@opentec.com.au> writes:
> However there will be situations where there are no records for
> a given item_entry_id with item_live='t'. Currently when I try
> do update/insert a record so that this occurs I get the following
> error 'ERROR:  ExecutePlan: (junk) 'ctid' is NULL!' and the
> insert/update attempt is rolled back.

This seems like a backend bug to me, but being an overworked hacker
I'm too lazy to try to reconstruct the scenario from your sketch.
Could I trouble you to submit a formal bug report with a specific,
hopefully compact script that triggers the problem?

> Is there a good way of going about this or should I just be wrapping
> the whole thing up in an

Until I've isolated the bug I don't want to speculate about whether
it'll be reasonable to try to back-patch a fix into 7.0.*.  Usually
we don't risk back-patching complex fixes into stable releases, but
the fix might be simple once we know the cause.
        regards, tom lane

PS: I trust you're using 7.0.* ?


pgsql-sql by date:

Previous
From: Paul McGarry
Date:
Subject: MAX() of 0 records.
Next
From: Antti Linno
Date:
Subject: Ancient postgres+EXCEPT