-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOCS-1109-document-himesh-bdr-wait_node_confirm_lsn #6228
Merged
djw-m
merged 9 commits into
DOCS-1076-documenting-pgd-5-6-1-5-next
from
DOCS-1109-document-himesh-bdr-wait_node_confirm_lsn
Nov 13, 2024
Merged
DOCS-1109-document-himesh-bdr-wait_node_confirm_lsn #6228
djw-m
merged 9 commits into
DOCS-1076-documenting-pgd-5-6-1-5-next
from
DOCS-1109-document-himesh-bdr-wait_node_confirm_lsn
Nov 13, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Dj Walker-Morgan <[email protected]>
* Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
…dr_config-command-reference-only- DOCS-1077 - Added bdr_config - reformatted node state table.
Signed-off-by: Dj Walker-Morgan <[email protected]>
Signed-off-by: Dj Walker-Morgan <[email protected]>
…document-himesh-bdr-wait_node_confirm_lsn
djw-m
added
the
deploy
Add this label to a PR and it will automatically be deployed to netlify
label
Nov 12, 2024
github-actions
bot
temporarily deployed
to
pr-6228-docs-1109-document-himesh-bdr-wait_node_confirm_lsn
November 12, 2024 10:31
Inactive
sumarjee
reviewed
Nov 12, 2024
sumarjee
reviewed
Nov 12, 2024
github-actions
bot
temporarily deployed
to
pr-6228-docs-1109-document-himesh-bdr-wait_node_confirm_lsn
November 12, 2024 12:38
Inactive
sumarjee
reviewed
Nov 12, 2024
sumarjee
reviewed
Nov 12, 2024
Signed-off-by: Dj Walker-Morgan <[email protected]>
github-actions
bot
temporarily deployed
to
pr-6228-docs-1109-document-himesh-bdr-wait_node_confirm_lsn
November 12, 2024 14:39
Inactive
sumarjee
reviewed
Nov 13, 2024
How is the user supposed to know which (slot or pg_progression) is being
used when you’ve left it open that either could be being used.
…On Wed, 13 Nov 2024 at 06:21, sumarjee ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In product_docs/docs/pgd/5.6/reference/functions.mdx
<#6228 (comment)>:
> +| `target_lsn` | LSN to wait for. If NULL, uses the current write LSN on the local node. |
+
+### `bdr.wait_node_confirm_lsn`
+
+Wait until a node passes a certain LSN.
+
+This function allows you to wait until the last write on this session was replayed to one or all nodes.
+
+Upon being called, the function waits for a node to pass a certain LSN.
+If no LSN is supplied, the current wal_flush_lsn (using the `pg_current_wal_flush_lsn()` function) position is used on the local node.
+Supplying a node name parameter tells the function to wait for that node to pass the LSN.
+If no node name is supplied (by passing NULL), the function waits until all the nodes pass the LSN,
+
+The function operates by polling every 1000 ms for changes from other nodes. Those changes are detected either by looking up the `confirmed_flush_lsn` from the node's replication slot or by connecting to the node directly and querying the results of `pg_replication_origin_progress()`, passing the local node as origin.
+
+If you are confirming a specific node and the node is concurrently dropped, the wait for that node is ended. If a node is currently down, isn't updating or is simply not able to be connected to, the wait will continue indefinately. To avoid this, set the statement_timeout to the maximum amount of time you are prepared to wait.
If changes are detected by looking up the confirmed_flush_lsn from the
node's replication slot and the slot is dropped concurrently, the wait ends
for that node. If changes are detected by connecting to the node directly
and querying the results of pg_replication_origin_progress(), and the
node is currently down, the wait will continue indefinately. To avoid this,
set the statement_timeout to the maximum amount of time you are prepared to
wait.
—
Reply to this email directly, view it on GitHub
<#6228 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6E5CBZ6YYR2XOIYZJXJO232ALVVTAVCNFSM6AAAAABRTWA7VGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMZRHE4DSMRXG4>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Signed-off-by: Dj Walker-Morgan <[email protected]>
sumarjee
approved these changes
Nov 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine to me
djw-m
merged commit Nov 13, 2024
29d7675
into
DOCS-1076-documenting-pgd-5-6-1-5-next
2 of 3 checks passed
djw-m
deleted the
DOCS-1109-document-himesh-bdr-wait_node_confirm_lsn
branch
November 13, 2024 09:56
djw-m
added a commit
that referenced
this pull request
Nov 13, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
josh-heyer
pushed a commit
that referenced
this pull request
Nov 18, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
djw-m
added a commit
that referenced
this pull request
Nov 20, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
djw-m
added a commit
that referenced
this pull request
Nov 21, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
djw-m
added a commit
that referenced
this pull request
Nov 21, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
djw-m
added a commit
that referenced
this pull request
Nov 25, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
djw-m
added a commit
that referenced
this pull request
Nov 25, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
gvasquezvargas
pushed a commit
that referenced
this pull request
Nov 28, 2024
* Added bdr_config - reformatted node state table. Signed-off-by: Dj Walker-Morgan <[email protected]> * Known issues as of 30Oct update (#6195) * Known issues as of 30Oct update Signed-off-by: Dj Walker-Morgan <[email protected]> * small changes. --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]> * Update known issues for BFILE Signed-off-by: Dj Walker-Morgan <[email protected]> * bdr.wait_node_confirm_lsn added (and more table formatting in functions) Signed-off-by: Dj Walker-Morgan <[email protected]> * Update product_docs/docs/pgd/5.6/reference/functions.mdx * added timout and moved privilege info Signed-off-by: Dj Walker-Morgan <[email protected]> * Updated according to comments Signed-off-by: Dj Walker-Morgan <[email protected]> --------- Signed-off-by: Dj Walker-Morgan <[email protected]> Co-authored-by: Josh Earlenbaugh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Dj Walker-Morgan [email protected]
What Changed?
Added bdr.wait_node_confirm_lsn