aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-03-08 18:21:51 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2021-03-08 18:21:51 -0500
commitfe2b5386b2edb7d454fcab36bb3dfbbe272d362f (patch)
tree2ecd489b3bda7c92391b8cd00e9a4427c102b95e /src/backend/commands/async.c
parent21d5a065fd5f0ed71e0f6726a869c64d13716ceb (diff)
downloadpostgresql-fe2b5386b2edb7d454fcab36bb3dfbbe272d362f.tar.gz
postgresql-fe2b5386b2edb7d454fcab36bb3dfbbe272d362f.zip
Validate the OID argument of pg_import_system_collations().
"SELECT pg_import_system_collations(0)" caused an assertion failure. With a random nonzero argument --- or indeed with zero, in non-assert builds --- it would happily make pg_collation entries with garbage values of collnamespace. These are harmless as far as I can tell (unless maybe the OID happens to become used for a schema, later on?). In any case this isn't a security issue, since the function is superuser-only. But it seems like a gotcha for unwary DBAs, so let's add a check that the given OID belongs to some schema. Back-patch to v10 where this function was introduced.
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions