Server IP : 103.119.228.120 / Your IP : 3.145.63.148 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/local/ssl/local/ssl/local/ssl/local/ssl/include/pgsql/server/replication/ |
Upload File : |
/*------------------------------------------------------------------------- * * walprotocol.h * Definitions relevant to the streaming WAL transmission protocol. * * Portions Copyright (c) 2010-2012, PostgreSQL Global Development Group * * src/include/replication/walprotocol.h * *------------------------------------------------------------------------- */ #ifndef _WALPROTOCOL_H #define _WALPROTOCOL_H #include "access/xlogdefs.h" #include "datatype/timestamp.h" /* * All messages from WalSender must contain these fields to allow us to * correctly calculate the replication delay. */ typedef struct { /* Current end of WAL on the sender */ XLogRecPtr walEnd; /* Sender's system clock at the time of transmission */ TimestampTz sendTime; } WalSndrMessage; /* * Header for a WAL data message (message type 'w'). This is wrapped within * a CopyData message at the FE/BE protocol level. * * The header is followed by actual WAL data. Note that the data length is * not specified in the header --- it's just whatever remains in the message. * * walEnd and sendTime are not essential data, but are provided in case * the receiver wants to adjust its behavior depending on how far behind * it is. */ typedef struct { /* WAL start location of the data included in this message */ XLogRecPtr dataStart; /* Current end of WAL on the sender */ XLogRecPtr walEnd; /* Sender's system clock at the time of transmission */ TimestampTz sendTime; } WalDataMessageHeader; /* * Keepalive message from primary (message type 'k'). (lowercase k) * This is wrapped within a CopyData message at the FE/BE protocol level. * * Note that the data length is not specified here. */ typedef WalSndrMessage PrimaryKeepaliveMessage; /* * Reply message from standby (message type 'r'). This is wrapped within * a CopyData message at the FE/BE protocol level. * * Note that the data length is not specified here. */ typedef struct { /* * The xlog locations that have been written, flushed, and applied by * standby-side. These may be invalid if the standby-side is unable to or * chooses not to report these. */ XLogRecPtr write; XLogRecPtr flush; XLogRecPtr apply; /* Sender's system clock at the time of transmission */ TimestampTz sendTime; } StandbyReplyMessage; /* * Hot Standby feedback from standby (message type 'h'). This is wrapped within * a CopyData message at the FE/BE protocol level. * * Note that the data length is not specified here. */ typedef struct { /* * The current xmin and epoch from the standby, for Hot Standby feedback. * This may be invalid if the standby-side does not support feedback, or * Hot Standby is not yet available. */ TransactionId xmin; uint32 epoch; /* Sender's system clock at the time of transmission */ TimestampTz sendTime; } StandbyHSFeedbackMessage; /* * Maximum data payload in a WAL data message. Must be >= XLOG_BLCKSZ. * * We don't have a good idea of what a good value would be; there's some * overhead per message in both walsender and walreceiver, but on the other * hand sending large batches makes walsender less responsive to signals * because signals are checked only between messages. 128kB (with * default 8k blocks) seems like a reasonable guess for now. */ #define MAX_SEND_SIZE (XLOG_BLCKSZ * 16) #endif /* _WALPROTOCOL_H */