Add some assertions to view reloption macros

Peter Eisentraut <peter@eisentraut.org>

Commit: 396773762425126a85243fc85a267d401496beb8
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-11-01T12:25:38Z
Releases: 13.0
Add some assertions to view reloption macros

In these macros, the rd_options pointer is cast to ViewOption *.  Add
some assertions that the passed-in relation is actually a view before
doing that.

Author: Nikolay Shaplov <dhyan@nataraj.su>
Discussion: https://www.postgresql.org/message-id/flat/3634983.eHpMQ1mJnI@x200m

Files

PathChange+/−
src/include/utils/rel.h modified +10 −6

Discussion