pgsql: Add some assertions to view reloption macros

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add some assertions to view reloption macros
Date: 2019-11-01 12:29:39
Message-ID: E1iQW3f-0007gM-4O@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)nataraj(dot)su>
Discussion: https://www.postgresql.org/message-id/flat/3634983(dot)eHpMQ1mJnI(at)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-11-01 13:39:49 pgsql: Fix race condition at backend exit when deleting element in sync
Previous Message Peter Eisentraut 2019-11-01 10:26:56 pgsql: PG_FINALLY