pgsql: Add some assertions to view reloption macros - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Add some assertions to view reloption macros
Date
Msg-id E1iQW3f-0007gM-4O@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/396773762425126a85243fc85a267d401496beb8

Modified Files
--------------
src/include/utils/rel.h | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: PG_FINALLY
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix race condition at backend exit when deleting element in sync