Synopsis

The following functions are helpful for Row-level geo-partitioning, as they make it easier to insert rows from a user's server and select rows from the local partition.

Function Return Type Description
yb_is_local_table(oid) boolean Returns whether the given 'oid' is a table replicated only in the local region
yb_server_region() varchar Returns the region of the currently connected node
yb_server_zone() varchar Returns the zone of the currently connected node
yb_server_cloud() varchar Returns the cloud provider of the currently connected node