postgresql/src/bin/pg_upgrade
Daniel Gustafsson 106f26a849 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
2023-03-21 12:57:21 +01:00
..
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
t initdb: derive encoding from locale for ICU; similar to libc. 2023-03-10 10:51:24 -08:00
.gitignore Re-add locally-generated files in pg_upgrade's .gitignore and Makefile 2022-06-15 15:36:16 +09:00
IMPLEMENTATION pg_upgrade: Preserve database OIDs. 2022-01-24 14:23:43 -05:00
Makefile pg_upgrade: copy locale and encoding information to new cluster. 2023-03-09 08:28:05 -08:00
TESTING Create common infrastructure for cross-version upgrade testing. 2023-01-16 20:35:55 -05:00
check.c Avoid using atooid for numerical comparisons which arent Oids 2023-03-21 12:57:21 +01:00
controldata.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dump.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
exec.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
file.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
function.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
info.c Fix 9637badd9f. 2023-03-09 10:26:47 -08:00
meson.build pg_upgrade: copy locale and encoding information to new cluster. 2023-03-09 08:28:05 -08:00
nls.mk Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
option.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
parallel.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade.c Fix incorrect format placeholders 2023-03-17 07:48:24 +01:00
pg_upgrade.h pg_upgrade: copy locale and encoding information to new cluster. 2023-03-09 08:28:05 -08:00
relfilenumber.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
server.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tablespace.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
util.c Try to fix pg_upgrade test on Windows, again. 2023-02-01 14:40:25 +13:00
version.c Update copyright for 2023 2023-01-02 15:00:37 -05:00