Re: is_superuser versus set_config_option's parallelism check
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@lists.postgresql.org, Robert Haas <robertmhaas@gmail.com>
Date: 2024-08-10T18:38:03Z
Lists: pgsql-hackers
Nathan Bossart <nathandbossart@gmail.com> writes: > Regarding returning 0 instead of -1 for the parallel case, I think that > follows. While doing some additional research, I noticed this return value > was just added in December (commit 059de3c [0]). Before that, it > apparently assumed that elevel >= ERROR. With that and your analysis of > the call sites, it seems highly unlikely that changing it will cause any > problems. Hah ... so the failure to think clearly about which value to use was mine :-(. > For the errcode, I do see that we pretty consistently use > ERRCODE_INVALID_TRANSACTION_STATE for "can't do thing during a parallel > operation." In fact, it looks like all but one use is for parallel errors. OK, I'll leave that alone but will change the return code. regards, tom lane
Commits
-
Allow adjusting session_authorization and role in parallel workers.
- 364de74cff28 18.0 landed
- f3ab5d3a2d19 16.5 landed
- adf9808fa966 13.17 landed
- adc28d01e98b 12.21 landed
- 546a26b3d8df 14.14 landed
- 2f4e895be760 15.9 landed
- 2b8d33f66c13 17.0 landed
-
Fix failure to verify PGC_[SU_]BACKEND GUCs in pg_file_settings view.
- 059de3ca4766 17.0 cited