pgsql: pg_visibility: Restrict access to more relation types
pgsql: pg_visibility: Restrict access to more relation types
От:
Michael Paquier <michael@paquier.xyz>
Дата:
pg_visibility: Restrict access to more relation types Temporary relations of other sessions have their own local pages. Temporary and unlogged relations have no storage during recovery. pg_visibility did not check for either cases, leading to inconsistent results or confusing error messages, like some "ERROR: could not open file". This commit adds checks for both cases, so as a clean errors are returned instead of the previous mix of incorrect results or errors, depending on the function called and the relation whose information is requested. Author: Jim Jones Reported-by: Zsolt Parragi Reviewed-by: Kirill Reshke Reviewed-by: Michael Paquier Reviewed-by: Surya Poondla Discussion: https://postgr.es/m/82ba0876-6127-4770-b900-aa1bd52abfed@uni-muenster.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1ed083f90d29871b21d5b3d2351accf4a0d9ca81 Modified Files -------------- contrib/pg_visibility/pg_visibility.c | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-)