REPLICATION_GROUP_DANGLING_REFERENCES

functionsupportedReplication, failover & backupBusiness Critical+

docs.snowflake.com ↗

Information SchemaTable functions

Detects cases where an object that’s referenced in a replication group or failover group isn’t actually replicated to the secondary account. Snowflake refers to these types of references as dangling references. After you use this function to detect dangling references in your replication configuration, you can rearrange your replication groups or failover groups so that all of the referenced objects are included. Or, you can modify your SQL object hierarchy so that the referenced objects are part of a container such as a database or schema that’s included in the replication groups or failover groups. If you use multiple replication groups or failover groups, you might also specify the order of refresh operations to make sure that any objects that are required to resolve dangling references are replicated to the secondary account before the objects that refer to them. Important Pay special attention to any TRUE values in the IS_BLOCKING_REFRESH column. Both refresh and failover operations can’t proceed until you resolve those references. Database and share replication are available to all accounts. Replication of other account objects & failover/failback require Business Critical Edition (or higher). To inquire about upgrading, please contact Snowflake Support.

Syntax

REPLICATION_GROUP_DANGLING_REFERENCES( '<replication_or_failover_group_name>' )

Parameters

NameRequiredDescription
'replication_or_failover_group_name'requiredName of the replication group or failover group to check for dangling references. The entire name must be enclosed in single quotes.

Usage notes

Output

The function returns the following columns. Column Name | Data Type | Description REFERENCED_ENTITY_DOMAIN | VARCHAR | The domain of the entity referred to by the dangling reference. REFERENCED_ENTITY_NAME | VARCHAR | The fully qualified name of the entity referred to by the dangling reference. REFERENCING_ENTITY_DOMAIN | VARCHAR | The domain of the entity in the replication group with a dangling reference, for example, Table. REFERENCING_ENTITY_NAME | VARCHAR | The fully qualified name of the entity in the replication group with a dangling reference. REFERENCING_ENTITY_GROUPS | VARCHAR | A comma-separated list of all replication groups that contain the referencing entity, or NULL if no group contains that entity. IS_BLOCKING_REFRESH | BOOLEAN | If TRUE, replication refreshes and failovers will fail until this reference is resolved. If FALSE, Snowflake can perform those operations despite the dangling reference.

See also