diff options
| author | Nathan Bossart <nathan@postgresql.org> | 2025-10-14 12:20:48 -0500 |
|---|---|---|
| committer | Nathan Bossart <nathan@postgresql.org> | 2025-10-14 12:20:48 -0500 |
| commit | c9b299f6df983ff3b196677a625393c31598d86f (patch) | |
| tree | b06207adb7fa76654d97ae4dd5616f77c21219ee /src/backend/regex/regcomp.c | |
| parent | 4a8fb58671d36b8f6cb4f5c582b8dc5fa4d26702 (diff) | |
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
Diffstat (limited to 'src/backend/regex/regcomp.c')
0 files changed, 0 insertions, 0 deletions
