diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2022-11-30 13:01:41 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2022-11-30 13:01:41 -0500 |
commit | a949b7320fdfad445453375a1630f81f6bd3b49d (patch) | |
tree | 8d813cdf13aa40a6360273c5a7dc74b5f3d22dab /src/backend/executor/nodeModifyTable.c | |
parent | 5d208b90b75b00ff96095e4402a7cfa55f65f2ac (diff) | |
download | postgresql-a949b7320fdfad445453375a1630f81f6bd3b49d.tar.gz postgresql-a949b7320fdfad445453375a1630f81f6bd3b49d.zip |
Reject missing database name in pg_regress and cohorts.
Writing "pg_regress --dbname= ..." led to a crash, because
we weren't expecting there to be no database name supplied.
It doesn't seem like a great idea to run regression tests
in whatever is the user's default database; so rather than
supporting this case let's explicitly reject it.
Per report from Xing Guo. Back-patch to all supported
branches.
Discussion: https://postgr.es/m/CACpMh+A8cRvtvtOWVAZsCM1DU81GK4DL26R83y6ugZ1osV=ifA@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions