Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
890194f1
Commit
890194f1
authored
11 years ago
by
Robert Haas
Browse files
Options
Downloads
Patches
Plain Diff
Comment fixes related to logical decoding.
Andres Freund, per complaints by Peter Eisentraut.
parent
c5608ea2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/test_decoding/test_decoding.c
+1
-1
1 addition, 1 deletion
contrib/test_decoding/test_decoding.c
src/backend/replication/logical/logical.c
+6
-3
6 additions, 3 deletions
src/backend/replication/logical/logical.c
with
7 additions
and
4 deletions
contrib/test_decoding/test_decoding.c
+
1
−
1
View file @
890194f1
...
@@ -33,6 +33,7 @@
...
@@ -33,6 +33,7 @@
PG_MODULE_MAGIC
;
PG_MODULE_MAGIC
;
/* These must be available to pg_dlsym() */
extern
void
_PG_init
(
void
);
extern
void
_PG_init
(
void
);
extern
void
_PG_output_plugin_init
(
OutputPluginCallbacks
*
cb
);
extern
void
_PG_output_plugin_init
(
OutputPluginCallbacks
*
cb
);
...
@@ -43,7 +44,6 @@ typedef struct
...
@@ -43,7 +44,6 @@ typedef struct
bool
include_timestamp
;
bool
include_timestamp
;
}
TestDecodingData
;
}
TestDecodingData
;
/* These must be available to pg_dlsym() */
static
void
pg_decode_startup
(
LogicalDecodingContext
*
ctx
,
OutputPluginOptions
*
opt
,
static
void
pg_decode_startup
(
LogicalDecodingContext
*
ctx
,
OutputPluginOptions
*
opt
,
bool
is_init
);
bool
is_init
);
static
void
pg_decode_shutdown
(
LogicalDecodingContext
*
ctx
);
static
void
pg_decode_shutdown
(
LogicalDecodingContext
*
ctx
);
...
...
This diff is collapsed.
Click to expand it.
src/backend/replication/logical/logical.c
+
6
−
3
View file @
890194f1
...
@@ -12,14 +12,17 @@
...
@@ -12,14 +12,17 @@
* together provide logical decoding, primarily by providing so
* together provide logical decoding, primarily by providing so
* called LogicalDecodingContexts. The goal is to encapsulate most of the
* called LogicalDecodingContexts. The goal is to encapsulate most of the
* internal complexity for consumers of logical decoding, so they can
* internal complexity for consumers of logical decoding, so they can
* create and consume a changestream with a low amount of code.
* create and consume a changestream with a low amount of code. Builtin
* consumers are the walsender and SQL SRF interface, but it's possible to
* add further ones without changing core code, e.g. to consume changes in
* a bgworker.
*
*
* The idea is that a consumer provides three callbacks, one to read WAL,
* The idea is that a consumer provides three callbacks, one to read WAL,
* one to prepare a data write, and a final one for actually writing since
* one to prepare a data write, and a final one for actually writing since
* their implementation depends on the type of consumer. Check
* their implementation depends on the type of consumer. Check
* logicalfunc.c for an example implementation
s
of a fairly simple consumer
* logicalfunc
s
.c for an example implementation of a fairly simple consumer
* and a implementation of a WAL reading callback that's suitable for
* and a implementation of a WAL reading callback that's suitable for
* simple
r
consumers.
* simple consumers.
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment