Skip to content

Commit

Permalink
Document RDB$PUBLICATIONS and RDB$PUBLICATION_TABLES
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed May 22, 2021
1 parent 59f8278 commit 5ac7164
Showing 1 changed file with 66 additions and 0 deletions.
Expand Up @@ -1609,6 +1609,72 @@ Used in conjunction with `RDB$RELATION_NAME` (see next).
|Package name of the procedure (or `NULL` for a top-level stored procedure)
|===

[[fblangref40-appx04-publications]]
== `RDB$PUBLICATIONS`

`RDB$PUBLICATIONS` stores the replication publications defined in the database.

[[fblangref40-appx04-tbl-pubs]]
[cols="<4m,<3m,<5", frame="all", options="header",stripes="none"]
|===
^| Column Name
^| Data Type
^| Description

|RDB$PUBLICATION_NAME
|CHAR(63)
|Publication name

|RDB$OWNER_NAME
|CHAR(63)
|The username of the user who created the publication

|RDB$SYSTEM_FLAG
|SMALLINT
|Flag:

`0` - user-defined +
`1` or higher - system-defined

|RDB$ACTIVE_FLAG
|SMALLINT
|Inactive (`0`) or active (`1`)

|RDB$AUTO_ENABLE
|SMALLINT
|Automatically add new tables to publication:

`0` - disabled +
`1` - enabled (tables are automatically added to this publication)
|===

[NOTE]
====
In Firebird 4.0 there is a single (pre-defined) publication named `RDB$DEFAULT`.
User-defined publications will be available in future Firebird releases.
====

[[fblangref40-appx04-publication-tables]]
== `RDB$PUBLICATION_TABLES`

`RDB$PUBLICATION_TABLES` stores the names of tables that are replicated as part of a publication.

[[fblangref40-appx04-tbl-pubtables]]
[cols="<4m,<3m,<5", frame="all", options="header",stripes="none"]
|===
^| Column Name
^| Data Type
^| Description

|RDB$PUBLICATION_NAME
|CHAR(63)
|Publication name

|RDB$TABLE_NAME
|CHAR(63)
|Table name
|===

[[fblangref-appx04-refconstr]]
== `RDB$REF_CONSTRAINTS`

Expand Down

0 comments on commit 5ac7164

Please sign in to comment.