aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.c
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-03-21 12:57:21 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-03-21 12:57:21 +0100
commit106f26a849bbb760a270e9a3c586aeb73899e26a (patch)
treec178eabcbe0fd09545d66c9b657c1c192ae31031 /src/backend/executor/nodeProjectSet.c
parent4c8044c04455fe87dadefa4f7c69bfe6cdbe3cc5 (diff)
downloadpostgresql-106f26a849bbb760a270e9a3c586aeb73899e26a.tar.gz
postgresql-106f26a849bbb760a270e9a3c586aeb73899e26a.zip
Avoid using atooid for numerical comparisons which arent Oids
The check for the number of roles in the target cluster for an upgrade selects the existing roles and performs a COUNT(*) over the result. A value of one is the expected query result value indicating that only the install user is present in the new cluster. The result was converted with the function for converting a string containing an Oid into a numeric, which avoids potential overflow but makes the code less readable since it's not actually an Oid at all. Discussion: https://postgr.es/m/41AB5F1F-4389-4B25-9668-5C430375836C@yesql.se
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions