codekingpro/portable-devtools
114k
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>53.40. pg_publication</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-proc.html" title="53.39. pg_proc" /><link rel="next" href="catalog-pg-publication-namespace.html" title="53.41. pg_publication_namespace" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">53.40. <code class="structname">pg_publication</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="catalog-pg-proc.html" title="53.39. pg_proc">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="Chapter 53. System Catalogs">Up</a></td><th width="60%" align="center">Chapter 53. System Catalogs</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 16.3 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="catalog-pg-publication-namespace.html" title="53.41. pg_publication_namespace">Next</a></td></tr></table><hr /></div><div class="sect1" id="CATALOG-PG-PUBLICATION"><div class="titlepage"><div><div><h2 class="title" style="clear: both">53.40. <code class="structname">pg_publication</code> <a href="#CATALOG-PG-PUBLICATION" class="id_link">#</a></h2></div></div></div><a id="id-1.10.4.42.2" class="indexterm"></a><p>3 The catalog <code class="structname">pg_publication</code> contains all4 publications created in the database. For more on publications see5 <a class="xref" href="logical-replication-publication.html" title="31.1. Publication">Section 31.1</a>.6 </p><div class="table" id="id-1.10.4.42.4"><p class="title"><strong>Table 53.40. <code class="structname">pg_publication</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_publication Columns" border="1"><colgroup><col /></colgroup><thead><tr><th class="catalog_table_entry"><p class="column_definition">7 Column Type8 </p>9 <p>10 Description11 </p></th></tr></thead><tbody><tr><td class="catalog_table_entry"><p class="column_definition">12 <code class="structfield">oid</code> <code class="type">oid</code>13 </p>14 <p>15 Row identifier16 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">17 <code class="structfield">pubname</code> <code class="type">name</code>18 </p>19 <p>20 Name of the publication21 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">22 <code class="structfield">pubowner</code> <code class="type">oid</code>23 (references <a class="link" href="catalog-pg-authid.html" title="53.8. pg_authid"><code class="structname">pg_authid</code></a>.<code class="structfield">oid</code>)24 </p>25 <p>26 Owner of the publication27 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">28 <code class="structfield">puballtables</code> <code class="type">bool</code>29 </p>30 <p>31 If true, this publication automatically includes all tables32 in the database, including any that will be created in the future.33 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">34 <code class="structfield">pubinsert</code> <code class="type">bool</code>35 </p>36 <p>37 If true, <a class="xref" href="sql-insert.html" title="INSERT"><span class="refentrytitle">INSERT</span></a> operations are replicated for38 tables in the publication.39 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">40 <code class="structfield">pubupdate</code> <code class="type">bool</code>41 </p>42 <p>43 If true, <a class="xref" href="sql-update.html" title="UPDATE"><span class="refentrytitle">UPDATE</span></a> operations are replicated for44 tables in the publication.45 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">46 <code class="structfield">pubdelete</code> <code class="type">bool</code>47 </p>48 <p>49 If true, <a class="xref" href="sql-delete.html" title="DELETE"><span class="refentrytitle">DELETE</span></a> operations are replicated for50 tables in the publication.51 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">52 <code class="structfield">pubtruncate</code> <code class="type">bool</code>53 </p>54 <p>55 If true, <a class="xref" href="sql-truncate.html" title="TRUNCATE"><span class="refentrytitle">TRUNCATE</span></a> operations are replicated for56 tables in the publication.57 </p></td></tr><tr><td class="catalog_table_entry"><p class="column_definition">58 <code class="structfield">pubviaroot</code> <code class="type">bool</code>59 </p>60 <p>61 If true, operations on a leaf partition are replicated using the62 identity and schema of its topmost partitioned ancestor mentioned in the63 publication instead of its own.64 </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-proc.html" title="53.39. pg_proc">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html" title="Chapter 53. System Catalogs">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="catalog-pg-publication-namespace.html" title="53.41. pg_publication_namespace">Next</a></td></tr><tr><td width="40%" align="left" valign="top">53.39. <code class="structname">pg_proc</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 16.3 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 53.41. <code class="structname">pg_publication_namespace</code></td></tr></table></div></body></html>