]> begriffs open source - ai-pg/blob - full-docs/src/sgml/html/catalog-pg-subscription-rel.html
PG 18 docs from https://ftp.postgresql.org/pub/source/v18.0/postgresql-18.0-docs...
[ai-pg] / full-docs / src / sgml / html / catalog-pg-subscription-rel.html
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>52.55. pg_subscription_rel</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="catalog-pg-subscription.html" title="52.54. pg_subscription" /><link rel="next" href="catalog-pg-tablespace.html" title="52.56. pg_tablespace" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">52.55. <code class="structname">pg_subscription_rel</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-subscription.html" title="52.54. pg_subscription">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="Chapter 52. System Catalogs">Up</a></td><th width="60%" align="center">Chapter 52. System Catalogs</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="catalog-pg-tablespace.html" title="52.56. pg_tablespace">Next</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-SUBSCRIPTION-REL"><div class="titlepage"><div><div><h2 class="title" style="clear: both">52.55. <code class="structname">pg_subscription_rel</code> <a href="#CATALOG-PG-SUBSCRIPTION-REL" class="id_link">#</a></h2></div></div></div><a id="id-1.10.4.57.2" class="indexterm"></a><p>
3    The catalog <code class="structname">pg_subscription_rel</code> contains the
4    state for each replicated relation in each subscription.  This is a
5    many-to-many mapping.
6   </p><p>
7    This catalog only contains tables known to the subscription after running
8    either <a class="link" href="sql-createsubscription.html" title="CREATE SUBSCRIPTION"><code class="command">CREATE SUBSCRIPTION</code></a> or
9    <a class="link" href="sql-altersubscription.html" title="ALTER SUBSCRIPTION"><code class="command">ALTER SUBSCRIPTION ... REFRESH
10    PUBLICATION</code></a>.
11   </p><div class="table" id="id-1.10.4.57.5"><p class="title"><strong>Table 52.55. <code class="structname">pg_subscription_rel</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_subscription_rel Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">
12        Column Type
13       </p>
14       <p>
15        Description
16       </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">
17        <code class="structfield">srsubid</code> <code class="type">oid</code>
18        (references <a class="link" href="catalog-pg-subscription.html" title="52.54. pg_subscription"><code class="structname">pg_subscription</code></a>.<code class="structfield">oid</code>)
19       </p>
20       <p>
21        Reference to subscription
22       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
23        <code class="structfield">srrelid</code> <code class="type">oid</code>
24        (references <a class="link" href="catalog-pg-class.html" title="52.11. pg_class"><code class="structname">pg_class</code></a>.<code class="structfield">oid</code>)
25       </p>
26       <p>
27        Reference to relation
28       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
29        <code class="structfield">srsubstate</code> <code class="type">char</code>
30       </p>
31       <p>
32        State code:
33        <code class="literal">i</code> = initialize,
34        <code class="literal">d</code> = data is being copied,
35        <code class="literal">f</code> = finished table copy,
36        <code class="literal">s</code> = synchronized,
37        <code class="literal">r</code> = ready (normal replication)
38       </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">
39        <code class="structfield">srsublsn</code> <code class="type">pg_lsn</code>
40       </p>
41       <p>
42        Remote LSN of the state change used for synchronization coordination
43        when in <code class="literal">s</code> or <code class="literal">r</code> states,
44        otherwise null
45       </p></td></tr></tbody></table></div></div><br class="table-break" /></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="catalog-pg-subscription.html" title="52.54. pg_subscription">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html" title="Chapter 52. System Catalogs">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="catalog-pg-tablespace.html" title="52.56. pg_tablespace">Next</a></td></tr><tr><td width="40%" align="left" valign="top">52.54. <code class="structname">pg_subscription</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.0 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 52.56. <code class="structname">pg_tablespace</code></td></tr></table></div></body></html>