Replace run-time error check with assertion - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Replace run-time error check with assertion
Date
Msg-id 452e9df8-ec89-e01b-b64a-8cc6ce830458@enterprisedb.com
Whole thread Raw
Responses Re: Replace run-time error check with assertion
List 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

pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Assertion failure while streaming toasted data
Next
From: Amit Kapila
Date:
Subject: Re: parallel vacuum - few questions on docs, comments and code