Replace run-time error check with assertion

From: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Replace run-time error check with assertion
Date: 2021-05-25 09:28:56
Message-ID: 452e9df8-ec89-e01b-b64a-8cc6ce830458@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


In the attached patch, the error message was checking that the
structures returned from the parser matched expectations. That's
something we usually use assertions for, not a full user-facing error
message. So I replaced that with an assertion (hidden inside
lfirst_node()).

Attachment Content-Type Size
0001-Replace-run-time-error-check-with-assertion.patch text/plain 1.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-05-25 09:29:56 Re: parallel vacuum - few questions on docs, comments and code
Previous Message Dilip Kumar 2021-05-25 09:27:18 Re: Assertion failure while streaming toasted data