Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
966fb05b
Commit
966fb05b
authored
Mar 06, 2011
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new files for syncrep missed in previous commit
parent
f24fa9c1
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
637 additions
and
0 deletions
+637
-0
src/backend/replication/syncrep.c
src/backend/replication/syncrep.c
+589
-0
src/include/replication/syncrep.h
src/include/replication/syncrep.h
+48
-0
No files found.
src/backend/replication/syncrep.c
0 → 100644
View file @
966fb05b
This diff is collapsed.
Click to expand it.
src/include/replication/syncrep.h
0 → 100644
View file @
966fb05b
/*-------------------------------------------------------------------------
*
* syncrep.h
* Exports from replication/syncrep.c.
*
* Portions Copyright (c) 2010-2010, PostgreSQL Global Development Group
*
* $PostgreSQL$
*
*-------------------------------------------------------------------------
*/
#ifndef _SYNCREP_H
#define _SYNCREP_H
#include "access/xlog.h"
#include "storage/proc.h"
#include "storage/shmem.h"
#include "storage/spin.h"
#include "utils/guc.h"
#define SyncRepRequested() (sync_rep_mode)
/* syncRepState */
#define SYNC_REP_NOT_WAITING 0
#define SYNC_REP_WAITING 1
#define SYNC_REP_WAIT_COMPLETE 2
#define SYNC_REP_MUST_DISCONNECT 3
/* user-settable parameters for synchronous replication */
extern
bool
sync_rep_mode
;
extern
int
sync_rep_timeout
;
extern
char
*
SyncRepStandbyNames
;
/* called by user backend */
extern
void
SyncRepWaitForLSN
(
XLogRecPtr
XactCommitLSN
);
/* callback at backend exit */
extern
void
SyncRepCleanupAtProcExit
(
int
code
,
Datum
arg
);
/* called by wal sender */
extern
void
SyncRepInitConfig
(
void
);
extern
void
SyncRepReleaseWaiters
(
void
);
/* called by various procs */
extern
int
SyncRepWakeQueue
(
bool
all
);
const
char
*
assign_synchronous_standby_names
(
const
char
*
newval
,
bool
doit
,
GucSource
source
);
#endif
/* _SYNCREP_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment