Add some assertions to view reloption macros
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 1 Nov 2019 12:16:21 +0000 (13:16 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 1 Nov 2019 12:25:38 +0000 (13:25 +0100)
commit396773762425126a85243fc85a267d401496beb8
treed2b46ab1bfbf9fe201409fe95b96d4f7b7dc1116
parent604bd3671121b51f977de146ed95484c2297fb3e
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
src/include/utils/rel.h