Avoid lost result of recursion (src/backend/optimizer/util/inherit.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Avoid lost result of recursion (src/backend/optimizer/util/inherit.c)
Date: 2022-12-21 00:14:48
Message-ID: CAEudQArohfB_Gy+hcH2-bANUkxgjJiP=ABq01_LgTNTbcNijag@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

IMO, I think that commit a61b1f7
<https://github.com/postgres/postgres/commit/a61b1f74823c9c4f79c95226a461f1e7a367764b>,
has an oversight.
Currently is losing the result of recursion of function
translate_col_privs_multilevel.

Once the variable result (Bitmapset pointer) is reassigned.

Without a test case for this patch.
But also, do not have a test case for the current thinko in head.

Pass regress check.

regards,
Ranier Vilela

Attachment Content-Type Size
avoid_lost_result_of_recursion.patch application/octet-stream 596 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2022-12-21 00:33:20 Re: Array initialisation notation in syscache.c
Previous Message Michael Paquier 2022-12-21 00:09:03 Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures