dblink: Avoid locking relation before privilege check.
Nathan Bossart <nathan@postgresql.org>
dblink: Avoid locking relation before privilege check. The present coding of dblink's get_rel_from_relname() predates the introduction of RangeVarGetRelidExtended(), which provides a way to check permissions before locking the relation. This commit adjusts get_rel_from_relname() to use that function. Reviewed-by: Jeff Davis <pgsql@j-davis.com> Discussion: https://postgr.es/m/aOgmi6avE6qMw_6t%40nathan
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +19 −10 |
Discussion
- Clarification on Role Access Rights to Table Indexes 53 messages · 2025-02-17 → 2025-10-17