mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Rename WAIT_* constants to PG_WAIT_*.
Windows apparently has a constant named WAIT_TIMEOUT, and some of these other names are pretty generic, too. Insert "PG_" at the front of each name in order to disambiguate. Michael Paquier
This commit is contained in:
@ -715,15 +715,15 @@ typedef enum BackendState
|
||||
* Wait Classes
|
||||
* ----------
|
||||
*/
|
||||
#define WAIT_LWLOCK_NAMED 0x01000000U
|
||||
#define WAIT_LWLOCK_TRANCHE 0x02000000U
|
||||
#define WAIT_LOCK 0x03000000U
|
||||
#define WAIT_BUFFER_PIN 0x04000000U
|
||||
#define WAIT_ACTIVITY 0x05000000U
|
||||
#define WAIT_CLIENT 0x06000000U
|
||||
#define WAIT_EXTENSION 0x07000000U
|
||||
#define WAIT_IPC 0x08000000U
|
||||
#define WAIT_TIMEOUT 0x09000000U
|
||||
#define PG_WAIT_LWLOCK_NAMED 0x01000000U
|
||||
#define PG_WAIT_LWLOCK_TRANCHE 0x02000000U
|
||||
#define PG_WAIT_LOCK 0x03000000U
|
||||
#define PG_WAIT_BUFFER_PIN 0x04000000U
|
||||
#define PG_WAIT_ACTIVITY 0x05000000U
|
||||
#define PG_WAIT_CLIENT 0x06000000U
|
||||
#define PG_WAIT_EXTENSION 0x07000000U
|
||||
#define PG_WAIT_IPC 0x08000000U
|
||||
#define PG_WAIT_TIMEOUT 0x09000000U
|
||||
|
||||
/* ----------
|
||||
* Wait Events - Activity
|
||||
@ -735,7 +735,7 @@ typedef enum BackendState
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
WAIT_EVENT_ARCHIVER_MAIN = WAIT_ACTIVITY,
|
||||
WAIT_EVENT_ARCHIVER_MAIN = PG_WAIT_ACTIVITY,
|
||||
WAIT_EVENT_AUTOVACUUM_MAIN,
|
||||
WAIT_EVENT_BGWRITER_HIBERNATE,
|
||||
WAIT_EVENT_BGWRITER_MAIN,
|
||||
@ -759,7 +759,7 @@ typedef enum
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
WAIT_EVENT_CLIENT_READ = WAIT_CLIENT,
|
||||
WAIT_EVENT_CLIENT_READ = PG_WAIT_CLIENT,
|
||||
WAIT_EVENT_CLIENT_WRITE,
|
||||
WAIT_EVENT_SSL_OPEN_SERVER,
|
||||
WAIT_EVENT_WAL_RECEIVER_WAIT_START,
|
||||
@ -776,7 +776,7 @@ typedef enum
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
WAIT_EVENT_BGWORKER_SHUTDOWN = WAIT_IPC,
|
||||
WAIT_EVENT_BGWORKER_SHUTDOWN = PG_WAIT_IPC,
|
||||
WAIT_EVENT_BGWORKER_STARTUP,
|
||||
WAIT_EVENT_EXECUTE_GATHER,
|
||||
WAIT_EVENT_MQ_INTERNAL,
|
||||
@ -796,7 +796,7 @@ typedef enum
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
WAIT_EVENT_BASE_BACKUP_THROTTLE = WAIT_TIMEOUT,
|
||||
WAIT_EVENT_BASE_BACKUP_THROTTLE = PG_WAIT_TIMEOUT,
|
||||
WAIT_EVENT_PG_SLEEP,
|
||||
WAIT_EVENT_RECOVERY_APPLY_DELAY
|
||||
} WaitEventTimeout;
|
||||
|
Reference in New Issue
Block a user