Re: Logical Replication of sequences
shveta malik <shveta.malik@gmail.com>
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Doc: Add documentation for sequence synchronization.
- 55cefadde874 19 (unreleased) landed
-
Remove unused assignment in CREATE PUBLICATION grammar.
- bfb7419b0bbe 19 (unreleased) landed
-
Add seq_sync_error_count to subscription statistics.
- f6a4c498dcf6 19 (unreleased) landed
-
Fix few issues in commit 5509055d69.
- 5a4eba558aa7 19 (unreleased) landed
-
Add sequence synchronization for logical replication.
- 5509055d6956 19 (unreleased) landed
-
Add worker type argument to logical replication worker functions.
- 3e8e05596a02 19 (unreleased) landed
-
Introduce "REFRESH SEQUENCES" for subscriptions.
- f0b3573c3aac 19 (unreleased) landed
-
Refactor logical worker synchronization code into a separate file.
- 41c674d2e31e 19 (unreleased) landed
-
Standardize use of REFRESH PUBLICATION in code and messages.
- 2436b8c047ff 19 (unreleased) landed
-
Add "ALL SEQUENCES" support to publications.
- 96b378497346 19 (unreleased) landed
-
Expose sequence page LSN via pg_get_sequence_data.
- b93172ca59f4 19 (unreleased) landed
-
Resume conflict-relevant data retention automatically.
- 0d48d393d465 19 (unreleased) cited
-
Post-commit review fixes for 228c370868.
- 1f7e9ba3ac4e 19 (unreleased) cited
-
Generate GUC tables from .dat file
- 63599896545c 19 (unreleased) cited
Please find a few more comments on July4 patch 6) + <para> + To synchronize sequences from a publisher to a subscriber, first publish + them using <link linkend="sql-createpublication-params-for-all-sequences"> + <command>CREATE PUBLICATION ... FOR ALL SEQUENCES</command></link>. + </para> This sentence looks odd, as we have 'first' but no follow-up sentence after that. Can we please combine this line with the next one in the doc saying: To synchronize sequences from a publisher to a subscriber, first publish them using CREATE PUBLICATION ... FOR ALL SEQUENCES and then at the subscriber side: 7) + <para> + This parameter is not applicable for sequences. + </para> It is mentioned 3 times in doc for publish, publish_generated_columns and publish_via_partition_root. Instead shall we mention it once for WITH-clause itself. Something like: This clause specifies optional parameters for a publication when publishing tables. This clause is not applicable for sequences. 8) + The view <structname>pg_publication_sequences</structname> provides + information about the mapping between publications and information of + sequences they contain. Why not: "The view pg_publication_sequences provides information about the mapping between publications and sequences." I think the existing detail has been written similar to 'pg_publication_tables' doc. But there, 'information of tables' made sense as pg_publication_tables has attnames and rowfilters too. But pg_publication_sequences OTOH just has the mapping between names. No other information. 9) + <sect2 id="sequence-definition-mismatches"> + <title>Sequence Definition Mismatches</title> + <warning> + <para> + During sequence synchronization, the sequence definitions of the publisher + and the subscriber are compared. Now in code, we give WARNING for missing sequences on publisher as well. Do we need to mention that here? IIUC, this WARNING for missing sequences can come only if the worker is respawned to sync unmatched/failed sequences and meanwhile any one of failed sequences is dropped on publisher. But it will be good to mention it briefly in doc. thanks Shveta