[PATCH] Improve error message when trying to lock virtual tuple. - Mailing list pgsql-hackers

From Sven Klemm
Subject [PATCH] Improve error message when trying to lock virtual tuple.
Date
Msg-id CAMCrgp0TBCOWneX6oPpysR3gqp_njgNvBOd45wtpiwMjuoFeMQ@mail.gmail.com
Whole thread Raw
Responses Re: [PATCH] Improve error message when trying to lock virtual tuple.
Re: [PATCH] Improve error message when trying to lock virtual tuple.
List pgsql-hackers
Hello,

When currently trying to lock a virtual tuple the returned error
will be a misleading `could not read block 0`. This patch adds a
check for the tuple table slot being virtual to produce a clearer
error.

This can be triggered by extensions returning virtual tuples.
While this is of course an error in those extensions the resulting
error is very misleading.



-- 
Regards, Sven Klemm

Attachment

pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: FYI: LLVM Runtime Crash
Next
From: Tomas Vondra
Date:
Subject: Re: using extended statistics to improve join estimates