Avoid lost result of recursion (src/backend/optimizer/util/inherit.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Avoid lost result of recursion (src/backend/optimizer/util/inherit.c)
Date
Msg-id CAEudQArohfB_Gy+hcH2-bANUkxgjJiP=ABq01_LgTNTbcNijag@mail.gmail.com
Whole thread Raw
Responses Re: Avoid lost result of recursion (src/backend/optimizer/util/inherit.c)  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers
Hi.

IMO, I think that commit a61b1f7, 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

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures
Next
From: Thomas Munro
Date:
Subject: Re: Array initialisation notation in syscache.c