mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
Change locktype "speculative token" to "spectoken".
It's just weird that this name wasn't chosen to look like an identifier. The suspicion that it wasn't thought about too hard is reinforced by the fact that it wasn't documented in the pg_locks view (until I did so, a day or two back). Update, and add a comment reminding future adjusters of this array to fix the docs too. Do some desultory wordsmithing on various entries in the wait events tables. Discussion: https://postgr.es/m/24595.1589326879@sss.pgh.pa.us
This commit is contained in:
@ -22,7 +22,10 @@
|
||||
#include "utils/builtins.h"
|
||||
|
||||
|
||||
/* This must match enum LockTagType! */
|
||||
/*
|
||||
* This must match enum LockTagType! Also, be sure to document any changes
|
||||
* in the docs for the pg_locks view and for wait event types.
|
||||
*/
|
||||
const char *const LockTagTypeNames[] = {
|
||||
"relation",
|
||||
"extend",
|
||||
@ -30,7 +33,7 @@ const char *const LockTagTypeNames[] = {
|
||||
"tuple",
|
||||
"transactionid",
|
||||
"virtualxid",
|
||||
"speculative token",
|
||||
"spectoken",
|
||||
"object",
|
||||
"userlock",
|
||||
"advisory"
|
||||
|
Reference in New Issue
Block a user