sqlc-hs-0.2.0.0: test/golden/out.input
settings {
version: "2"
engine: "postgresql"
schema: "db/migrations"
queries: "db/queries.sql"
codegen {
out: "pulse-db"
plugin: "haskell"
options: "{\"cabal_default_extensions\":[\"NoFieldSelectors\"],\"cabal_package_name\":\"pulse-db\",\"haskell_module_prefix\":\"Pulse.Database\",\"overrides\":[{\"db_type\":\"x509_certificate\",\"haskell_type\":[{\"type\":\"Maybe (Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString)\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":true},{\"db_type\":\"private_key\",\"haskell_type\":[{\"type\":\"Maybe (Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString)\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":true},{\"db_type\":\"x509_certificate\",\"haskell_type\":[{\"type\":\"Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":false},{\"db_type\":\"private_key\",\"haskell_type\":[{\"type\":\"Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":false},{\"db_type\":\"check_expr\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.CheckExpr\"},\"nullable\":false},{\"db_type\":\"opcua_type\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValueType\"},\"nullable\":false},{\"db_type\":\"opcua_attribute_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeValue\"},\"nullable\":true},{\"db_type\":\"opcua_attribute_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeValue\"},\"nullable\":false},{\"db_type\":\"opcua_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValue\"},\"nullable\":false},{\"db_type\":\"opcua_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValue\"},\"nullable\":true},{\"db_type\":\"opcua_attribute_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeId\"},\"nullable\":false},{\"db_type\":\"opcua_attribute_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.OpcuaAttributeId\"},\"nullable\":true},{\"db_type\":\"opcua_node_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaNodeId\"},\"nullable\":false},{\"db_type\":\"opcua_node_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.OpcuaNodeId\"},\"nullable\":true},{\"db_type\":\"pg_catalog.timestamptz\",\"haskell_type\":{\"module\":\"Data.Time\",\"package\":\"time\",\"type\":\"Maybe Data.Time.UTCTime\"},\"nullable\":true},{\"db_type\":\"pg_catalog.timestamptz\",\"haskell_type\":{\"module\":\"Data.Time\",\"nullable\":false,\"package\":\"time\",\"type\":\"Data.Time.UTCTime\"}},{\"db_type\":\"pg_catalog.interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Data.Time.LocalTime.CalendarDiffTime\"}},{\"db_type\":\"interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Data.Time.LocalTime.CalendarDiffTime\"}},{\"db_type\":\"pg_catalog.interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Maybe Data.Time.LocalTime.CalendarDiffTime\"},\"nullable\":true},{\"db_type\":\"timezone\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.Timezone\"},\"nullable\":true},{\"db_type\":\"timezone\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.Timezone\"}}]}"
process { cmd: "dump.sh" }
}
}
catalog {
default_schema: "public"
schemas {
name: "public"
tables {
rel { name: "organizations" }
columns {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "organizations" }
type { name: "text" }
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "organizations" }
type { name: "timezone" }
}
columns {
name: "created_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "logins" }
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "organization_logins" }
columns {
name: "login_id"
not_null: true
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "role"
not_null: true
length: -1
table { name: "organization_logins" }
type { name: "organization_role" }
}
columns {
name: "created_at"
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "teams" }
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "team_members" }
columns {
name: "team_id"
not_null: true
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "login_id"
not_null: true
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "role"
not_null: true
length: -1
table { name: "team_members" }
type { name: "team_role" }
}
columns {
name: "created_at"
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "monitors" }
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
}
}
tables {
rel { name: "heartbeat_monitors" }
columns {
name: "id"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "varchar" }
}
columns {
name: "last_heartbeat"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "expected_interval"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "interval" }
}
columns {
name: "created_at"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_endpoint_credentials" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "name"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
}
columns {
name: "username"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
}
columns {
name: "password"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_endpoint_certificates" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "provided_by"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "certificate_provider" }
}
columns {
name: "subject"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
}
columns {
name: "issuer"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
}
columns {
name: "signature"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
}
columns {
name: "valid_from"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "valid_to"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "certificate"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "x509_certificate" }
}
columns {
name: "private_key"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "private_key" }
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_endpoint_monitors" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_node_monitors" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_attribute_values" }
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_node_id" }
}
columns {
name: "attribute_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_attribute_id" }
}
columns {
name: "value_type"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_type" }
}
columns {
name: "value_integral"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "value_float"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "float8" }
}
columns {
name: "value_bool"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "value_string"
length: -1
table { name: "opcua_attribute_values" }
type { name: "text" }
}
columns {
name: "value_status_code"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "value"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_value" }
}
columns {
name: "created_at"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "incidents" }
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_endpoint_incidents" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "description_template"
not_null: true
length: -1
table { name: "opcua_endpoint_incidents" }
type { name: "text" }
}
columns {
name: "opcua_attribute_values"
not_null: true
is_array: true
length: -1
table { name: "opcua_endpoint_incidents" }
type { name: "opcua_attribute_value" }
array_dims: 1
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "opcua_node_incidents" }
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "description_template"
not_null: true
length: -1
table { name: "opcua_node_incidents" }
type { name: "text" }
}
columns {
name: "opcua_attribute_values"
not_null: true
is_array: true
length: -1
table { name: "opcua_node_incidents" }
type { name: "opcua_attribute_value" }
array_dims: 1
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "incident_causes" }
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_causes" }
type { name: "serial8" }
}
columns {
name: "incident_id"
not_null: true
length: -1
table { name: "incident_causes" }
type { schema: "pg_catalog" name: "int8" }
}
}
tables {
rel { name: "incident_events" }
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "serial8" }
}
columns {
name: "incident_id"
not_null: true
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "type"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "event_type" }
}
columns {
name: "failing_monitor"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "notification_recipients"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "resolved_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "created_at"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "severities" }
columns {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "name"
not_null: true
length: -1
table { name: "severities" }
type { name: "text" }
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "created_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "escalation_policies" }
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "escalation_steps" }
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "delay_interval"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "interval" }
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "message_template"
length: -1
table { name: "escalation_steps" }
type { name: "text" }
}
columns {
name: "created_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "incident_escalations" }
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
tables {
rel { name: "escalation_notifications" }
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "incident_escalation_id"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int8" }
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int4" }
}
columns {
name: "notification_channel"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
}
columns {
name: "sent_at"
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "timestamptz" }
}
columns {
name: "delivery_status"
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
}
columns {
name: "error_message"
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
}
columns {
name: "created_at"
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "timestamptz" }
}
}
enums {
name: "organization_role"
vals: "owner"
vals: "admin"
vals: "member"
}
enums { name: "team_role" vals: "admin" vals: "member" }
enums {
name: "monitor_type"
vals: "heartbeat"
vals: "opcua_endpoint"
vals: "opcua_node"
}
enums {
name: "monitor_healthiness"
vals: "unknown"
vals: "healthy"
vals: "suspicious"
vals: "unhealthy"
}
enums {
name: "opcua_security_mode"
vals: "None"
vals: "Sign"
vals: "SignAndEncrypt"
}
enums {
name: "opcua_security_policy"
vals: "None"
vals: "Basic128Rsa15"
vals: "Basic256"
vals: "Basic256Sha256"
vals: "Aes128Sha256RsaOaep"
vals: "Aes256Sha256RsaPss"
}
enums {
name: "certificate_provider" vals: "pulse" vals: "customer"
}
enums {
name: "check_aggregation"
vals: "min"
vals: "max"
vals: "sum"
vals: "avg"
vals: "count"
}
enums {
name: "check_op"
vals: "eq"
vals: "neq"
vals: "lt"
vals: "le"
vals: "gt"
vals: "ge"
}
enums {
name: "incident_status"
vals: "created"
vals: "unacknowledged"
vals: "acknowledged"
vals: "resolved"
}
enums {
name: "event_type"
vals: "incident_started"
vals: "incident_acknowledged"
vals: "incident_resolved"
vals: "monitor_failed"
vals: "monitor_recovered"
vals: "email_notification_sent"
}
}
schemas { name: "pg_temp" }
schemas {
name: "pg_catalog"
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "tid" }
}
columns {
name: "aggfnoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggkind"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "char" }
}
columns {
name: "aggnumdirectargs"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "int2" }
}
columns {
name: "aggtransfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggfinalfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggcombinefn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggserialfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggdeserialfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggmtransfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggminvtransfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggmfinalfn"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "regproc" }
}
columns {
name: "aggfinalextra"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "bool" }
}
columns {
name: "aggmfinalextra"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "bool" }
}
columns {
name: "aggfinalmodify"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "char" }
}
columns {
name: "aggmfinalmodify"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "char" }
}
columns {
name: "aggsortop"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "oid" }
}
columns {
name: "aggtranstype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "oid" }
}
columns {
name: "aggtransspace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "int4" }
}
columns {
name: "aggmtranstype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "oid" }
}
columns {
name: "aggmtransspace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "int4" }
}
columns {
name: "agginitval"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "text" }
}
columns {
name: "aggminitval"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_aggregate"
}
type { name: "text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
columns {
name: "tableoid"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "oid" }
}
columns {
name: "amname"
not_null: true
length: 64
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "name" }
}
columns {
name: "amhandler"
not_null: true
length: 4
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "regproc" }
}
columns {
name: "amtype"
not_null: true
length: 1
table { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_am" }
type { name: "char" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amopfamily"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amoplefttype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amoprighttype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amopstrategy"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "int2" }
}
columns {
name: "amoppurpose"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "char" }
}
columns {
name: "amopopr"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amopmethod"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
columns {
name: "amopsortfamily"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amop"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "oid" }
}
columns {
name: "amprocfamily"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "oid" }
}
columns {
name: "amproclefttype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "oid" }
}
columns {
name: "amprocrighttype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "oid" }
}
columns {
name: "amprocnum"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "int2" }
}
columns {
name: "amproc"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_amproc"
}
type { name: "regproc" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "oid" }
}
columns {
name: "adrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "oid" }
}
columns {
name: "adnum"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "int2" }
}
columns {
name: "adbin"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attrdef"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "tid" }
}
columns {
name: "attrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "oid" }
}
columns {
name: "attname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "name" }
}
columns {
name: "atttypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "oid" }
}
columns {
name: "attstattarget"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int4" }
}
columns {
name: "attlen"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int2" }
}
columns {
name: "attnum"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int2" }
}
columns {
name: "attndims"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int4" }
}
columns {
name: "attcacheoff"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int4" }
}
columns {
name: "atttypmod"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int4" }
}
columns {
name: "attbyval"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "attalign"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "char" }
}
columns {
name: "attstorage"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "char" }
}
columns {
name: "attcompression"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "char" }
}
columns {
name: "attnotnull"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "atthasdef"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "atthasmissing"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "attidentity"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "char" }
}
columns {
name: "attgenerated"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "char" }
}
columns {
name: "attisdropped"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "attislocal"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "bool" }
}
columns {
name: "attinhcount"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "int4" }
}
columns {
name: "attcollation"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "oid" }
}
columns {
name: "attacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "_aclitem" }
}
columns {
name: "attoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "_text" }
}
columns {
name: "attfdwoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "_text" }
}
columns {
name: "attmissingval"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_attribute"
}
type { name: "anyarray" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "tid" }
}
columns {
name: "roleid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "oid" }
}
columns {
name: "member"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "oid" }
}
columns {
name: "grantor"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "oid" }
}
columns {
name: "admin_option"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_auth_members"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "oid" }
}
columns {
name: "rolname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "name" }
}
columns {
name: "rolsuper"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolinherit"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolcreaterole"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolcreatedb"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolcanlogin"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolreplication"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolbypassrls"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "bool" }
}
columns {
name: "rolconnlimit"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "int4" }
}
columns {
name: "rolpassword"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "text" }
}
columns {
name: "rolvaliduntil"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_authid"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
columns {
name: "name"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "name" }
}
columns {
name: "version"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "text" }
}
columns {
name: "installed"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "bool" }
}
columns {
name: "superuser"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "bool" }
}
columns {
name: "trusted"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "bool" }
}
columns {
name: "relocatable"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "bool" }
}
columns {
name: "schema"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "name" }
}
columns {
name: "requires"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "_name" }
}
columns {
name: "comment"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extension_versions"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extensions"
}
columns {
name: "name"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extensions"
}
type { name: "name" }
}
columns {
name: "default_version"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extensions"
}
type { name: "text" }
}
columns {
name: "installed_version"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extensions"
}
type { name: "text" }
}
columns {
name: "comment"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_available_extensions"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "text" }
}
columns {
name: "ident"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "text" }
}
columns {
name: "parent"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "text" }
}
columns {
name: "level"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int4" }
}
columns {
name: "total_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int8" }
}
columns {
name: "total_nblocks"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int8" }
}
columns {
name: "free_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int8" }
}
columns {
name: "free_chunks"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int8" }
}
columns {
name: "used_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_backend_memory_contexts"
}
type { name: "int8" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "oid" }
}
columns {
name: "castsource"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "oid" }
}
columns {
name: "casttarget"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "oid" }
}
columns {
name: "castfunc"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "oid" }
}
columns {
name: "castcontext"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "char" }
}
columns {
name: "castmethod"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cast"
}
type { name: "char" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "name" }
}
columns {
name: "relnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "reltype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "reloftype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relam"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relfilenode"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "reltablespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relpages"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "int4" }
}
columns {
name: "reltuples"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "float4" }
}
columns {
name: "relallvisible"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "int4" }
}
columns {
name: "reltoastrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relhasindex"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relisshared"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relpersistence"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "char" }
}
columns {
name: "relkind"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "char" }
}
columns {
name: "relnatts"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "int2" }
}
columns {
name: "relchecks"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "int2" }
}
columns {
name: "relhasrules"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relhastriggers"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relhassubclass"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relrowsecurity"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relforcerowsecurity"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relispopulated"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relreplident"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "char" }
}
columns {
name: "relispartition"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "bool" }
}
columns {
name: "relrewrite"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "oid" }
}
columns {
name: "relfrozenxid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "xid" }
}
columns {
name: "relminmxid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "xid" }
}
columns {
name: "relacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "_aclitem" }
}
columns {
name: "reloptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "_text" }
}
columns {
name: "relpartbound"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_class"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "oid" }
}
columns {
name: "collname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "name" }
}
columns {
name: "collnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "oid" }
}
columns {
name: "collowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "oid" }
}
columns {
name: "collprovider"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "char" }
}
columns {
name: "collisdeterministic"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "bool" }
}
columns {
name: "collencoding"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "int4" }
}
columns {
name: "collcollate"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "text" }
}
columns {
name: "collctype"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "text" }
}
columns {
name: "colliculocale"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "text" }
}
columns {
name: "collversion"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_collation"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_config"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_config"
}
type { name: "text" }
}
columns {
name: "setting"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_config"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "conname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "name" }
}
columns {
name: "connamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "contype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "char" }
}
columns {
name: "condeferrable"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "bool" }
}
columns {
name: "condeferred"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "bool" }
}
columns {
name: "convalidated"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "bool" }
}
columns {
name: "conrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "contypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "conindid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "conparentid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "confrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "oid" }
}
columns {
name: "confupdtype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "char" }
}
columns {
name: "confdeltype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "char" }
}
columns {
name: "confmatchtype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "char" }
}
columns {
name: "conislocal"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "bool" }
}
columns {
name: "coninhcount"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "int4" }
}
columns {
name: "connoinherit"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "bool" }
}
columns {
name: "conkey"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_int2" }
}
columns {
name: "confkey"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_int2" }
}
columns {
name: "conpfeqop"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_oid" }
}
columns {
name: "conppeqop"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_oid" }
}
columns {
name: "conffeqop"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_oid" }
}
columns {
name: "confdelsetcols"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_int2" }
}
columns {
name: "conexclop"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "_oid" }
}
columns {
name: "conbin"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_constraint"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "oid" }
}
columns {
name: "conname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "name" }
}
columns {
name: "connamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "oid" }
}
columns {
name: "conowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "oid" }
}
columns {
name: "conforencoding"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "int4" }
}
columns {
name: "contoencoding"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "int4" }
}
columns {
name: "conproc"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "regproc" }
}
columns {
name: "condefault"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_conversion"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "text" }
}
columns {
name: "statement"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "text" }
}
columns {
name: "is_holdable"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "bool" }
}
columns {
name: "is_binary"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "bool" }
}
columns {
name: "is_scrollable"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "bool" }
}
columns {
name: "creation_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_cursors"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "oid" }
}
columns {
name: "datname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "name" }
}
columns {
name: "datdba"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "oid" }
}
columns {
name: "encoding"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "int4" }
}
columns {
name: "datlocprovider"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "char" }
}
columns {
name: "datistemplate"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "bool" }
}
columns {
name: "datallowconn"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "bool" }
}
columns {
name: "datconnlimit"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "int4" }
}
columns {
name: "datfrozenxid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "xid" }
}
columns {
name: "datminmxid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "xid" }
}
columns {
name: "dattablespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "oid" }
}
columns {
name: "datcollate"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "text" }
}
columns {
name: "datctype"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "text" }
}
columns {
name: "daticulocale"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "text" }
}
columns {
name: "datcollversion"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "text" }
}
columns {
name: "datacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_database"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "tid" }
}
columns {
name: "setdatabase"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "oid" }
}
columns {
name: "setrole"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "oid" }
}
columns {
name: "setconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_db_role_setting"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "oid" }
}
columns {
name: "defaclrole"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "oid" }
}
columns {
name: "defaclnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "oid" }
}
columns {
name: "defaclobjtype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "char" }
}
columns {
name: "defaclacl"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_default_acl"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "tid" }
}
columns {
name: "classid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "oid" }
}
columns {
name: "objid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "oid" }
}
columns {
name: "objsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "int4" }
}
columns {
name: "refclassid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "oid" }
}
columns {
name: "refobjid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "oid" }
}
columns {
name: "refobjsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "int4" }
}
columns {
name: "deptype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_depend"
}
type { name: "char" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "tid" }
}
columns {
name: "objoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "oid" }
}
columns {
name: "classoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "oid" }
}
columns {
name: "objsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "int4" }
}
columns {
name: "description"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_description"
}
type { name: "text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "oid" }
}
columns {
name: "enumtypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "oid" }
}
columns {
name: "enumsortorder"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "float4" }
}
columns {
name: "enumlabel"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_enum"
}
type { name: "name" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "oid" }
}
columns {
name: "evtname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "name" }
}
columns {
name: "evtevent"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "name" }
}
columns {
name: "evtowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "oid" }
}
columns {
name: "evtfoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "oid" }
}
columns {
name: "evtenabled"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "char" }
}
columns {
name: "evttags"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_event_trigger"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "oid" }
}
columns {
name: "extname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "name" }
}
columns {
name: "extowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "oid" }
}
columns {
name: "extnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "oid" }
}
columns {
name: "extrelocatable"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "bool" }
}
columns {
name: "extversion"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "text" }
}
columns {
name: "extconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "_oid" }
}
columns {
name: "extcondition"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_extension"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
columns {
name: "sourcefile"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "text" }
}
columns {
name: "sourceline"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "int4" }
}
columns {
name: "seqno"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "int4" }
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "text" }
}
columns {
name: "setting"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "text" }
}
columns {
name: "applied"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "bool" }
}
columns {
name: "error"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_file_settings"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "oid" }
}
columns {
name: "fdwname"
not_null: true
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "name" }
}
columns {
name: "fdwowner"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "oid" }
}
columns {
name: "fdwhandler"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "oid" }
}
columns {
name: "fdwvalidator"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "oid" }
}
columns {
name: "fdwacl"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "_aclitem" }
}
columns {
name: "fdwoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_data_wrapper"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "oid" }
}
columns {
name: "srvname"
not_null: true
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "name" }
}
columns {
name: "srvowner"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "oid" }
}
columns {
name: "srvfdw"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "oid" }
}
columns {
name: "srvtype"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "text" }
}
columns {
name: "srvversion"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "text" }
}
columns {
name: "srvacl"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "_aclitem" }
}
columns {
name: "srvoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_foreign_server"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "tid" }
}
columns {
name: "ftrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "oid" }
}
columns {
name: "ftserver"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "oid" }
}
columns {
name: "ftoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_foreign_table"
}
type { name: "_text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_group" }
columns {
name: "groname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_group"
}
type { name: "name" }
}
columns {
name: "grosysid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_group"
}
type { name: "oid" }
}
columns {
name: "grolist"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_group"
}
type { name: "_oid" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
columns {
name: "line_number"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "int4" }
}
columns {
name: "type"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "text" }
}
columns {
name: "database"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "_text" }
}
columns {
name: "user_name"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "_text" }
}
columns {
name: "address"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "text" }
}
columns {
name: "netmask"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "text" }
}
columns {
name: "auth_method"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "text" }
}
columns {
name: "options"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "_text" }
}
columns {
name: "error"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_hba_file_rules"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
columns {
name: "line_number"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
type { name: "int4" }
}
columns {
name: "map_name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
type { name: "text" }
}
columns {
name: "sys_name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
type { name: "text" }
}
columns {
name: "pg_username"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
type { name: "text" }
}
columns {
name: "error"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_ident_file_mappings"
}
type { name: "text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "tid" }
}
columns {
name: "indexrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "oid" }
}
columns {
name: "indrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "oid" }
}
columns {
name: "indnatts"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "int2" }
}
columns {
name: "indnkeyatts"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "int2" }
}
columns {
name: "indisunique"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indnullsnotdistinct"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisprimary"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisexclusion"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indimmediate"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisclustered"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisvalid"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indcheckxmin"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisready"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indislive"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indisreplident"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "bool" }
}
columns {
name: "indkey"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "int2vector" }
}
columns {
name: "indcollation"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "oidvector" }
}
columns {
name: "indclass"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "oidvector" }
}
columns {
name: "indoption"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "int2vector" }
}
columns {
name: "indexprs"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "pg_node_tree" }
}
columns {
name: "indpred"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_index"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
type { name: "name" }
}
columns {
name: "indexname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
type { name: "name" }
}
columns {
name: "tablespace"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
type { name: "name" }
}
columns {
name: "indexdef"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_indexes"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "tid" }
}
columns {
name: "inhrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "oid" }
}
columns {
name: "inhparent"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "oid" }
}
columns {
name: "inhseqno"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "int4" }
}
columns {
name: "inhdetachpending"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_inherits"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "tid" }
}
columns {
name: "objoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "oid" }
}
columns {
name: "classoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "oid" }
}
columns {
name: "objsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "int4" }
}
columns {
name: "privtype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "char" }
}
columns {
name: "initprivs"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_init_privs"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "lanname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "name" }
}
columns {
name: "lanowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "lanispl"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "bool" }
}
columns {
name: "lanpltrusted"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "bool" }
}
columns {
name: "lanplcallfoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "laninline"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "lanvalidator"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "oid" }
}
columns {
name: "lanacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_language"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "tid" }
}
columns {
name: "loid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "oid" }
}
columns {
name: "pageno"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "int4" }
}
columns {
name: "data"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_largeobject"
}
type { name: "bytea" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "oid" }
}
columns {
name: "lomowner"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "oid" }
}
columns {
name: "lomacl"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_largeobject_metadata"
}
type { name: "_aclitem" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks" }
columns {
name: "locktype"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "text" }
}
columns {
name: "database"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "oid" }
}
columns {
name: "relation"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "oid" }
}
columns {
name: "page"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "int4" }
}
columns {
name: "tuple"
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "int2" }
}
columns {
name: "virtualxid"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "text" }
}
columns {
name: "transactionid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "xid" }
}
columns {
name: "classid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "oid" }
}
columns {
name: "objid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "oid" }
}
columns {
name: "objsubid"
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "int2" }
}
columns {
name: "virtualtransaction"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "text" }
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "int4" }
}
columns {
name: "mode"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "text" }
}
columns {
name: "granted"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "bool" }
}
columns {
name: "fastpath"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "bool" }
}
columns {
name: "waitstart"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_locks"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "name" }
}
columns {
name: "matviewname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "name" }
}
columns {
name: "matviewowner"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "name" }
}
columns {
name: "tablespace"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "name" }
}
columns {
name: "hasindexes"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "bool" }
}
columns {
name: "ispopulated"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "bool" }
}
columns {
name: "definition"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_matviews"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "oid" }
}
columns {
name: "nspname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "name" }
}
columns {
name: "nspowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "oid" }
}
columns {
name: "nspacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_namespace"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcmethod"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "name" }
}
columns {
name: "opcnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcfamily"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcintype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
columns {
name: "opcdefault"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "bool" }
}
columns {
name: "opckeytype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opclass"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "name" }
}
columns {
name: "oprnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprkind"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "char" }
}
columns {
name: "oprcanmerge"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "bool" }
}
columns {
name: "oprcanhash"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "bool" }
}
columns {
name: "oprleft"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprright"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprresult"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprcom"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprnegate"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "oid" }
}
columns {
name: "oprcode"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "regproc" }
}
columns {
name: "oprrest"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "regproc" }
}
columns {
name: "oprjoin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_operator"
}
type { name: "regproc" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "oid" }
}
columns {
name: "opfmethod"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "oid" }
}
columns {
name: "opfname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "name" }
}
columns {
name: "opfnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "oid" }
}
columns {
name: "opfowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_opfamily"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "oid" }
}
columns {
name: "parname"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "text" }
}
columns {
name: "paracl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_parameter_acl"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "tid" }
}
columns {
name: "partrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "oid" }
}
columns {
name: "partstrat"
not_null: true
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "char" }
}
columns {
name: "partnatts"
not_null: true
length: 2
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "int2" }
}
columns {
name: "partdefid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "oid" }
}
columns {
name: "partattrs"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "int2vector" }
}
columns {
name: "partclass"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "oidvector" }
}
columns {
name: "partcollation"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "oidvector" }
}
columns {
name: "partexprs"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_partitioned_table"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "name" }
}
columns {
name: "policyname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "name" }
}
columns {
name: "permissive"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "text" }
}
columns {
name: "roles"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "_name" }
}
columns {
name: "cmd"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "text" }
}
columns {
name: "qual"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "text" }
}
columns {
name: "with_check"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policies"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "oid" }
}
columns {
name: "polname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "name" }
}
columns {
name: "polrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "oid" }
}
columns {
name: "polcmd"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "char" }
}
columns {
name: "polpermissive"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "bool" }
}
columns {
name: "polroles"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "_oid" }
}
columns {
name: "polqual"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "pg_node_tree" }
}
columns {
name: "polwithcheck"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_policy"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "text" }
}
columns {
name: "statement"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "text" }
}
columns {
name: "prepare_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "timestamptz" }
}
columns {
name: "parameter_types"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "_regtype" }
}
columns {
name: "from_sql"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "bool" }
}
columns {
name: "generic_plans"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "int8" }
}
columns {
name: "custom_plans"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_statements"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
columns {
name: "transaction"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
type { name: "xid" }
}
columns {
name: "gid"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
type { name: "text" }
}
columns {
name: "prepared"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
type { name: "timestamptz" }
}
columns {
name: "owner"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
type { name: "name" }
}
columns {
name: "database"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_prepared_xacts"
}
type { name: "name" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "proname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "name" }
}
columns {
name: "pronamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "proowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "prolang"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "procost"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "float4" }
}
columns {
name: "prorows"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "float4" }
}
columns {
name: "provariadic"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "prosupport"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "regproc" }
}
columns {
name: "prokind"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "char" }
}
columns {
name: "prosecdef"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "bool" }
}
columns {
name: "proleakproof"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "bool" }
}
columns {
name: "proisstrict"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "bool" }
}
columns {
name: "proretset"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "bool" }
}
columns {
name: "provolatile"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "char" }
}
columns {
name: "proparallel"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "char" }
}
columns {
name: "pronargs"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "int2" }
}
columns {
name: "pronargdefaults"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "int2" }
}
columns {
name: "prorettype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oid" }
}
columns {
name: "proargtypes"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "oidvector" }
}
columns {
name: "proallargtypes"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_oid" }
}
columns {
name: "proargmodes"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_char" }
}
columns {
name: "proargnames"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_text" }
}
columns {
name: "proargdefaults"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "pg_node_tree" }
}
columns {
name: "protrftypes"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_oid" }
}
columns {
name: "prosrc"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "text" }
}
columns {
name: "probin"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "text" }
}
columns {
name: "prosqlbody"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "pg_node_tree" }
}
columns {
name: "proconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_text" }
}
columns {
name: "proacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_proc"
}
type { name: "_aclitem" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "oid" }
}
columns {
name: "pubname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "name" }
}
columns {
name: "pubowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "oid" }
}
columns {
name: "puballtables"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
columns {
name: "pubinsert"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
columns {
name: "pubupdate"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
columns {
name: "pubdelete"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
columns {
name: "pubtruncate"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
columns {
name: "pubviaroot"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_publication"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "oid" }
}
columns {
name: "pnpubid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "oid" }
}
columns {
name: "pnnspid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_namespace"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "oid" }
}
columns {
name: "prpubid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "oid" }
}
columns {
name: "prrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "oid" }
}
columns {
name: "prqual"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "pg_node_tree" }
}
columns {
name: "prattrs"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_rel"
}
type { name: "int2vector" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
columns {
name: "pubname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
type { name: "name" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
type { name: "name" }
}
columns {
name: "attnames"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
type { name: "_name" }
}
columns {
name: "rowfilter"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_publication_tables"
}
type { name: "text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "tid" }
}
columns {
name: "rngtypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "rngsubtype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "rngmultitypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "rngcollation"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "rngsubopc"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "oid" }
}
columns {
name: "rngcanonical"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "regproc" }
}
columns {
name: "rngsubdiff"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_range"
}
type { name: "regproc" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "tid" }
}
columns {
name: "roident"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "oid" }
}
columns {
name: "roname"
not_null: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin_status"
}
columns {
name: "local_id"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin_status"
}
type { name: "oid" }
}
columns {
name: "external_id"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin_status"
}
type { name: "text" }
}
columns {
name: "remote_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin_status"
}
type { name: "pg_lsn" }
}
columns {
name: "local_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_origin_status"
}
type { name: "pg_lsn" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
columns {
name: "slot_name"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "name" }
}
columns {
name: "plugin"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "name" }
}
columns {
name: "slot_type"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "text" }
}
columns {
name: "datoid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "oid" }
}
columns {
name: "database"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "name" }
}
columns {
name: "temporary"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "bool" }
}
columns {
name: "active"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "bool" }
}
columns {
name: "active_pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "int4" }
}
columns {
name: "xmin"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "xid" }
}
columns {
name: "catalog_xmin"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "xid" }
}
columns {
name: "restart_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "pg_lsn" }
}
columns {
name: "confirmed_flush_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "pg_lsn" }
}
columns {
name: "wal_status"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "text" }
}
columns {
name: "safe_wal_size"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "int8" }
}
columns {
name: "two_phase"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_replication_slots"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "oid" }
}
columns {
name: "rulename"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "name" }
}
columns {
name: "ev_class"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "oid" }
}
columns {
name: "ev_type"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "char" }
}
columns {
name: "ev_enabled"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "char" }
}
columns {
name: "is_instead"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "bool" }
}
columns {
name: "ev_qual"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "pg_node_tree" }
}
columns {
name: "ev_action"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rewrite"
}
type { name: "pg_node_tree" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles" }
columns {
name: "rolname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "name" }
}
columns {
name: "rolsuper"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolinherit"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolcreaterole"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolcreatedb"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolcanlogin"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolreplication"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolconnlimit"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "int4" }
}
columns {
name: "rolpassword"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "text" }
}
columns {
name: "rolvaliduntil"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "timestamptz" }
}
columns {
name: "rolbypassrls"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "bool" }
}
columns {
name: "rolconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "_text" }
}
columns {
name: "oid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_roles"
}
type { name: "oid" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rules" }
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rules"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rules"
}
type { name: "name" }
}
columns {
name: "rulename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rules"
}
type { name: "name" }
}
columns {
name: "definition"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_rules"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "tid" }
}
columns {
name: "objoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "oid" }
}
columns {
name: "classoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "oid" }
}
columns {
name: "objsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "int4" }
}
columns {
name: "provider"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "text" }
}
columns {
name: "label"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabel"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
columns {
name: "objoid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "oid" }
}
columns {
name: "classoid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "oid" }
}
columns {
name: "objsubid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "int4" }
}
columns {
name: "objtype"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "text" }
}
columns {
name: "objnamespace"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "oid" }
}
columns {
name: "objname"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "text" }
}
columns {
name: "provider"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "text" }
}
columns {
name: "label"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_seclabels"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "tid" }
}
columns {
name: "seqrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "oid" }
}
columns {
name: "seqtypid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "oid" }
}
columns {
name: "seqstart"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "int8" }
}
columns {
name: "seqincrement"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "int8" }
}
columns {
name: "seqmax"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "int8" }
}
columns {
name: "seqmin"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "int8" }
}
columns {
name: "seqcache"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "int8" }
}
columns {
name: "seqcycle"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequence"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "name" }
}
columns {
name: "sequencename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "name" }
}
columns {
name: "sequenceowner"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "name" }
}
columns {
name: "data_type"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "regtype" }
}
columns {
name: "start_value"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
columns {
name: "min_value"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
columns {
name: "max_value"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
columns {
name: "increment_by"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
columns {
name: "cycle"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "bool" }
}
columns {
name: "cache_size"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
columns {
name: "last_value"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_sequences"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "setting"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "unit"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "category"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "short_desc"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "extra_desc"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "context"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "vartype"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "source"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "min_val"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "max_val"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "enumvals"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "_text" }
}
columns {
name: "boot_val"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "reset_val"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "sourcefile"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "text" }
}
columns {
name: "sourceline"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "int4" }
}
columns {
name: "pending_restart"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_settings"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
columns {
name: "usename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "name" }
}
columns {
name: "usesysid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "oid" }
}
columns {
name: "usecreatedb"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "bool" }
}
columns {
name: "usesuper"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "bool" }
}
columns {
name: "userepl"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "bool" }
}
columns {
name: "usebypassrls"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "bool" }
}
columns {
name: "passwd"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "text" }
}
columns {
name: "valuntil"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "timestamptz" }
}
columns {
name: "useconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shadow"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "tid" }
}
columns {
name: "dbid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "classid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "objid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "objsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "int4" }
}
columns {
name: "refclassid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "refobjid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "oid" }
}
columns {
name: "deptype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdepend"
}
type { name: "char" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "tid" }
}
columns {
name: "objoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "oid" }
}
columns {
name: "classoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "oid" }
}
columns {
name: "description"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shdescription"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_shmem_allocations"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_shmem_allocations"
}
type { name: "text" }
}
columns {
name: "off"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_shmem_allocations"
}
type { name: "int8" }
}
columns {
name: "size"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_shmem_allocations"
}
type { name: "int8" }
}
columns {
name: "allocated_size"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_shmem_allocations"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "tid" }
}
columns {
name: "objoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "oid" }
}
columns {
name: "classoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "oid" }
}
columns {
name: "provider"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "text" }
}
columns {
name: "label"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_shseclabel"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "name" }
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "int4" }
}
columns {
name: "leader_pid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "int4" }
}
columns {
name: "usesysid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "oid" }
}
columns {
name: "usename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "name" }
}
columns {
name: "application_name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "client_addr"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "inet" }
}
columns {
name: "client_hostname"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "client_port"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "int4" }
}
columns {
name: "backend_start"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "timestamptz" }
}
columns {
name: "xact_start"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "timestamptz" }
}
columns {
name: "query_start"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "timestamptz" }
}
columns {
name: "state_change"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "timestamptz" }
}
columns {
name: "wait_event_type"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "wait_event"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "state"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "backend_xid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "xid" }
}
columns {
name: "backend_xmin"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "xid" }
}
columns {
name: "query_id"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "int8" }
}
columns {
name: "query"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
columns {
name: "backend_type"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_activity"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "name" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_live_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_dead_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_mod_since_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_ins_since_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "last_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autovacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autoanalyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "timestamptz" }
}
columns {
name: "vacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "autovacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "analyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
columns {
name: "autoanalyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_all_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
columns {
name: "archived_count"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "int8" }
}
columns {
name: "last_archived_wal"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "text" }
}
columns {
name: "last_archived_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "timestamptz" }
}
columns {
name: "failed_count"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "int8" }
}
columns {
name: "last_failed_wal"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "text" }
}
columns {
name: "last_failed_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "timestamptz" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_archiver"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
columns {
name: "checkpoints_timed"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "checkpoints_req"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "checkpoint_write_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "float8" }
}
columns {
name: "checkpoint_sync_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "float8" }
}
columns {
name: "buffers_checkpoint"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "buffers_clean"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "maxwritten_clean"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "buffers_backend"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "buffers_backend_fsync"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "buffers_alloc"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "int8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_bgwriter"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "name" }
}
columns {
name: "numbackends"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int4" }
}
columns {
name: "xact_commit"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "xact_rollback"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "blks_read"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "blks_hit"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "tup_returned"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "tup_fetched"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "tup_inserted"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "tup_updated"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "tup_deleted"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "conflicts"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "temp_files"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "temp_bytes"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "deadlocks"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "checksum_failures"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "checksum_last_failure"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "timestamptz" }
}
columns {
name: "blk_read_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "float8" }
}
columns {
name: "blk_write_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "float8" }
}
columns {
name: "session_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "float8" }
}
columns {
name: "active_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "float8" }
}
columns {
name: "idle_in_transaction_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "float8" }
}
columns {
name: "sessions"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "sessions_abandoned"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "sessions_fatal"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "sessions_killed"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "int8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_database"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "name" }
}
columns {
name: "confl_tablespace"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "int8" }
}
columns {
name: "confl_lock"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "int8" }
}
columns {
name: "confl_snapshot"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "int8" }
}
columns {
name: "confl_bufferpin"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "int8" }
}
columns {
name: "confl_deadlock"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_database_conflicts"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_gssapi"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_gssapi"
}
type { name: "int4" }
}
columns {
name: "gss_authenticated"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_gssapi"
}
type { name: "bool" }
}
columns {
name: "principal"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_gssapi"
}
type { name: "text" }
}
columns {
name: "encrypted"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_gssapi"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int4" }
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "name" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "oid" }
}
columns {
name: "phase"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "text" }
}
columns {
name: "sample_blks_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "sample_blks_scanned"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "ext_stats_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "ext_stats_computed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "child_tables_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "child_tables_done"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "int8" }
}
columns {
name: "current_child_table_relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_analyze"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "int4" }
}
columns {
name: "phase"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "text" }
}
columns {
name: "backup_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "int8" }
}
columns {
name: "backup_streamed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "int8" }
}
columns {
name: "tablespaces_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "int8" }
}
columns {
name: "tablespaces_streamed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_basebackup"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int4" }
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "name" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "oid" }
}
columns {
name: "command"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "text" }
}
columns {
name: "phase"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "text" }
}
columns {
name: "cluster_index_relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "oid" }
}
columns {
name: "heap_tuples_scanned"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int8" }
}
columns {
name: "heap_tuples_written"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int8" }
}
columns {
name: "heap_blks_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int8" }
}
columns {
name: "heap_blks_scanned"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int8" }
}
columns {
name: "index_rebuild_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_cluster"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "int4" }
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "name" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "oid" }
}
columns {
name: "command"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "text" }
}
columns {
name: "type"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "text" }
}
columns {
name: "bytes_processed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "int8" }
}
columns {
name: "bytes_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "int8" }
}
columns {
name: "tuples_processed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "int8" }
}
columns {
name: "tuples_excluded"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_copy"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int4" }
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "name" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "oid" }
}
columns {
name: "index_relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "oid" }
}
columns {
name: "command"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "text" }
}
columns {
name: "phase"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "text" }
}
columns {
name: "lockers_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "lockers_done"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "current_locker_pid"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "blocks_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "blocks_done"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "tuples_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "tuples_done"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "partitions_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
columns {
name: "partitions_done"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_create_index"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int4" }
}
columns {
name: "datid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "oid" }
}
columns {
name: "datname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "name" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "oid" }
}
columns {
name: "phase"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "text" }
}
columns {
name: "heap_blks_total"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
columns {
name: "heap_blks_scanned"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
columns {
name: "heap_blks_vacuumed"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
columns {
name: "index_vacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
columns {
name: "max_dead_tuples"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
columns {
name: "num_dead_tuples"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_progress_vacuum"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "timestamptz" }
}
columns {
name: "prefetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "skip_init"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "skip_new"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "skip_fpw"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "skip_rep"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int8" }
}
columns {
name: "wal_distance"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int4" }
}
columns {
name: "block_distance"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int4" }
}
columns {
name: "io_depth"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_recovery_prefetch"
}
type { name: "int4" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "int4" }
}
columns {
name: "usesysid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "oid" }
}
columns {
name: "usename"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "name" }
}
columns {
name: "application_name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "text" }
}
columns {
name: "client_addr"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "inet" }
}
columns {
name: "client_hostname"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "text" }
}
columns {
name: "client_port"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "int4" }
}
columns {
name: "backend_start"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "timestamptz" }
}
columns {
name: "backend_xmin"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "xid" }
}
columns {
name: "state"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "text" }
}
columns {
name: "sent_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "pg_lsn" }
}
columns {
name: "write_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "pg_lsn" }
}
columns {
name: "flush_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "pg_lsn" }
}
columns {
name: "replay_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "pg_lsn" }
}
columns {
name: "write_lag"
length: 16
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "interval" }
}
columns {
name: "flush_lag"
length: 16
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "interval" }
}
columns {
name: "replay_lag"
length: 16
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "interval" }
}
columns {
name: "sync_priority"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "int4" }
}
columns {
name: "sync_state"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "text" }
}
columns {
name: "reply_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
columns {
name: "slot_name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "text" }
}
columns {
name: "spill_txns"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "spill_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "spill_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "stream_txns"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "stream_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "stream_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "total_txns"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "total_bytes"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "int8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_replication_slots"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "text" }
}
columns {
name: "blks_zeroed"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "blks_hit"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "blks_read"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "blks_written"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "blks_exists"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "flushes"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "truncates"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "int8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_slru"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "int4" }
}
columns {
name: "ssl"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "bool" }
}
columns {
name: "version"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "text" }
}
columns {
name: "cipher"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "text" }
}
columns {
name: "bits"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "int4" }
}
columns {
name: "client_dn"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "text" }
}
columns {
name: "client_serial"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "numeric" }
}
columns {
name: "issuer_dn"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_ssl"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
columns {
name: "subid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "oid" }
}
columns {
name: "subname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "name" }
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "int4" }
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "oid" }
}
columns {
name: "received_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "pg_lsn" }
}
columns {
name: "last_msg_send_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "timestamptz" }
}
columns {
name: "last_msg_receipt_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "timestamptz" }
}
columns {
name: "latest_end_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "pg_lsn" }
}
columns {
name: "latest_end_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
columns {
name: "subid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
type { name: "oid" }
}
columns {
name: "subname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
type { name: "name" }
}
columns {
name: "apply_error_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
type { name: "int8" }
}
columns {
name: "sync_error_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
type { name: "int8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_subscription_stats"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "name" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_live_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_dead_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_mod_since_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_ins_since_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "last_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autovacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autoanalyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "timestamptz" }
}
columns {
name: "vacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "autovacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "analyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
columns {
name: "autoanalyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_sys_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
columns {
name: "funcid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "name" }
}
columns {
name: "funcname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "name" }
}
columns {
name: "calls"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "int8" }
}
columns {
name: "total_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "float8" }
}
columns {
name: "self_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_functions"
}
type { name: "float8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "name" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_live_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_dead_tup"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_mod_since_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_ins_since_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "last_vacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autovacuum"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_analyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "timestamptz" }
}
columns {
name: "last_autoanalyze"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "timestamptz" }
}
columns {
name: "vacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "autovacuum_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "analyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
columns {
name: "autoanalyze_count"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_user_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
columns {
name: "wal_records"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "int8" }
}
columns {
name: "wal_fpi"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "int8" }
}
columns {
name: "wal_bytes"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "numeric" }
}
columns {
name: "wal_buffers_full"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "int8" }
}
columns {
name: "wal_write"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "int8" }
}
columns {
name: "wal_sync"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "int8" }
}
columns {
name: "wal_write_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "float8" }
}
columns {
name: "wal_sync_time"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "float8" }
}
columns {
name: "stats_reset"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stat_wal"
}
type { name: "timestamptz" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
columns {
name: "pid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "int4" }
}
columns {
name: "status"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "text" }
}
columns {
name: "receive_start_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "pg_lsn" }
}
columns {
name: "receive_start_tli"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "int4" }
}
columns {
name: "written_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "pg_lsn" }
}
columns {
name: "flushed_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "pg_lsn" }
}
columns {
name: "received_tli"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "int4" }
}
columns {
name: "last_msg_send_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "timestamptz" }
}
columns {
name: "last_msg_receipt_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "timestamptz" }
}
columns {
name: "latest_end_lsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "pg_lsn" }
}
columns {
name: "latest_end_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "timestamptz" }
}
columns {
name: "slot_name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "text" }
}
columns {
name: "sender_host"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "text" }
}
columns {
name: "sender_port"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "int4" }
}
columns {
name: "conninfo"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_wal_receiver"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_all_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_sys_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
columns {
name: "funcid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "name" }
}
columns {
name: "funcname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "name" }
}
columns {
name: "calls"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "int8" }
}
columns {
name: "total_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "float8" }
}
columns {
name: "self_time"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_functions"
}
type { name: "float8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "name" }
}
columns {
name: "seq_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "seq_tup_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_scan"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_tup_fetch"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_ins"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_del"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
columns {
name: "n_tup_hot_upd"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stat_xact_user_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "name" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
type { name: "name" }
}
columns {
name: "blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
type { name: "int8" }
}
columns {
name: "blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_sequences"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "name" }
}
columns {
name: "heap_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "heap_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_all_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "name" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
type { name: "name" }
}
columns {
name: "blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
type { name: "int8" }
}
columns {
name: "blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_sequences"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "name" }
}
columns {
name: "heap_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "heap_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_sys_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "oid" }
}
columns {
name: "indexrelid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "name" }
}
columns {
name: "indexrelname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "name" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_indexes"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
type { name: "name" }
}
columns {
name: "blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
type { name: "int8" }
}
columns {
name: "blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_sequences"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
columns {
name: "relid"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "oid" }
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "name" }
}
columns {
name: "heap_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "heap_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "idx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "toast_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_read"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
columns {
name: "tidx_blks_hit"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statio_user_tables"
}
type { name: "int8" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "tid" }
}
columns {
name: "starelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "staattnum"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "stainherit"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "bool" }
}
columns {
name: "stanullfrac"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "float4" }
}
columns {
name: "stawidth"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int4" }
}
columns {
name: "stadistinct"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "float4" }
}
columns {
name: "stakind1"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "stakind2"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "stakind3"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "stakind4"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "stakind5"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "int2" }
}
columns {
name: "staop1"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "staop2"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "staop3"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "staop4"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "staop5"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stacoll1"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stacoll2"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stacoll3"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stacoll4"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stacoll5"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "oid" }
}
columns {
name: "stanumbers1"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "_float4" }
}
columns {
name: "stanumbers2"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "_float4" }
}
columns {
name: "stanumbers3"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "_float4" }
}
columns {
name: "stanumbers4"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "_float4" }
}
columns {
name: "stanumbers5"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "_float4" }
}
columns {
name: "stavalues1"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "anyarray" }
}
columns {
name: "stavalues2"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "anyarray" }
}
columns {
name: "stavalues3"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "anyarray" }
}
columns {
name: "stavalues4"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "anyarray" }
}
columns {
name: "stavalues5"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic"
}
type { name: "anyarray" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "oid" }
}
columns {
name: "stxrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "oid" }
}
columns {
name: "stxname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "name" }
}
columns {
name: "stxnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "oid" }
}
columns {
name: "stxowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "oid" }
}
columns {
name: "stxstattarget"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "int4" }
}
columns {
name: "stxkeys"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "int2vector" }
}
columns {
name: "stxkind"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "_char" }
}
columns {
name: "stxexprs"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_statistic_ext"
}
type { name: "pg_node_tree" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "tid" }
}
columns {
name: "stxoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "oid" }
}
columns {
name: "stxdinherit"
not_null: true
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "bool" }
}
columns {
name: "stxdndistinct"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "pg_ndistinct" }
}
columns {
name: "stxddependencies"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "pg_dependencies" }
}
columns {
name: "stxdmcv"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "pg_mcv_list" }
}
columns {
name: "stxdexpr"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_statistic_ext_data"
}
type { name: "_pg_statistic" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats" }
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "name" }
}
columns {
name: "attname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "name" }
}
columns {
name: "inherited"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "bool" }
}
columns {
name: "null_frac"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "float4" }
}
columns {
name: "avg_width"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "int4" }
}
columns {
name: "n_distinct"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "float4" }
}
columns {
name: "most_common_vals"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "anyarray" }
}
columns {
name: "most_common_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "_float4" }
}
columns {
name: "histogram_bounds"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "anyarray" }
}
columns {
name: "correlation"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "float4" }
}
columns {
name: "most_common_elems"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "anyarray" }
}
columns {
name: "most_common_elem_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "_float4" }
}
columns {
name: "elem_count_histogram"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats"
}
type { name: "_float4" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "name" }
}
columns {
name: "statistics_schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "name" }
}
columns {
name: "statistics_name"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "name" }
}
columns {
name: "statistics_owner"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "name" }
}
columns {
name: "attnames"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_name" }
}
columns {
name: "exprs"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_text" }
}
columns {
name: "kinds"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_char" }
}
columns {
name: "inherited"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "bool" }
}
columns {
name: "n_distinct"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "pg_ndistinct" }
}
columns {
name: "dependencies"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "pg_dependencies" }
}
columns {
name: "most_common_vals"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_text" }
}
columns {
name: "most_common_val_nulls"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_bool" }
}
columns {
name: "most_common_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_float8" }
}
columns {
name: "most_common_base_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_stats_ext"
}
type { name: "_float8" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "name" }
}
columns {
name: "statistics_schemaname"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "name" }
}
columns {
name: "statistics_name"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "name" }
}
columns {
name: "statistics_owner"
length: 64
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "name" }
}
columns {
name: "expr"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "text" }
}
columns {
name: "inherited"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "bool" }
}
columns {
name: "null_frac"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "float4" }
}
columns {
name: "avg_width"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "int4" }
}
columns {
name: "n_distinct"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "float4" }
}
columns {
name: "most_common_vals"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "anyarray" }
}
columns {
name: "most_common_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "_float4" }
}
columns {
name: "histogram_bounds"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "anyarray" }
}
columns {
name: "correlation"
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "float4" }
}
columns {
name: "most_common_elems"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "anyarray" }
}
columns {
name: "most_common_elem_freqs"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "_float4" }
}
columns {
name: "elem_count_histogram"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_stats_ext_exprs"
}
type { name: "_float4" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "oid" }
}
columns {
name: "subdbid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "oid" }
}
columns {
name: "subskiplsn"
not_null: true
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "pg_lsn" }
}
columns {
name: "subname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "name" }
}
columns {
name: "subowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "oid" }
}
columns {
name: "subenabled"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "bool" }
}
columns {
name: "subbinary"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "bool" }
}
columns {
name: "substream"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "bool" }
}
columns {
name: "subtwophasestate"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "char" }
}
columns {
name: "subdisableonerr"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "bool" }
}
columns {
name: "subconninfo"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "text" }
}
columns {
name: "subslotname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "name" }
}
columns {
name: "subsynccommit"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "text" }
}
columns {
name: "subpublications"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_subscription"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "tid" }
}
columns {
name: "srsubid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "oid" }
}
columns {
name: "srrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "oid" }
}
columns {
name: "srsubstate"
not_null: true
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "char" }
}
columns {
name: "srsublsn"
length: 8
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_subscription_rel"
}
type { name: "pg_lsn" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "name" }
}
columns {
name: "tablename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "name" }
}
columns {
name: "tableowner"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "name" }
}
columns {
name: "tablespace"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "name" }
}
columns {
name: "hasindexes"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "bool" }
}
columns {
name: "hasrules"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "bool" }
}
columns {
name: "hastriggers"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "bool" }
}
columns {
name: "rowsecurity"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tables"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "oid" }
}
columns {
name: "spcname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "name" }
}
columns {
name: "spcowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "oid" }
}
columns {
name: "spcacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "_aclitem" }
}
columns {
name: "spcoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_tablespace"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_abbrevs"
}
columns {
name: "abbrev"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_abbrevs"
}
type { name: "text" }
}
columns {
name: "utc_offset"
length: 16
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_abbrevs"
}
type { name: "interval" }
}
columns {
name: "is_dst"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_abbrevs"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_names"
}
columns {
name: "name"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_names"
}
type { name: "text" }
}
columns {
name: "abbrev"
length: -1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_names"
}
type { name: "text" }
}
columns {
name: "utc_offset"
length: 16
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_names"
}
type { name: "interval" }
}
columns {
name: "is_dst"
length: 1
table {
catalog: "pg_catalog"
schema: "pg_catalog"
name: "pg_timezone_names"
}
type { name: "bool" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "oid" }
}
columns {
name: "trftype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "oid" }
}
columns {
name: "trflang"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "oid" }
}
columns {
name: "trffromsql"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "regproc" }
}
columns {
name: "trftosql"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_transform"
}
type { name: "regproc" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgparentid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "name" }
}
columns {
name: "tgfoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgtype"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "int2" }
}
columns {
name: "tgenabled"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "char" }
}
columns {
name: "tgisinternal"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "bool" }
}
columns {
name: "tgconstrrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgconstrindid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgconstraint"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "oid" }
}
columns {
name: "tgdeferrable"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "bool" }
}
columns {
name: "tginitdeferred"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "bool" }
}
columns {
name: "tgnargs"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "int2" }
}
columns {
name: "tgattr"
not_null: true
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "int2vector" }
}
columns {
name: "tgargs"
not_null: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "bytea" }
}
columns {
name: "tgqual"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "pg_node_tree" }
}
columns {
name: "tgoldtable"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "name" }
}
columns {
name: "tgnewtable"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_trigger"
}
type { name: "name" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "oid" }
}
columns {
name: "cfgname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "name" }
}
columns {
name: "cfgnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "oid" }
}
columns {
name: "cfgowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "oid" }
}
columns {
name: "cfgparser"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "tid" }
}
columns {
name: "mapcfg"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "oid" }
}
columns {
name: "maptokentype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "int4" }
}
columns {
name: "mapseqno"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "int4" }
}
columns {
name: "mapdict"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_config_map"
}
type { name: "oid" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "oid" }
}
columns {
name: "dictname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "name" }
}
columns {
name: "dictnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "oid" }
}
columns {
name: "dictowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "oid" }
}
columns {
name: "dicttemplate"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "oid" }
}
columns {
name: "dictinitoption"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_dict"
}
type { name: "text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "oid" }
}
columns {
name: "prsname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "name" }
}
columns {
name: "prsnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "oid" }
}
columns {
name: "prsstart"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "regproc" }
}
columns {
name: "prstoken"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "regproc" }
}
columns {
name: "prsend"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "regproc" }
}
columns {
name: "prsheadline"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "regproc" }
}
columns {
name: "prslextype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_parser"
}
type { name: "regproc" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "oid" }
}
columns {
name: "tmplname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "name" }
}
columns {
name: "tmplnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "oid" }
}
columns {
name: "tmplinit"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "regproc" }
}
columns {
name: "tmpllexize"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_ts_template"
}
type { name: "regproc" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type" }
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typname"
not_null: true
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "name" }
}
columns {
name: "typnamespace"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typowner"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typlen"
not_null: true
length: 2
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "int2" }
}
columns {
name: "typbyval"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "bool" }
}
columns {
name: "typtype"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "char" }
}
columns {
name: "typcategory"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "char" }
}
columns {
name: "typispreferred"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "bool" }
}
columns {
name: "typisdefined"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "bool" }
}
columns {
name: "typdelim"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "char" }
}
columns {
name: "typrelid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typsubscript"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typelem"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typarray"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typinput"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typoutput"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typreceive"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typsend"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typmodin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typmodout"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typanalyze"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "regproc" }
}
columns {
name: "typalign"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "char" }
}
columns {
name: "typstorage"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "char" }
}
columns {
name: "typnotnull"
not_null: true
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "bool" }
}
columns {
name: "typbasetype"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typtypmod"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "int4" }
}
columns {
name: "typndims"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "int4" }
}
columns {
name: "typcollation"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "oid" }
}
columns {
name: "typdefaultbin"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "pg_node_tree" }
}
columns {
name: "typdefault"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "text" }
}
columns {
name: "typacl"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_type"
}
type { name: "_aclitem" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user" }
columns {
name: "usename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "name" }
}
columns {
name: "usesysid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "oid" }
}
columns {
name: "usecreatedb"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "bool" }
}
columns {
name: "usesuper"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "bool" }
}
columns {
name: "userepl"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "bool" }
}
columns {
name: "usebypassrls"
length: 1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "bool" }
}
columns {
name: "passwd"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "text" }
}
columns {
name: "valuntil"
length: 8
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "timestamptz" }
}
columns {
name: "useconfig"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "tid" }
}
columns {
name: "oid"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "oid" }
}
columns {
name: "umuser"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "oid" }
}
columns {
name: "umserver"
not_null: true
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "oid" }
}
columns {
name: "umoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mapping"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
columns {
name: "umid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "oid" }
}
columns {
name: "srvid"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "oid" }
}
columns {
name: "srvname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "name" }
}
columns {
name: "umuser"
length: 4
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "oid" }
}
columns {
name: "usename"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "name" }
}
columns {
name: "umoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_user_mappings"
}
type { name: "_text" }
}
}
tables {
rel { catalog: "pg_catalog" schema: "pg_catalog" name: "pg_views" }
columns {
name: "schemaname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_views"
}
type { name: "name" }
}
columns {
name: "viewname"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_views"
}
type { name: "name" }
}
columns {
name: "viewowner"
length: 64
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_views"
}
type { name: "name" }
}
columns {
name: "definition"
length: -1
table {
catalog: "pg_catalog" schema: "pg_catalog" name: "pg_views"
}
type { name: "text" }
}
}
}
schemas {
name: "information_schema"
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
columns {
name: "oid"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "oid" }
}
columns {
name: "fdwowner"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "oid" }
}
columns {
name: "fdwoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "_text" }
}
columns {
name: "foreign_data_wrapper_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_language"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_data_wrappers"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
columns {
name: "oid"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "oid" }
}
columns {
name: "srvoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "_text" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "character_data" }
}
columns {
name: "foreign_server_version"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "character_data" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_servers"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_table_columns"
}
columns {
name: "nspname"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_table_columns"
}
type { name: "name" }
}
columns {
name: "relname"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_table_columns"
}
type { name: "name" }
}
columns {
name: "attname"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_table_columns"
}
type { name: "name" }
}
columns {
name: "attfdwoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_table_columns"
}
type { name: "_text" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
columns {
name: "foreign_table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "ftoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "_text" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_foreign_tables"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
columns {
name: "oid"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "oid" }
}
columns {
name: "umoptions"
is_array: true
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "_text" }
}
columns {
name: "umuser"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "oid" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "sql_identifier" }
}
columns {
name: "srvowner"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "_pg_user_mappings"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "administrable_role_authorizations"
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "administrable_role_authorizations"
}
type { name: "sql_identifier" }
}
columns {
name: "role_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "administrable_role_authorizations"
}
type { name: "sql_identifier" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "administrable_role_authorizations"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "applicable_roles"
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "applicable_roles"
}
type { name: "sql_identifier" }
}
columns {
name: "role_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "applicable_roles"
}
type { name: "sql_identifier" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "applicable_roles"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "attribute_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "ordinal_position"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "attribute_default"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "character_data" }
}
columns {
name: "is_nullable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "yes_or_no" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "attribute_udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "attribute_udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "attribute_udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "sql_identifier" }
}
columns {
name: "is_derived_reference_attribute"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "attributes"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "character_repertoire"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "form_of_use"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "default_collate_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "default_collate_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
columns {
name: "default_collate_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "character_sets"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraint_routine_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraints"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "check_clause"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "check_constraints"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collation_character_set_applicability"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "collations"
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collations"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collations"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collations"
}
type { name: "sql_identifier" }
}
columns {
name: "pad_attribute"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "collations"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "dependent_column"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_column_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
columns {
name: "domain_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_domain_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_options"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_privileges"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "column_udt_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "ordinal_position"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "column_default"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "is_nullable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "yes_or_no" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "sql_identifier" }
}
columns {
name: "is_self_referencing"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "yes_or_no" }
}
columns {
name: "is_identity"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "yes_or_no" }
}
columns {
name: "identity_generation"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "identity_start"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "identity_increment"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "identity_maximum"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "identity_minimum"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "identity_cycle"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "yes_or_no" }
}
columns {
name: "is_generated"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "generation_expression"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "character_data" }
}
columns {
name: "is_updatable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "columns"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_column_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "constraint_table_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
columns {
name: "object_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
type { name: "character_data" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "data_type_privileges"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "is_deferrable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "yes_or_no" }
}
columns {
name: "initially_deferred"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_constraints"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "domain_udt_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
columns {
name: "domain_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "domain_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "domain_default"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "character_data" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "domains"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
columns {
name: "object_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "object_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "object_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "object_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "character_data" }
}
columns {
name: "collection_type_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "domain_default"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "character_data" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "element_types"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "enabled_roles"
}
columns {
name: "role_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "enabled_roles"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrapper_options"
}
columns {
name: "foreign_data_wrapper_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrapper_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrapper_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrapper_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrapper_options"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
columns {
name: "foreign_data_wrapper_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
type { name: "sql_identifier" }
}
columns {
name: "library_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
type { name: "character_data" }
}
columns {
name: "foreign_data_wrapper_language"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_data_wrappers"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_server_options"
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_server_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_server_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_server_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_server_options"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_data_wrapper_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "character_data" }
}
columns {
name: "foreign_server_version"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "character_data" }
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_servers"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
columns {
name: "foreign_table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_table_options"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
columns {
name: "foreign_table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "foreign_tables"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "information_schema_catalog_name"
}
columns {
name: "catalog_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "information_schema_catalog_name"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "ordinal_position"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "cardinal_number" }
}
columns {
name: "position_in_unique_constraint"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "key_column_usage"
}
type { name: "cardinal_number" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "ordinal_position"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "parameter_mode"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "character_data" }
}
columns {
name: "is_result"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "yes_or_no" }
}
columns {
name: "as_locator"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "yes_or_no" }
}
columns {
name: "parameter_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "sql_identifier" }
}
columns {
name: "parameter_default"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "parameters"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "unique_constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "unique_constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "unique_constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "match_option"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "character_data" }
}
columns {
name: "update_rule"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "character_data" }
}
columns {
name: "delete_rule"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "referential_constraints"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_column_grants"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_routine_grants"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "yes_or_no" }
}
columns {
name: "with_hierarchy"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_table_grants"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_udt_grants"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "object_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "object_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "object_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "sql_identifier" }
}
columns {
name: "object_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "character_data" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "role_usage_grants"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_column_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_privileges"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_routine_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "sequence_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "sequence_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "sequence_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_sequence_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "routine_table_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "module_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "module_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "module_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "type_udt_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "type_udt_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "type_udt_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "scope_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "maximum_cardinality"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "dtd_identifier"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "routine_body"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "routine_definition"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "external_name"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "external_language"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "parameter_style"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "is_deterministic"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "sql_data_access"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "is_null_call"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "sql_path"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "schema_level_routine"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "max_dynamic_result_sets"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "is_user_defined_cast"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "is_implicitly_invocable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "security_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "to_sql_specific_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "to_sql_specific_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "to_sql_specific_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "as_locator"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "created"
length: 8
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "time_stamp" }
}
columns {
name: "last_altered"
length: 8
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "time_stamp" }
}
columns {
name: "new_savepoint_level"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "is_udt_dependent"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "result_cast_from_data_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "result_cast_as_locator"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "yes_or_no" }
}
columns {
name: "result_cast_char_max_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_char_octet_length"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_char_set_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_char_set_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_char_set_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_collation_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_collation_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_collation_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_numeric_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_numeric_scale"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_datetime_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_interval_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "character_data" }
}
columns {
name: "result_cast_interval_precision"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_type_udt_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_type_udt_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_type_udt_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_scope_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_scope_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_scope_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
columns {
name: "result_cast_maximum_cardinality"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "cardinal_number" }
}
columns {
name: "result_cast_dtd_identifier"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "routines"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
columns {
name: "catalog_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "schema_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "schema_owner"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "default_character_set_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "default_character_set_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "default_character_set_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "sql_identifier" }
}
columns {
name: "sql_path"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "schemata"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
columns {
name: "sequence_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "sql_identifier" }
}
columns {
name: "sequence_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "sql_identifier" }
}
columns {
name: "sequence_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "sql_identifier" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "character_data" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "cardinal_number" }
}
columns {
name: "start_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "character_data" }
}
columns {
name: "minimum_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "character_data" }
}
columns {
name: "maximum_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "character_data" }
}
columns {
name: "increment"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "character_data" }
}
columns {
name: "cycle_option"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sequences"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "tid" }
}
columns {
name: "feature_id"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
columns {
name: "feature_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
columns {
name: "sub_feature_id"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
columns {
name: "sub_feature_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
columns {
name: "is_supported"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "yes_or_no" }
}
columns {
name: "is_verified_by"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
columns {
name: "comments"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_features"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "tid" }
}
columns {
name: "implementation_info_id"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "character_data" }
}
columns {
name: "implementation_info_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "character_data" }
}
columns {
name: "integer_value"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "cardinal_number" }
}
columns {
name: "character_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "character_data" }
}
columns {
name: "comments"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_implementation_info"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "tid" }
}
columns {
name: "feature_id"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "character_data" }
}
columns {
name: "feature_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "character_data" }
}
columns {
name: "is_supported"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "yes_or_no" }
}
columns {
name: "is_verified_by"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "character_data" }
}
columns {
name: "comments"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_parts"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
columns {
name: "tableoid"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "oid" }
}
columns {
name: "cmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "cid" }
}
columns {
name: "xmax"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "xid" }
}
columns {
name: "cmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "cid" }
}
columns {
name: "xmin"
not_null: true
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "xid" }
}
columns {
name: "ctid"
not_null: true
length: 6
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "tid" }
}
columns {
name: "sizing_id"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "cardinal_number" }
}
columns {
name: "sizing_name"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "character_data" }
}
columns {
name: "supported_value"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "cardinal_number" }
}
columns {
name: "comments"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "sql_sizing"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
columns {
name: "constraint_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "sql_identifier" }
}
columns {
name: "constraint_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "character_data" }
}
columns {
name: "is_deferrable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "yes_or_no" }
}
columns {
name: "initially_deferred"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "yes_or_no" }
}
columns {
name: "enforced"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "yes_or_no" }
}
columns {
name: "nulls_distinct"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_constraints"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "yes_or_no" }
}
columns {
name: "with_hierarchy"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "table_privileges"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "table_type"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "character_data" }
}
columns {
name: "self_referencing_column_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "reference_generation"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "character_data" }
}
columns {
name: "user_defined_type_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "user_defined_type_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "user_defined_type_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "sql_identifier" }
}
columns {
name: "is_insertable_into"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "yes_or_no" }
}
columns {
name: "is_typed"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "yes_or_no" }
}
columns {
name: "commit_action"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "tables"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "group_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "sql_identifier" }
}
columns {
name: "transform_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "transforms"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
columns {
name: "trigger_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "trigger_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "trigger_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_table"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_column"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "triggered_update_columns"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
columns {
name: "trigger_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "trigger_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "trigger_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "event_manipulation"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "character_data" }
}
columns {
name: "event_object_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "event_object_table"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "action_order"
length: 4
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "cardinal_number" }
}
columns {
name: "action_condition"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "character_data" }
}
columns {
name: "action_statement"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "character_data" }
}
columns {
name: "action_orientation"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "character_data" }
}
columns {
name: "action_timing"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "character_data" }
}
columns {
name: "action_reference_old_table"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "action_reference_new_table"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "action_reference_old_row"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "action_reference_new_row"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "sql_identifier" }
}
columns {
name: "created"
length: 8
table {
catalog: "pg_catalog" schema: "information_schema" name: "triggers"
}
type { name: "time_stamp" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "udt_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "udt_privileges"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
columns {
name: "grantor"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "grantee"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "sql_identifier" }
}
columns {
name: "object_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "character_data" }
}
columns {
name: "privilege_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "character_data" }
}
columns {
name: "is_grantable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "usage_privileges"
}
type { name: "yes_or_no" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
columns {
name: "user_defined_type_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "user_defined_type_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "user_defined_type_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "user_defined_type_category"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "is_instantiable"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "yes_or_no" }
}
columns {
name: "is_final"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "yes_or_no" }
}
columns {
name: "ordering_form"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "ordering_category"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "ordering_routine_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "ordering_routine_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "ordering_routine_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "reference_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "data_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "character_maximum_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "character_octet_length"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "character_set_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "character_set_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "collation_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "numeric_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_precision_radix"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "numeric_scale"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "datetime_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "interval_type"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "character_data" }
}
columns {
name: "interval_precision"
length: 4
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "cardinal_number" }
}
columns {
name: "source_dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
columns {
name: "ref_dtd_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_defined_types"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
type { name: "sql_identifier" }
}
columns {
name: "option_value"
length: -1
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mapping_options"
}
type { name: "character_data" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mappings"
}
columns {
name: "authorization_identifier"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mappings"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mappings"
}
type { name: "sql_identifier" }
}
columns {
name: "foreign_server_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "user_mappings"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
columns {
name: "view_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "view_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "view_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "column_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_column_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "specific_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_routine_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
columns {
name: "view_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "view_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "view_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog"
schema: "information_schema"
name: "view_table_usage"
}
type { name: "sql_identifier" }
}
}
tables {
rel {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
columns {
name: "table_catalog"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "sql_identifier" }
}
columns {
name: "table_schema"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "sql_identifier" }
}
columns {
name: "table_name"
length: 64
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "sql_identifier" }
}
columns {
name: "view_definition"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "character_data" }
}
columns {
name: "check_option"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "character_data" }
}
columns {
name: "is_updatable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "yes_or_no" }
}
columns {
name: "is_insertable_into"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "yes_or_no" }
}
columns {
name: "is_trigger_updatable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "yes_or_no" }
}
columns {
name: "is_trigger_deletable"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "yes_or_no" }
}
columns {
name: "is_trigger_insertable_into"
length: -1
table {
catalog: "pg_catalog" schema: "information_schema" name: "views"
}
type { name: "yes_or_no" }
}
}
}
}
queries {
text: "SELECT id, display_name, login_email, password_bcrypt, is_deleted, timezone, created_at, updated_at FROM logins\nWHERE id = $1 AND NOT is_deleted"
name: "getLoginById"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, display_name, login_email, password_bcrypt, is_deleted, timezone, created_at, updated_at FROM logins\nWHERE login_email = $1 AND NOT is_deleted"
name: "getLoginByEmail"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO logins (\n display_name, login_email, password_bcrypt, timezone, is_deleted\n) VALUES ($1, $2, $3, $4, false) RETURNING id"
name: "insertLogin"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
params {
number: 1
column {
name: "display_name"
length: -1
table { schema: "public" name: "logins" }
type { name: "text" }
original_name: "display_name"
}
}
params {
number: 2
column {
name: "login_email"
not_null: true
length: -1
table { schema: "public" name: "logins" }
type { name: "text" }
original_name: "login_email"
}
}
params {
number: 3
column {
name: "password_bcrypt"
not_null: true
length: -1
table { schema: "public" name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
}
params {
number: 4
column {
name: "timezone"
not_null: true
length: -1
table { schema: "public" name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
}
filename: "queries.sql"
insert_into_table { name: "logins" }
}
queries {
text: "SELECT\n logins.id, logins.display_name, logins.login_email, logins.password_bcrypt, logins.is_deleted, logins.timezone, logins.created_at, logins.updated_at,\n organizations.id, organizations.display_name, organizations.timezone, organizations.created_at, organizations.updated_at,\n organization_logins.role\nFROM logins\nINNER JOIN organization_logins ON logins.id = organization_logins.login_id\nINNER JOIN\n organizations\n ON organization_logins.organization_id = organizations.id\nWHERE\n logins.id = $1 AND NOT logins.is_deleted"
name: "getLoginOrganizations"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "organizations" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "organizations" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "role"
not_null: true
length: -1
table { name: "organization_logins" }
type { name: "organization_role" }
original_name: "role"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n logins.id, logins.display_name, logins.login_email, logins.password_bcrypt, logins.is_deleted, logins.timezone, logins.created_at, logins.updated_at,\n organizations.id, organizations.display_name, organizations.timezone, organizations.created_at, organizations.updated_at,\n organization_logins.role\nFROM logins\nINNER JOIN organization_logins ON logins.id = organization_logins.login_id\nINNER JOIN\n organizations\n ON organization_logins.organization_id = organizations.id\nWHERE\n logins.id = $1 AND organizations.id = $2 AND NOT logins.is_deleted"
name: "getLoginOrganization"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "organizations" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "organizations" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "role"
not_null: true
length: -1
table { name: "organization_logins" }
type { name: "organization_role" }
original_name: "role"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2
column {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO organization_logins (login_id, organization_id, role) VALUES (\n $1, $2, $3\n) ON CONFLICT (login_id, organization_id) DO NOTHING RETURNING login_id, organization_id, role, created_at, updated_at"
name: "insertOrganizationLogin"
cmd: ":one"
columns {
name: "login_id"
not_null: true
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "login_id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "role"
not_null: true
length: -1
table { name: "organization_logins" }
type { name: "organization_role" }
original_name: "role"
}
columns {
name: "created_at"
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "organization_logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "login_id"
not_null: true
length: -1
table { schema: "public" name: "organization_logins" }
type { name: "integer" }
original_name: "login_id"
}
}
params {
number: 2
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "organization_logins" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 3
column {
name: "role"
not_null: true
length: -1
table { schema: "public" name: "organization_logins" }
type { name: "organization_role" }
original_name: "role"
}
}
filename: "queries.sql"
insert_into_table { name: "organization_logins" }
}
queries {
text: "SELECT id, display_name, timezone, created_at, updated_at FROM organizations"
name: "getOrganizations"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "organizations" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "organizations" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
filename: "queries.sql"
}
queries {
text: "SELECT id, organization_id, display_name, invitation_code, is_deleted, created_at, updated_at\nFROM teams\nWHERE organization_id = $1 AND NOT is_deleted\nORDER BY display_name ASC"
name: "getTeams"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT teams.id, teams.organization_id, teams.display_name, teams.invitation_code, teams.is_deleted, teams.created_at, teams.updated_at\nFROM logins\nINNER JOIN team_members ON logins.id = team_members.login_id\nINNER JOIN teams ON team_members.team_id = teams.id\nWHERE\n organization_id = $1\n AND logins.id = $2\n AND NOT logins.is_deleted\n AND NOT teams.is_deleted\n AND (\n teams.id IN ($3)\n OR ($3) IS null\n )\nORDER BY teams.display_name ASC"
name: "getLoginTeams"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 3
column {
name: "team_ids"
not_null: true
length: -1
is_named_param: true
table { name: "teams" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, organization_id, display_name, invitation_code, is_deleted, created_at, updated_at FROM teams\nWHERE organization_id = $1 AND id = $2 AND NOT is_deleted"
name: "getTeamById"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT teams.id, organization_id, teams.display_name, invitation_code, is_deleted, teams.created_at, teams.updated_at, organizations.id, organizations.display_name, timezone, organizations.created_at, organizations.updated_at\nFROM teams\nINNER JOIN organizations ON teams.organization_id = organizations.id\nWHERE invitation_code = $1 AND NOT is_deleted"
name: "getTeamByInvitationCode"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "organizations" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "organizations" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "organizations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, display_name, login_email, password_bcrypt, is_deleted, timezone, logins.created_at, logins.updated_at, team_id, login_id, role, team_members.created_at, team_members.updated_at\nFROM logins\nINNER JOIN team_members ON logins.id = team_members.login_id\nWHERE team_id = $1"
name: "getTeamMembers"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "display_name"
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "login_email"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "login_email"
}
columns {
name: "password_bcrypt"
not_null: true
length: -1
table { name: "logins" }
type { name: "text" }
original_name: "password_bcrypt"
}
columns {
name: "is_deleted"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "timezone"
not_null: true
length: -1
table { name: "logins" }
type { name: "timezone" }
original_name: "timezone"
}
columns {
name: "created_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "logins" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "int4" }
original_name: "team_id"
}
columns {
name: "login_id"
not_null: true
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "int4" }
original_name: "login_id"
}
columns {
name: "role"
not_null: true
length: -1
table { name: "team_members" }
type { name: "team_role" }
original_name: "role"
}
columns {
name: "created_at"
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "team_members" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "team_id"
not_null: true
length: -1
table { name: "team_members" }
type { name: "integer" }
original_name: "team_id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO team_members (team_id, login_id, role) VALUES (\n $1, $2, $3\n) ON CONFLICT (team_id, login_id) DO NOTHING"
name: "insertTeamMember"
cmd: ":exec"
params {
number: 1
column {
name: "team_id"
not_null: true
length: -1
table { schema: "public" name: "team_members" }
type { name: "integer" }
original_name: "team_id"
}
}
params {
number: 2
column {
name: "login_id"
not_null: true
length: -1
table { schema: "public" name: "team_members" }
type { name: "integer" }
original_name: "login_id"
}
}
params {
number: 3
column {
name: "role"
not_null: true
length: -1
table { schema: "public" name: "team_members" }
type { name: "team_role" }
original_name: "role"
}
}
filename: "queries.sql"
insert_into_table { name: "team_members" }
}
queries {
text: "SELECT id, organization_id, display_name, invitation_code, is_deleted, created_at, updated_at FROM teams\nWHERE organization_id = $1 AND display_name = $2"
name: "getTeamByName"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO teams (\n organization_id, display_name, invitation_code, is_deleted\n) VALUES ($1, $2, $3, false) RETURNING id, organization_id, display_name, invitation_code, is_deleted, created_at, updated_at"
name: "insertTeam"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "display_name"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "text" }
original_name: "display_name"
}
}
params {
number: 3
column {
name: "invitation_code"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
}
filename: "queries.sql"
insert_into_table { name: "teams" }
}
queries {
text: "INSERT INTO teams (\n organization_id, display_name, invitation_code, is_deleted\n) VALUES ($1, $2, $3, false)\nON CONFLICT\n (organization_id, display_name)\n WHERE\n is_deleted = false\nDO UPDATE SET\n updated_at = NOW ()\nRETURNING id, organization_id, display_name, invitation_code, is_deleted, created_at, updated_at"
name: "insertDefaultTeamIfNotExists"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "invitation_code"
not_null: true
length: -1
table { name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
columns {
name: "is_deleted"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "teams" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "display_name"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "text" }
original_name: "display_name"
}
}
params {
number: 3
column {
name: "invitation_code"
not_null: true
length: -1
table { schema: "public" name: "teams" }
type { name: "text" }
original_name: "invitation_code"
}
}
filename: "queries.sql"
insert_into_table { name: "teams" }
}
queries {
text: "SELECT\n incidents.id, incidents.organization_id, incidents.display_name, incidents.description, incidents.failing_monitor, incidents.status, incidents.lead_by, incidents.acknowledged_by, incidents.unacknowledged_at, incidents.created_at, incidents.updated_at,\n monitors.id, monitors.organization_id, monitors.name, monitors.type, monitors.healthiness, monitors.monitor_group, monitors.threshold_failures, monitors.is_active, monitors.is_deleted, monitors.last_checked, monitors.created_at, monitors.updated_at, monitors.escalation_policy_id,\n opcua_endpoint_incidents.id, opcua_endpoint_incidents.description_template, opcua_endpoint_incidents.opcua_attribute_values, opcua_endpoint_incidents.created_at, opcua_endpoint_incidents.updated_at,\n opcua_node_incidents.id, opcua_node_incidents.description_template, opcua_node_incidents.opcua_attribute_values, opcua_node_incidents.created_at, opcua_node_incidents.updated_at\nFROM incidents\nLEFT JOIN monitors ON incidents.failing_monitor = monitors.id\nLEFT JOIN\n opcua_endpoint_incidents\n ON\n monitors.type = \'opcua_endpoint\'\n AND incidents.id = opcua_endpoint_incidents.id\nLEFT JOIN\n opcua_node_incidents\n ON\n monitors.type = \'opcua_node\'\n AND incidents.id = opcua_node_incidents.id\nWHERE\n incidents.organization_id = $1\n AND (\n $2::BIGINT [] IS null\n OR incidents.id = ANY($2::BIGINT [])\n )\n AND status IN ($3)\nORDER BY\n CASE incidents.status\n WHEN \'created\' THEN 1\n WHEN \'unacknowledged\' THEN 2\n WHEN \'acknowledged\' THEN 3\n WHEN \'resolved\' THEN 4\n END ASC,\n incidents.created_at DESC"
name: "getIncidents"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "description_template"
length: -1
table { name: "opcua_endpoint_incidents" }
type { name: "text" }
original_name: "description_template"
}
columns {
name: "opcua_attribute_values"
is_array: true
length: -1
table { name: "opcua_endpoint_incidents" }
type { name: "opcua_attribute_value" }
original_name: "opcua_attribute_values"
array_dims: 1
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "description_template"
length: -1
table { name: "opcua_node_incidents" }
type { name: "text" }
original_name: "description_template"
}
columns {
name: "opcua_attribute_values"
is_array: true
length: -1
table { name: "opcua_node_incidents" }
type { name: "opcua_attribute_value" }
original_name: "opcua_attribute_values"
array_dims: 1
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "incident_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int8" }
array_dims: 1
}
}
params {
number: 3
column {
name: "status"
not_null: true
length: -1
is_named_param: true
table { name: "incidents" }
type { name: "incident_status" }
is_sqlc_slice: true
original_name: "status"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, updated_at, escalation_policy_id, heartbeat_monitors.id, heartbeat_slug, last_heartbeat, expected_interval, heartbeat_monitors.created_at\nFROM monitors\nINNER JOIN heartbeat_monitors ON monitors.id = heartbeat_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'heartbeat\'\n AND NOT monitors.is_deleted\n AND (\n $2::TEXT IS null\n OR monitor_group = $2::TEXT\n )"
name: "getHeartbeatMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "varchar" }
original_name: "heartbeat_slug"
}
columns {
name: "last_heartbeat"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_heartbeat"
}
columns {
name: "expected_interval"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "expected_interval"
}
columns {
name: "created_at"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column { name: "monitor_group" length: -1 type { name: "text" } }
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, updated_at, escalation_policy_id, heartbeat_monitors.id, heartbeat_slug, last_heartbeat, expected_interval, heartbeat_monitors.created_at\nFROM\n monitors\nINNER JOIN\n heartbeat_monitors ON monitors.id = heartbeat_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'heartbeat\'\n AND monitors.is_active\n AND NOT monitors.is_deleted\n AND heartbeat_monitors.last_heartbeat + heartbeat_monitors.expected_interval < NOW()"
name: "getExpiredHeartbeatMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "varchar" }
original_name: "heartbeat_slug"
}
columns {
name: "last_heartbeat"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_heartbeat"
}
columns {
name: "expected_interval"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "expected_interval"
}
columns {
name: "created_at"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, updated_at, escalation_policy_id, heartbeat_monitors.id, heartbeat_slug, last_heartbeat, expected_interval, heartbeat_monitors.created_at\nFROM\n monitors\nINNER JOIN\n heartbeat_monitors ON monitors.id = heartbeat_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'heartbeat\'\n AND monitors.healthiness IN (\'unknown\', \'unhealthy\')\n AND NOT monitors.is_deleted\n AND heartbeat_monitors.last_heartbeat + heartbeat_monitors.expected_interval >= NOW()"
name: "getRecoveredHeartbearMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "varchar" }
original_name: "heartbeat_slug"
}
columns {
name: "last_heartbeat"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_heartbeat"
}
columns {
name: "expected_interval"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "expected_interval"
}
columns {
name: "created_at"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, created_at, updated_at, escalation_policy_id\nFROM\n monitors\nWHERE\n monitors.organization_id = $1\n AND\n ( $2::TEXT[] IS NULL\n OR monitors.name = ANY($2::TEXT[])\n )\n AND\n ( $3::INT[] IS NULL\n OR NOT (monitors.id = ANY($3::INT[]))\n )\n AND\n ( $4::INT[] IS NULL\n OR monitors.id = ANY($4::INT[])\n )\n AND NOT monitors.is_deleted"
name: "getMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "monitor_names"
is_array: true
length: -1
type { name: "text" }
array_dims: 1
}
}
params {
number: 3
column {
name: "exclude_monitors"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 4
column {
name: "monitor_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, monitors.organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id, opcua_endpoint_monitors.id, endpoint, mode, policy, certificate, credentials, incident_message_template, latest_connection_attempt, opcua_endpoint_monitors.created_at, opcua_endpoint_monitors.updated_at, incidents.id, incidents.organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, incidents.created_at, incidents.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_endpoint_monitors ON monitors.id = opcua_endpoint_monitors.id\nLEFT JOIN\n incidents ON\n incidents.organization_id = monitors.organization_id\n AND incidents.failing_monitor = opcua_endpoint_monitors.id\n AND status <> \'resolved\'\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_endpoint\'\n AND\n ( $2::TEXT[] IS NULL\n OR opcua_endpoint_monitors.endpoint = ANY($2::TEXT[])\n )\n AND\n ( $3::INT[] IS NULL\n OR monitors.id = ANY($3::INT[])\n )\n AND\n ( $4::INT[] IS NULL\n OR NOT (monitors.id = ANY($4::INT[]))\n )\n AND NOT monitors.is_deleted"
name: "getOpcuaEndpointMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "certificate"
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "credentials"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "latest_connection_attempt"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "endpoints"
is_array: true
length: -1
type { name: "text" }
array_dims: 1
}
}
params {
number: 3
column {
name: "monitor_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 4
column {
name: "exclude_monitors"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, monitors.organization_id, monitors.name, monitors.type, monitors.healthiness, monitors.monitor_group, monitors.threshold_failures, monitors.is_active, monitors.is_deleted, monitors.last_checked, monitors.created_at, monitors.updated_at, monitors.escalation_policy_id, opcua_node_monitors.id, endpoint_monitor_id, opcua_node_id, aggregation, operation, operand, duration, frequency, incident_message_template, opcua_node_monitors.created_at, opcua_node_monitors.updated_at, endpoint_monitor.id, endpoint_monitor.organization_id, endpoint_monitor.name, endpoint_monitor.type, endpoint_monitor.healthiness, endpoint_monitor.monitor_group, endpoint_monitor.threshold_failures, endpoint_monitor.is_active, endpoint_monitor.is_deleted, endpoint_monitor.last_checked, endpoint_monitor.created_at, endpoint_monitor.updated_at, endpoint_monitor.escalation_policy_id, incidents.id, incidents.organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, incidents.created_at, incidents.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_node_monitors ON monitors.id = opcua_node_monitors.id\nINNER JOIN\n monitors AS endpoint_monitor ON monitors.id = opcua_node_monitors.endpoint_monitor_id\nLEFT JOIN\n incidents ON\n incidents.organization_id = monitors.organization_id\n AND incidents.failing_monitor = opcua_node_monitors.id\n AND status <> \'resolved\'\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_node\'\n AND\n ( $2::INT[] IS NULL\n OR monitors.id = ANY($2::INT[])\n )\n AND\n ( $3::INT[] IS NULL\n OR NOT (monitors.id = ANY($3::INT[]))\n )\n AND NOT monitors.is_deleted"
name: "getOpcuaNodeMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "duration"
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "frequency"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "monitor_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 3
column {
name: "exclude_monitors"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id, opcua_endpoint_monitors.id, endpoint, mode, policy, certificate, credentials, incident_message_template, latest_connection_attempt, opcua_endpoint_monitors.created_at, opcua_endpoint_monitors.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_endpoint_monitors ON monitors.id = opcua_endpoint_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_endpoint\'\n AND monitors.is_active\n AND NOT monitors.is_deleted\n AND\n (\n monitors.last_checked IS null\n OR monitors.healthiness = \'unknown\'\n OR (\n monitors.healthiness = \'unhealthy\'\n AND monitors.last_checked + \'3 seconds\' < NOW()\n )\n OR (\n monitors.healthiness = \'healthy\'\n AND monitors.last_checked + \'10 seconds\' < NOW()\n )\n )"
name: "getOpcuaEndpointMonitorsToCheck"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "certificate"
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "credentials"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "latest_connection_attempt"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO monitors\n (organization_id, name, type, healthiness, monitor_group, threshold_failures, escalation_policy_id, is_active, is_deleted)\nVALUES\n ($1, $2, $3, \'unknown\', $4, $5, $6, true, false)\nRETURNING id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, created_at, updated_at, escalation_policy_id"
name: "insertNewMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "name"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "text" }
original_name: "name"
}
}
params {
number: 3
column {
name: "type"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
}
params {
number: 4
column {
name: "monitor_group"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
}
params {
number: 5
column {
name: "threshold_failures"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "integer" }
original_name: "threshold_failures"
}
}
params {
number: 6
column {
name: "escalation_policy_id"
not_null: true
length: -1
table { schema: "public" name: "monitors" }
type { name: "integer" }
original_name: "escalation_policy_id"
}
}
filename: "queries.sql"
insert_into_table { name: "monitors" }
}
queries {
text: "UPDATE\n monitors\nSET\n name = COALESCE($2::TEXT, monitors.name),\n threshold_failures = COALESCE($3::INTEGER, monitors.threshold_failures),\n healthiness = COALESCE($4::monitor_healthiness, monitors.healthiness),\n last_checked = NULL,\n updated_at = NOW()\nWHERE\n monitors.id = $1\nRETURNING id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, created_at, updated_at, escalation_policy_id"
name: "updateMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2 column { name: "name" length: -1 type { name: "text" } }
}
params {
number: 3
column {
name: "threshold_failures"
length: -1
type { schema: "pg_catalog" name: "int4" }
}
}
params {
number: 4
column {
name: "healthiness" length: -1 type { name: "monitor_healthiness" }
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE\n monitors\nSET\n is_active = false,\n updated_at = NOW()\nWHERE\n monitors.id = $1"
name: "pauseMonitor"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE\n monitors\nSET\n is_active = true,\n updated_at = NOW()\nWHERE\n monitors.id = $1"
name: "unpauseMonitor"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n id, organization_id, name, username, password, created_at, updated_at\nFROM\n opcua_endpoint_credentials\nWHERE\n organization_id = $1\n AND\n ( $2::INT[] IS NULL\n OR opcua_endpoint_credentials.id = ANY($2::INT [])\n )"
name: "getOpcuaEndpointCredentials"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "name"
}
columns {
name: "username"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "username"
}
columns {
name: "password"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "password"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "credential_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO opcua_endpoint_credentials\n (organization_id, name, username, password)\nVALUES\n ($1, $2, $3, $4)\nON CONFLICT\n (organization_id, name)\nDO UPDATE SET\n updated_at = NOW ()\nRETURNING id, organization_id, name, username, password, created_at, updated_at"
name: "insertOpcuaEndpointCredentials"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "name"
}
columns {
name: "username"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "username"
}
columns {
name: "password"
not_null: true
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "password"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_credentials" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "name"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "name"
}
}
params {
number: 3
column {
name: "username"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "username"
}
}
params {
number: 4
column {
name: "password"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "password"
}
}
filename: "queries.sql"
insert_into_table { name: "opcua_endpoint_credentials" }
}
queries {
text: "SELECT\n id, organization_id, provided_by, subject, issuer, signature, valid_from, valid_to, certificate, private_key, created_at, updated_at\nFROM\n opcua_endpoint_certificates\nWHERE\n organization_id = $1\n AND\n ( $2::INT[] IS NULL\n OR opcua_endpoint_certificates.id = ANY($2::INT [])\n )"
name: "getOpcuaEndpointCertificates"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "provided_by"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "certificate_provider" }
original_name: "provided_by"
}
columns {
name: "subject"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "subject"
}
columns {
name: "issuer"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "issuer"
}
columns {
name: "signature"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "signature"
}
columns {
name: "valid_from"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_from"
}
columns {
name: "valid_to"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_to"
}
columns {
name: "certificate"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "x509_certificate" }
original_name: "certificate"
}
columns {
name: "private_key"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "private_key" }
original_name: "private_key"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "certificate_ids"
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO opcua_endpoint_certificates\n (organization_id, provided_by, subject, issuer, signature, valid_from, valid_to, certificate, private_key)\nVALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9)\nON CONFLICT\n (organization_id, signature)\nDO UPDATE SET\n updated_at = NOW ()\nRETURNING id, organization_id, provided_by, subject, issuer, signature, valid_from, valid_to, certificate, private_key, created_at, updated_at"
name: "insertOpcuaEndpointCertificate"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "provided_by"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "certificate_provider" }
original_name: "provided_by"
}
columns {
name: "subject"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "subject"
}
columns {
name: "issuer"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "issuer"
}
columns {
name: "signature"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "signature"
}
columns {
name: "valid_from"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_from"
}
columns {
name: "valid_to"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_to"
}
columns {
name: "certificate"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "x509_certificate" }
original_name: "certificate"
}
columns {
name: "private_key"
not_null: true
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "private_key" }
original_name: "private_key"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "provided_by"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "certificate_provider" }
original_name: "provided_by"
}
}
params {
number: 3
column {
name: "subject"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "subject"
}
}
params {
number: 4
column {
name: "issuer"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "issuer"
}
}
params {
number: 5
column {
name: "signature"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "signature"
}
}
params {
number: 6
column {
name: "valid_from"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "pg_catalog.timestamptz" }
original_name: "valid_from"
}
}
params {
number: 7
column {
name: "valid_to"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "pg_catalog.timestamptz" }
original_name: "valid_to"
}
}
params {
number: 8
column {
name: "certificate"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "x509_certificate" }
original_name: "certificate"
}
}
params {
number: 9
column {
name: "private_key"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_certificates" }
type { name: "private_key" }
original_name: "private_key"
}
}
filename: "queries.sql"
insert_into_table { name: "opcua_endpoint_certificates" }
}
queries {
text: "INSERT INTO opcua_endpoint_monitors\n (id, endpoint, mode, policy, certificate, credentials, incident_message_template)\nVALUES\n ($1, $2, $3, $4, $5, $6, $7)\nRETURNING id, endpoint, mode, policy, certificate, credentials, incident_message_template, latest_connection_attempt, created_at, updated_at"
name: "insertNewOpcuaEndpointMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "certificate"
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "credentials"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "latest_connection_attempt"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2
column {
name: "endpoint"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
}
params {
number: 3
column {
name: "mode"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
}
params {
number: 4
column {
name: "policy"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
}
params {
number: 5
column {
name: "certificate"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "certificate"
}
}
params {
number: 6
column {
name: "credentials"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "credentials"
}
}
params {
number: 7
column {
name: "incident_message_template"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
}
filename: "queries.sql"
insert_into_table { name: "opcua_endpoint_monitors" }
}
queries {
text: "UPDATE\n opcua_endpoint_monitors\nSET\n endpoint = $1,\n mode = $2,\n policy = $3,\n certificate = $4,\n credentials = $5,\n incident_message_template = $6,\n updated_at = NOW()\nWHERE\n opcua_endpoint_monitors.id = $7\nRETURNING id, endpoint, mode, policy, certificate, credentials, incident_message_template, latest_connection_attempt, created_at, updated_at"
name: "updateNewOpcuaEndpointMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "certificate"
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "credentials"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "latest_connection_attempt"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "endpoint"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
}
params {
number: 2
column {
name: "mode"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
}
params {
number: 3
column {
name: "policy"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
}
params {
number: 4
column {
name: "certificate"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "certificate"
}
}
params {
number: 5
column {
name: "credentials"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "credentials"
}
}
params {
number: 6
column {
name: "incident_message_template"
length: -1
table { schema: "public" name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
}
params {
number: 7
column {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO opcua_node_monitors\n (id, endpoint_monitor_id, opcua_node_id, aggregation, operand, operation, duration, frequency, incident_message_template)\nVALUES\n ($1, $2, $3, $4, $5, $6, $7, $8, $9)\nRETURNING id, endpoint_monitor_id, opcua_node_id, aggregation, operation, operand, duration, frequency, incident_message_template, created_at, updated_at"
name: "insertOpcuaNodeMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "duration"
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "frequency"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2
column {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "integer" }
original_name: "endpoint_monitor_id"
}
}
params {
number: 3
column {
name: "opcua_node_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
}
params {
number: 4
column {
name: "aggregation"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
}
params {
number: 5
column {
name: "operand"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
}
params {
number: 6
column {
name: "operation"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
}
params {
number: 7
column {
name: "duration"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "interval" }
original_name: "duration"
}
}
params {
number: 8
column {
name: "frequency"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "interval" }
original_name: "frequency"
}
}
params {
number: 9
column {
name: "incident_message_template"
length: -1
table { schema: "public" name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
}
filename: "queries.sql"
insert_into_table { name: "opcua_node_monitors" }
}
queries {
text: "UPDATE opcua_node_monitors\nSET\n endpoint_monitor_id = COALESCE($2::INT, opcua_node_monitors.endpoint_monitor_id),\n opcua_node_id = COALESCE($3::opcua_node_id, opcua_node_monitors.opcua_node_id),\n aggregation = COALESCE($4::check_aggregation, opcua_node_monitors.aggregation),\n operand = COALESCE($5::TEXT, opcua_node_monitors.operand),\n operation = COALESCE($6::check_op, opcua_node_monitors.operation),\n duration = COALESCE($7::INTERVAL, opcua_node_monitors.duration),\n frequency = COALESCE($8::INTERVAL, opcua_node_monitors.frequency),\n incident_message_template = COALESCE($9::TEXT, opcua_node_monitors.incident_message_template)\nWHERE id = $1\nRETURNING id, endpoint_monitor_id, opcua_node_id, aggregation, operation, operand, duration, frequency, incident_message_template, created_at, updated_at"
name: "updateOpcuaNodeMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "duration"
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "frequency"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2
column {
name: "endpoint_monitor_id"
length: -1
type { schema: "pg_catalog" name: "int4" }
}
}
params {
number: 3
column {
name: "opcua_node_id" length: -1 type { name: "opcua_node_id" }
}
}
params {
number: 4
column {
name: "aggregation" length: -1 type { name: "check_aggregation" }
}
}
params {
number: 5
column { name: "operand" length: -1 type { name: "text" } }
}
params {
number: 6
column { name: "operation" length: -1 type { name: "check_op" } }
}
params {
number: 7
column {
name: "duration"
length: -1
type { schema: "pg_catalog" name: "interval" }
}
}
params {
number: 8
column {
name: "frequency"
length: -1
type { schema: "pg_catalog" name: "interval" }
}
}
params {
number: 9
column {
name: "incident_message_template" length: -1 type { name: "text" }
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, monitors.organization_id, monitors.name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id, opcua_endpoint_monitors.id, endpoint, mode, policy, opcua_endpoint_monitors.certificate, credentials, incident_message_template, latest_connection_attempt, opcua_endpoint_monitors.created_at, opcua_endpoint_monitors.updated_at, opcua_endpoint_credentials.id, opcua_endpoint_credentials.organization_id, opcua_endpoint_credentials.name, username, password, opcua_endpoint_credentials.created_at, opcua_endpoint_credentials.updated_at, opcua_endpoint_certificates.id, opcua_endpoint_certificates.organization_id, provided_by, subject, issuer, signature, valid_from, valid_to, opcua_endpoint_certificates.certificate, private_key, opcua_endpoint_certificates.created_at, opcua_endpoint_certificates.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_endpoint_monitors ON monitors.id = opcua_endpoint_monitors.id\nLEFT JOIN\n opcua_endpoint_credentials ON monitors.id = opcua_endpoint_credentials.id\nLEFT JOIN\n opcua_endpoint_certificates ON monitors.id = opcua_endpoint_certificates.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_endpoint\'\n -- We used to only sample \"active\" endpoints. We continue to sample active\n -- OPCUA Endpoints but we do not raise any incidents for them, if they are\n -- failing.\n --\n -- AND monitors.is_active\n AND NOT monitors.is_deleted"
name: "getOpcuaEndpointMonitorsToSample"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "endpoint"
}
columns {
name: "mode"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_mode" }
original_name: "mode"
}
columns {
name: "policy"
not_null: true
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "opcua_security_policy" }
original_name: "policy"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "certificate"
}
columns {
name: "credentials"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "credentials"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_endpoint_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "latest_connection_attempt"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "latest_connection_attempt"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "name"
}
columns {
name: "username"
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "username"
}
columns {
name: "password"
length: -1
table { name: "opcua_endpoint_credentials" }
type { name: "text" }
original_name: "password"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_credentials" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "provided_by"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "certificate_provider" }
original_name: "provided_by"
}
columns {
name: "subject"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "subject"
}
columns {
name: "issuer"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "issuer"
}
columns {
name: "signature"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "text" }
original_name: "signature"
}
columns {
name: "valid_from"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_from"
}
columns {
name: "valid_to"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "valid_to"
}
columns {
name: "certificate"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "x509_certificate" }
original_name: "certificate"
}
columns {
name: "private_key"
length: -1
table { name: "opcua_endpoint_certificates" }
type { name: "private_key" }
original_name: "private_key"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_endpoint_certificates" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id, opcua_node_monitors.id, endpoint_monitor_id, opcua_node_id, aggregation, operation, operand, duration, frequency, incident_message_template, opcua_node_monitors.created_at, opcua_node_monitors.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_node_monitors ON monitors.id = opcua_node_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_node\'\n AND NOT monitors.is_deleted\n -- We used to only sample \"active\" endpoints. We continue to sample active\n -- OPCUA Endpoints but we do not raise any incidents for them, if they are\n -- failing.\n --\n -- AND monitors.is_active\n AND opcua_node_monitors.endpoint_monitor_id IN ($2)"
name: "getOpcuaNodeMonitorsToSample"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "duration"
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "frequency"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "endpoint_monitor_ids"
not_null: true
length: -1
is_named_param: true
table { name: "opcua_node_monitors" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "endpoint_monitor_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id, opcua_node_monitors.id, endpoint_monitor_id, opcua_node_id, aggregation, operation, operand, duration, frequency, incident_message_template, opcua_node_monitors.created_at, opcua_node_monitors.updated_at\nFROM\n monitors\nINNER JOIN\n opcua_node_monitors ON monitors.id = opcua_node_monitors.id\nWHERE\n monitors.organization_id = $1\n AND monitors.type = \'opcua_node\'\n AND monitors.is_active\n AND NOT monitors.is_deleted\n AND opcua_node_monitors.endpoint_monitor_id IN ($2)\n AND\n ( COALESCE ($3::BOOLEAN, false)\n OR monitors.last_checked IS NULL\n OR monitors.last_checked + opcua_node_monitors.frequency <= NOW ()\n )"
name: "getOpcuaNodeMonitorsToCheck"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "aggregation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_aggregation" }
original_name: "aggregation"
}
columns {
name: "operation"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "check_op" }
original_name: "operation"
}
columns {
name: "operand"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "operand"
}
columns {
name: "duration"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "duration"
}
columns {
name: "frequency"
not_null: true
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "frequency"
}
columns {
name: "incident_message_template"
length: -1
table { name: "opcua_node_monitors" }
type { name: "text" }
original_name: "incident_message_template"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "opcua_node_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "endpoint_monitor_ids"
not_null: true
length: -1
is_named_param: true
table { name: "opcua_node_monitors" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "endpoint_monitor_id"
}
}
params {
number: 3
column {
name: "override"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO opcua_attribute_values\n( endpoint_monitor_id,\n attribute_id,\n opcua_node_id,\n value_type,\n value_integral,\n value_float,\n value_bool,\n value_string,\n value_status_code,\n value\n)\nVALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)"
name: "insertOpcuaAttributeValue"
cmd: ":exec"
params {
number: 1
column {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "integer" }
original_name: "endpoint_monitor_id"
}
}
params {
number: 2
column {
name: "attribute_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "opcua_attribute_id" }
original_name: "attribute_id"
}
}
params {
number: 3
column {
name: "opcua_node_id"
not_null: true
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
}
params {
number: 4
column {
name: "value_type"
not_null: true
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "opcua_type" }
original_name: "value_type"
}
}
params {
number: 5
column {
name: "value_integral"
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "bigint" }
original_name: "value_integral"
}
}
params {
number: 6
column {
name: "value_float"
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "double precision" }
original_name: "value_float"
}
}
params {
number: 7
column {
name: "value_bool"
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "boolean" }
original_name: "value_bool"
}
}
params {
number: 8
column {
name: "value_string"
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "text" }
original_name: "value_string"
}
}
params {
number: 9
column {
name: "value_status_code"
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "integer" }
original_name: "value_status_code"
}
}
params {
number: 10
column {
name: "value"
not_null: true
length: -1
table { schema: "public" name: "opcua_attribute_values" }
type { name: "opcua_value" }
original_name: "value"
}
}
filename: "queries.sql"
insert_into_table { name: "opcua_attribute_values" }
}
queries {
text: "SELECT DISTINCT ON (endpoint_monitor_id, attribute_id, opcua_node_id)\n endpoint_monitor_id,\n attribute_id,\n opcua_node_id,\n value_type,\n value,\n created_at,\n (NOW() - created_at)::INTERVAL AS age\nFROM\n opcua_attribute_values\nWHERE\n endpoint_monitor_id = ANY($1::INTEGER [])\n AND opcua_node_id = ANY($2::OPCUA_NODE_ID [])\n AND attribute_id = ANY($3::OPCUA_ATTRIBUTE_ID [])\nORDER BY\n endpoint_monitor_id ASC,\n attribute_id ASC,\n opcua_node_id ASC,\n created_at DESC"
name: "getLatestSampledOpcuaAttributeValues"
cmd: ":many"
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "attribute_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_attribute_id" }
original_name: "attribute_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "value_type"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_type" }
original_name: "value_type"
}
columns {
name: "value"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_value" }
original_name: "value"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "age"
not_null: true
length: -1
type { schema: "pg_catalog" name: "interval" }
}
params {
number: 1
column {
name: "endpoint_monitor_ids"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 2
column {
name: "node_ids"
not_null: true
is_array: true
length: -1
type { name: "opcua_node_id" }
array_dims: 1
}
}
params {
number: 3
column {
name: "attribute_ids"
not_null: true
is_array: true
length: -1
type { name: "opcua_attribute_id" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n inputs.monitor_id,\n\n aggregates.count,\n\n aggregates.min_value_integral,\n aggregates.max_value_integral,\n aggregates.avg_value_integral,\n aggregates.sum_value_integral,\n\n aggregates.min_value_float,\n aggregates.max_value_float,\n aggregates.avg_value_float,\n aggregates.sum_value_float\nFROM\n -- SQLC doesn\'t have a good way to pass many structured things\n -- so instead we pass a bunch of arrays which are hopefully all\n -- have the same length.\n ( SELECT\n unnest($1::INT[]) as monitor_id,\n unnest($2::INT[]) as endpoint_monitor_id,\n unnest($3::OPCUA_NODE_ID[]) as node_id,\n unnest($4::OPCUA_ATTRIBUTE_ID[]) as attribute_id,\n unnest($5::INTERVAL[]) as duration_start,\n unnest($6::INTERVAL[]) as duration_end\n ) AS inputs,\nLATERAL\n ( SELECT\n COUNT(*) as count,\n -- This looks strange but is necessary to make SQLC do the right\n -- thing, that is mark the aggregates as nullable.\n COALESCE(NULL, MIN(value_integral)) AS min_value_integral,\n COALESCE(NULL, MAX(value_integral)) AS max_value_integral,\n COALESCE(NULL, AVG(value_integral)) AS avg_value_integral,\n COALESCE(NULL, SUM(value_integral)) AS sum_value_integral,\n\n COALESCE(NULL, MIN(value_float)) AS min_value_float,\n COALESCE(NULL, MAX(value_float)) AS max_value_float,\n COALESCE(NULL, AVG(value_float)) AS avg_value_float,\n COALESCE(NULL, SUM(value_float)) AS sum_value_float\n FROM\n opcua_attribute_values\n WHERE\n opcua_attribute_values.endpoint_monitor_id = inputs.endpoint_monitor_id\n AND opcua_attribute_values.opcua_node_id = inputs.node_id\n AND opcua_attribute_values.attribute_id = inputs.attribute_id\n AND created_at >= NOW() - inputs.duration_start\n AND created_at < NOW () - inputs.duration_end\n LIMIT 1\n ) AS aggregates"
name: "getOpcuaAttributeAggregates"
cmd: ":many"
columns {
name: "monitor_id"
not_null: true
length: -1
type { name: "integer" }
original_name: "monitor_id"
}
columns {
name: "count"
not_null: true
length: -1
type { name: "bigint" }
original_name: "count"
}
columns {
name: "min_value_integral"
length: -1
type { name: "bigint" }
original_name: "min_value_integral"
}
columns {
name: "max_value_integral"
length: -1
type { name: "bigint" }
original_name: "max_value_integral"
}
columns {
name: "avg_value_integral"
length: -1
type { name: "numeric" }
original_name: "avg_value_integral"
}
columns {
name: "sum_value_integral"
length: -1
type { name: "numeric" }
original_name: "sum_value_integral"
}
columns {
name: "min_value_float"
length: -1
type { name: "double precision" }
original_name: "min_value_float"
}
columns {
name: "max_value_float"
length: -1
type { name: "double precision" }
original_name: "max_value_float"
}
columns {
name: "avg_value_float"
length: -1
type { name: "double precision" }
original_name: "avg_value_float"
}
columns {
name: "sum_value_float"
length: -1
type { name: "double precision" }
original_name: "sum_value_float"
}
params {
number: 1
column {
name: "monitor_ids"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 2
column {
name: "endpoint_monitor_ids"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
params {
number: 3
column {
name: "node_ids"
not_null: true
is_array: true
length: -1
type { name: "opcua_node_id" }
array_dims: 1
}
}
params {
number: 4
column {
name: "attribute_ids"
not_null: true
is_array: true
length: -1
type { name: "opcua_attribute_id" }
array_dims: 1
}
}
params {
number: 5
column {
name: "duration_starts"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "interval" }
array_dims: 1
}
}
params {
number: 6
column {
name: "duration_ends"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "interval" }
array_dims: 1
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE\n monitors\nSET\n is_deleted = true\nWHERE\n organization_id = $1\n AND id = $2"
name: "deleteMonitor"
cmd: ":exec"
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE\n monitors\nSET\n healthiness = \'healthy\',\n last_checked = NOW(),\n updated_at = NOW()\nWHERE\n monitors.id IN ($1)\nRETURNING id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, created_at, updated_at, escalation_policy_id"
name: "flopMonitorHealthiness"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "monitor_ids"
not_null: true
length: -1
is_named_param: true
table { name: "monitors" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE\n monitors\nSET\n healthiness = \'unhealthy\'::monitor_healthiness,\n last_checked = NOW(),\n updated_at = NOW()\nWHERE\n monitors.id IN ($1)\nRETURNING id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, created_at, updated_at, escalation_policy_id"
name: "flipMonitorHealthiness"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "monitor_ids"
not_null: true
length: -1
is_named_param: true
table { name: "monitors" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "WITH opcua_endpoint_incidents AS (\n INSERT INTO\n opcua_endpoint_incidents (id, description_template, opcua_attribute_values)\n VALUES ($1, $2, $3)\n ON CONFLICT (id) DO NOTHING\n RETURNING id, description_template, opcua_attribute_values, created_at, updated_at\n),\nmonitor_failed_event AS (\n INSERT INTO\n incident_events (incident_id, type, failing_monitor)\n SELECT\n opcua_endpoint_incidents.id, \'monitor_failed\', incidents.failing_monitor\n FROM\n opcua_endpoint_incidents JOIN incidents ON opcua_endpoint_incidents.id = incidents.id\n)\nINSERT INTO\n incident_events (incident_id, type)\nSELECT\n opcua_endpoint_incidents.id, \'incident_started\'\nFROM\n opcua_endpoint_incidents JOIN incidents ON opcua_endpoint_incidents.id = incidents.id"
name: "createOpcuaEndpointIncident"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_incidents" }
type { name: "bigint" }
original_name: "id"
}
}
params {
number: 2
column {
name: "description_template"
not_null: true
length: -1
table { schema: "public" name: "opcua_endpoint_incidents" }
type { name: "text" }
original_name: "description_template"
}
}
params {
number: 3
column {
name: "opcua_attribute_values"
not_null: true
is_array: true
length: -1
table { schema: "public" name: "opcua_endpoint_incidents" }
type { name: "opcua_attribute_value" }
original_name: "opcua_attribute_values"
array_dims: 1
}
}
filename: "queries.sql"
insert_into_table { name: "incident_events" }
}
queries {
text: "WITH opcua_node_incidents AS (\n INSERT INTO\n opcua_node_incidents (id, description_template, opcua_attribute_values)\n VALUES ($1, $2, $3)\n ON CONFLICT (id) DO NOTHING\n RETURNING id, description_template, opcua_attribute_values, created_at, updated_at\n),\nmonitor_failed_event AS (\n INSERT INTO\n incident_events (incident_id, type, failing_monitor)\n SELECT\n opcua_node_incidents.id, \'monitor_failed\', incidents.failing_monitor\n FROM\n opcua_node_incidents JOIN incidents ON opcua_node_incidents.id = incidents.id\n)\nINSERT INTO\n incident_events (incident_id, type)\nSELECT\n opcua_node_incidents.id, \'incident_started\'\nFROM\n opcua_node_incidents JOIN incidents ON opcua_node_incidents.id = incidents.id"
name: "createOpcuaNodeIncident"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_incidents" }
type { name: "bigint" }
original_name: "id"
}
}
params {
number: 2
column {
name: "description_template"
not_null: true
length: -1
table { schema: "public" name: "opcua_node_incidents" }
type { name: "text" }
original_name: "description_template"
}
}
params {
number: 3
column {
name: "opcua_attribute_values"
not_null: true
is_array: true
length: -1
table { schema: "public" name: "opcua_node_incidents" }
type { name: "opcua_attribute_value" }
original_name: "opcua_attribute_values"
array_dims: 1
}
}
filename: "queries.sql"
insert_into_table { name: "incident_events" }
}
queries {
text: "INSERT INTO\nincidents (organization_id, display_name, description, failing_monitor, status)\nVALUES\n($1, $2, $3, $4, $5)\nON CONFLICT\n(organization_id, failing_monitor)\nWHERE\nincidents.status <> \'resolved\'\nDO UPDATE SET updated_at = NOW () RETURNING id, organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, created_at, updated_at"
name: "createIncidentFromMonitorIfNotExists"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "incidents" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "display_name"
not_null: true
length: -1
table { schema: "public" name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
}
params {
number: 3
column {
name: "description"
length: -1
table { schema: "public" name: "incidents" }
type { name: "text" }
original_name: "description"
}
}
params {
number: 4
column {
name: "failing_monitor"
length: -1
table { schema: "public" name: "incidents" }
type { name: "integer" }
original_name: "failing_monitor"
}
}
params {
number: 5
column {
name: "status"
not_null: true
length: -1
table { schema: "public" name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
}
filename: "queries.sql"
insert_into_table { name: "incidents" }
}
queries {
text: "WITH incident_result AS (\n INSERT INTO incidents (organization_id, display_name, description, failing_monitor, status)\n VALUES ($1, $2, $3, $4, \'unacknowledged\')\n ON CONFLICT (organization_id, failing_monitor)\n WHERE incidents.status <> \'resolved\'\n DO UPDATE SET updated_at = NOW()\n RETURNING id, organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, created_at, updated_at\n),\nescalation_policy AS (\n SELECT\n COALESCE(monitors.escalation_policy_id, def_ep.id) as policy_id,\n monitors.threshold_failures as monitor_threshold\n FROM incident_result\n LEFT JOIN monitors ON incident_result.failing_monitor = monitors.id\n LEFT JOIN escalation_policies def_ep ON incident_result.organization_id = def_ep.organization_id\n AND def_ep.is_default = TRUE AND NOT def_ep.is_deleted\n),\nfirst_step AS (\n SELECT escalation_steps.delay_interval\n FROM escalation_policy\n INNER JOIN escalation_steps ON escalation_policy.policy_id = escalation_steps.escalation_policy_id\n WHERE escalation_steps.step_order = 0\n LIMIT 1\n),\nescalation_result AS (\n INSERT INTO incident_escalations (id, escalation_policy_id, threshold, failed_checks, next_escalation_at)\n SELECT\n incident_result.id,\n escalation_policy.policy_id,\n escalation_policy.monitor_threshold, -- use monitor\'s threshold\n 1, -- start with 1 failed check\n CASE\n WHEN escalation_policy.monitor_threshold <= 1 THEN incident_result.created_at + COALESCE(first_step.delay_interval, INTERVAL \'1 minute\')\n ELSE NULL -- Don\'t schedule escalation until threshold is exceeded\n END\n FROM incident_result\n CROSS JOIN escalation_policy\n LEFT JOIN first_step ON true\n ON CONFLICT (id)\n DO UPDATE SET\n failed_checks = incident_escalations.failed_checks + 1,\n next_escalation_at = CASE\n WHEN incident_escalations.failed_checks + 1 >= incident_escalations.threshold\n AND incident_escalations.next_escalation_at IS NULL\n THEN NOW() + INTERVAL \'1 minute\'\n ELSE incident_escalations.next_escalation_at\n END,\n updated_at = NOW()\n RETURNING id, escalation_policy_id, current_step, escalation_started_at, next_escalation_at, is_active, threshold, failed_checks, incident_notification_sent_at, resolved_notification_sent_at, acknowledged_notification_sent_at, created_at, updated_at\n)\nSELECT incident_result.id, incident_result.organization_id, incident_result.display_name, incident_result.description, incident_result.failing_monitor, incident_result.status, incident_result.lead_by, incident_result.acknowledged_by, incident_result.unacknowledged_at, incident_result.created_at, incident_result.updated_at FROM incident_result"
name: "createIncidentWithEscalation"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incident_result" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incident_result" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incident_result" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_result" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "incidents" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "display_name"
not_null: true
length: -1
table { schema: "public" name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
}
params {
number: 3
column {
name: "description"
length: -1
table { schema: "public" name: "incidents" }
type { name: "text" }
original_name: "description"
}
}
params {
number: 4
column {
name: "failing_monitor"
length: -1
table { schema: "public" name: "incidents" }
type { name: "integer" }
original_name: "failing_monitor"
}
}
comments: " Creates an incident and sets up escalation policy with threshold handling"
comments: " This creates incidents immediately but only escalates when threshold is exceeded"
comments: " The threshold comes from the monitor\'s threshold_failures configuration"
filename: "queries.sql"
}
queries {
text: "WITH resolved_incidents AS (\n UPDATE\n incidents\n SET\n status = \'resolved\',\n updated_at = NOW()\n WHERE\n incidents.organization_id = $1\n AND incidents.status <> \'resolved\'\n AND incidents.failing_monitor IN ($2)\n RETURNING id, organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, created_at, updated_at\n),\nrecovered_monitor_event AS (\n INSERT INTO\n incident_events (incident_id, type, failing_monitor)\n SELECT\n resolved_incidents.id, \'monitor_recovered\', resolved_incidents.failing_monitor\n FROM\n resolved_incidents\n)\nINSERT INTO\n incident_events (incident_id, type)\nSELECT\n resolved_incidents.id, \'incident_resolved\'\nFROM\n resolved_incidents\nRETURNING id, incident_id, type, failing_monitor, notification_recipients, acknowledged_by, resolved_by, created_at"
name: "resolveIncidentsByFailingMonitors"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "serial8" }
original_name: "id"
}
columns {
name: "incident_id"
not_null: true
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int8" }
original_name: "incident_id"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "event_type" }
original_name: "type"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "notification_recipients"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "notification_recipients"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "resolved_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "resolved_by"
}
columns {
name: "created_at"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "failing_monitors"
length: -1
is_named_param: true
table { name: "incidents" }
type { name: "integer" }
is_sqlc_slice: true
original_name: "failing_monitor"
}
}
filename: "queries.sql"
insert_into_table { name: "incident_events" }
}
queries {
text: "UPDATE\n incidents\nSET\n status = \'acknowledged\',\n updated_at = NOW()\nWHERE\n incidents.id IN ($1)\n AND incidents.status = \'unacknowledged\'\nRETURNING id, organization_id, display_name, description, failing_monitor, status, lead_by, acknowledged_by, unacknowledged_at, created_at, updated_at"
name: "setIncidentToAcknowledged"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "incidents_ids"
not_null: true
length: -1
is_named_param: true
table { name: "incidents" }
type { name: "bigint" }
is_sqlc_slice: true
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE heartbeat_monitors SET last_heartbeat = NOW()\nFROM monitors\nWHERE\n monitors.id = heartbeat_monitors.id\n AND NOT monitors.is_deleted\n AND heartbeat_slug = $1\nRETURNING monitors.id, organization_id, name, type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, updated_at, escalation_policy_id, heartbeat_monitors.id, heartbeat_slug, last_heartbeat, expected_interval, heartbeat_monitors.created_at"
name: "tickleHeartbeatMonitor"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
not_null: true
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
not_null: true
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "varchar" }
original_name: "heartbeat_slug"
}
columns {
name: "last_heartbeat"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_heartbeat"
}
columns {
name: "expected_interval"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "interval" }
original_name: "expected_interval"
}
columns {
name: "created_at"
length: -1
table { name: "heartbeat_monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "heartbeat_slug"
not_null: true
length: -1
table { name: "heartbeat_monitors" }
type { name: "text" }
original_name: "heartbeat_slug"
}
}
filename: "queries.sql"
}
queries {
text: "DELETE\nFROM opcua_attribute_values\nWHERE created_at + \'24 hours\' < NOW()"
name: "deleteAgedSamples"
cmd: ":exec"
filename: "queries.sql"
}
queries {
text: "SELECT id, team_id, name, notify_by_email, notify_by_push, notify_by_critical_alert, created_at, updated_at FROM severities\nWHERE team_id = $1\nORDER BY name ASC"
name: "getSeverities"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "team_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "severities" }
type { name: "text" }
original_name: "name"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "created_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { name: "integer" }
original_name: "team_id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, team_id, name, notify_by_email, notify_by_push, notify_by_critical_alert, created_at, updated_at FROM severities\nWHERE id = $1"
name: "getSeverityById"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "team_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "severities" }
type { name: "text" }
original_name: "name"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "created_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO severities (\n team_id, name, notify_by_email, notify_by_push, notify_by_critical_alert\n) VALUES ($1, $2, $3, $4, $5) RETURNING id, team_id, name, notify_by_email, notify_by_push, notify_by_critical_alert, created_at, updated_at"
name: "insertSeverity"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "team_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "severities" }
type { name: "text" }
original_name: "name"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "created_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "team_id"
not_null: true
length: -1
table { schema: "public" name: "severities" }
type { name: "integer" }
original_name: "team_id"
}
}
params {
number: 2
column {
name: "name"
not_null: true
length: -1
table { schema: "public" name: "severities" }
type { name: "text" }
original_name: "name"
}
}
params {
number: 3
column {
name: "notify_by_email"
not_null: true
length: -1
table { schema: "public" name: "severities" }
type { name: "boolean" }
original_name: "notify_by_email"
}
}
params {
number: 4
column {
name: "notify_by_push"
not_null: true
length: -1
table { schema: "public" name: "severities" }
type { name: "boolean" }
original_name: "notify_by_push"
}
}
params {
number: 5
column {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { schema: "public" name: "severities" }
type { name: "boolean" }
original_name: "notify_by_critical_alert"
}
}
filename: "queries.sql"
insert_into_table { name: "severities" }
}
queries {
text: "UPDATE severities\nSET\n name = COALESCE($2::TEXT, severities.name),\n notify_by_email = COALESCE($3::BOOLEAN, severities.notify_by_email),\n notify_by_push = COALESCE($4::BOOLEAN, severities.notify_by_push),\n notify_by_critical_alert = COALESCE($5::BOOLEAN, severities.notify_by_critical_alert),\n updated_at = NOW()\nWHERE id = $1\nRETURNING id, team_id, name, notify_by_email, notify_by_push, notify_by_critical_alert, created_at, updated_at"
name: "updateSeverity"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "team_id"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "int4" }
original_name: "team_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "severities" }
type { name: "text" }
original_name: "name"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "created_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "severities" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2 column { name: "name" length: -1 type { name: "text" } }
}
params {
number: 3
column {
name: "notify_by_email"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
params {
number: 4
column {
name: "notify_by_push"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
params {
number: 5
column {
name: "notify_by_critical_alert"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
filename: "queries.sql"
}
queries {
text: "DELETE FROM severities\nWHERE id = $1"
name: "deleteSeverity"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "severities" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "\nSELECT id, organization_id, name, description, is_default, is_deleted, created_at, updated_at FROM escalation_policies\nWHERE organization_id = $1 AND NOT is_deleted\nORDER BY name ASC"
name: "getEscalationPolicies"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_default"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "integer" }
original_name: "organization_id"
}
}
comments: "------------------------------------------------------------------------"
comments: " Escalation Policy Queries"
comments: "------------------------------------------------------------------------"
filename: "queries.sql"
}
queries {
text: "SELECT id, organization_id, name, description, is_default, is_deleted, created_at, updated_at FROM escalation_policies\nWHERE id = $1 AND NOT is_deleted"
name: "getEscalationPolicyById"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_default"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, organization_id, name, description, is_default, is_deleted, created_at, updated_at FROM escalation_policies\nWHERE organization_id = $1 AND is_default = TRUE AND NOT is_deleted"
name: "getDefaultEscalationPolicy"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_default"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "integer" }
original_name: "organization_id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO escalation_policies (\n organization_id, name, description, is_default\n) VALUES ($1, $2, $3, $4) RETURNING id, organization_id, name, description, is_default, is_deleted, created_at, updated_at"
name: "insertEscalationPolicy"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_default"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { schema: "public" name: "escalation_policies" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "name"
not_null: true
length: -1
table { schema: "public" name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
}
params {
number: 3
column {
name: "description"
length: -1
table { schema: "public" name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
}
params {
number: 4
column {
name: "is_default"
not_null: true
length: -1
table { schema: "public" name: "escalation_policies" }
type { name: "boolean" }
original_name: "is_default"
}
}
filename: "queries.sql"
insert_into_table { name: "escalation_policies" }
}
queries {
text: "UPDATE escalation_policies\nSET\n name = COALESCE($2::TEXT, escalation_policies.name),\n description = COALESCE($3::TEXT, escalation_policies.description),\n is_default = COALESCE($4::BOOLEAN, escalation_policies.is_default),\n updated_at = NOW()\nWHERE id = $1 AND NOT is_deleted\nRETURNING id, organization_id, name, description, is_default, is_deleted, created_at, updated_at"
name: "updateEscalationPolicy"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "description"
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "description"
}
columns {
name: "is_default"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_default"
}
columns {
name: "is_deleted"
not_null: true
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_policies" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2 column { name: "name" length: -1 type { name: "text" } }
}
params {
number: 3
column { name: "description" length: -1 type { name: "text" } }
}
params {
number: 4
column {
name: "is_default"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE escalation_policies\nSET is_deleted = TRUE, updated_at = NOW()\nWHERE id = $1"
name: "deleteEscalationPolicy"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT id, escalation_policy_id, step_order, delay_interval, notify_by_email, notify_by_push, notify_by_critical_alert, message_template, created_at, updated_at FROM escalation_steps\nWHERE escalation_policy_id = $1\nORDER BY step_order ASC"
name: "getEscalationSteps"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "step_order"
}
columns {
name: "delay_interval"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "interval" }
original_name: "delay_interval"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "message_template"
length: -1
table { name: "escalation_steps" }
type { name: "text" }
original_name: "message_template"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { name: "integer" }
original_name: "escalation_policy_id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO escalation_steps (\n escalation_policy_id, step_order, delay_interval,\n notify_by_email, notify_by_push, notify_by_critical_alert, message_template\n) VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING id, escalation_policy_id, step_order, delay_interval, notify_by_email, notify_by_push, notify_by_critical_alert, message_template, created_at, updated_at"
name: "insertEscalationStep"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "step_order"
}
columns {
name: "delay_interval"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "interval" }
original_name: "delay_interval"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "message_template"
length: -1
table { name: "escalation_steps" }
type { name: "text" }
original_name: "message_template"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "escalation_policy_id"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "integer" }
original_name: "escalation_policy_id"
}
}
params {
number: 2
column {
name: "step_order"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "integer" }
original_name: "step_order"
}
}
params {
number: 3
column {
name: "delay_interval"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "interval" }
original_name: "delay_interval"
}
}
params {
number: 4
column {
name: "notify_by_email"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "boolean" }
original_name: "notify_by_email"
}
}
params {
number: 5
column {
name: "notify_by_push"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "boolean" }
original_name: "notify_by_push"
}
}
params {
number: 6
column {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "boolean" }
original_name: "notify_by_critical_alert"
}
}
params {
number: 7
column {
name: "message_template"
length: -1
table { schema: "public" name: "escalation_steps" }
type { name: "text" }
original_name: "message_template"
}
}
filename: "queries.sql"
insert_into_table { name: "escalation_steps" }
}
queries {
text: "UPDATE escalation_steps\nSET\n step_order = COALESCE($2::INTEGER, escalation_steps.step_order),\n delay_interval = COALESCE($3::INTERVAL, escalation_steps.delay_interval),\n notify_by_email = COALESCE($4::BOOLEAN, escalation_steps.notify_by_email),\n notify_by_push = COALESCE($5::BOOLEAN, escalation_steps.notify_by_push),\n notify_by_critical_alert = COALESCE($6::BOOLEAN, escalation_steps.notify_by_critical_alert),\n message_template = COALESCE($7::TEXT, escalation_steps.message_template),\n updated_at = NOW()\nWHERE id = $1\nRETURNING id, escalation_policy_id, step_order, delay_interval, notify_by_email, notify_by_push, notify_by_critical_alert, message_template, created_at, updated_at"
name: "updateEscalationStep"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "int4" }
original_name: "step_order"
}
columns {
name: "delay_interval"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "interval" }
original_name: "delay_interval"
}
columns {
name: "notify_by_email"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_email"
}
columns {
name: "notify_by_push"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_push"
}
columns {
name: "notify_by_critical_alert"
not_null: true
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "bool" }
original_name: "notify_by_critical_alert"
}
columns {
name: "message_template"
length: -1
table { name: "escalation_steps" }
type { name: "text" }
original_name: "message_template"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "escalation_steps" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { name: "integer" }
original_name: "id"
}
}
params {
number: 2
column {
name: "step_order"
length: -1
type { schema: "pg_catalog" name: "int4" }
}
}
params {
number: 3
column {
name: "delay_interval"
length: -1
type { schema: "pg_catalog" name: "interval" }
}
}
params {
number: 4
column {
name: "notify_by_email"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
params {
number: 5
column {
name: "notify_by_push"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
params {
number: 6
column {
name: "notify_by_critical_alert"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
params {
number: 7
column {
name: "message_template" length: -1 type { name: "text" }
}
}
filename: "queries.sql"
}
queries {
text: "DELETE FROM escalation_steps\nWHERE id = $1"
name: "deleteEscalationStep"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_steps" }
type { name: "integer" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "\nINSERT INTO incident_escalations (\n id, escalation_policy_id, next_escalation_at\n) VALUES ($1, $2, $3) RETURNING id, escalation_policy_id, current_step, escalation_started_at, next_escalation_at, is_active, threshold, failed_checks, incident_notification_sent_at, resolved_notification_sent_at, acknowledged_notification_sent_at, created_at, updated_at"
name: "createIncidentEscalation"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { schema: "public" name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
params {
number: 2
column {
name: "escalation_policy_id"
not_null: true
length: -1
table { schema: "public" name: "incident_escalations" }
type { name: "integer" }
original_name: "escalation_policy_id"
}
}
params {
number: 3
column {
name: "next_escalation_at"
length: -1
table { schema: "public" name: "incident_escalations" }
type { name: "pg_catalog.timestamptz" }
original_name: "next_escalation_at"
}
}
comments: "------------------------------------------------------------------------"
comments: " Incident Escalation Queries"
comments: "------------------------------------------------------------------------"
filename: "queries.sql"
insert_into_table { name: "incident_escalations" }
}
queries {
text: "SELECT id, escalation_policy_id, current_step, escalation_started_at, next_escalation_at, is_active, threshold, failed_checks, incident_notification_sent_at, resolved_notification_sent_at, acknowledged_notification_sent_at, created_at, updated_at FROM incident_escalations\nWHERE id = $1"
name: "getIncidentEscalation"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET\n current_step = COALESCE($2::INTEGER, incident_escalations.current_step),\n next_escalation_at = COALESCE($3::TIMESTAMP WITH TIME ZONE, incident_escalations.next_escalation_at),\n is_active = COALESCE($4::BOOLEAN, incident_escalations.is_active),\n updated_at = NOW()\nWHERE id = $1\nRETURNING id, escalation_policy_id, current_step, escalation_started_at, next_escalation_at, is_active, threshold, failed_checks, incident_notification_sent_at, resolved_notification_sent_at, acknowledged_notification_sent_at, created_at, updated_at"
name: "updateIncidentEscalation"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
params {
number: 2
column {
name: "current_step"
length: -1
type { schema: "pg_catalog" name: "int4" }
}
}
params {
number: 3
column {
name: "next_escalation_at"
length: -1
type { schema: "pg_catalog" name: "timestamptz" }
}
}
params {
number: 4
column {
name: "is_active"
length: -1
type { schema: "pg_catalog" name: "bool" }
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n ie.id, ie.escalation_policy_id, ie.current_step, ie.escalation_started_at, ie.next_escalation_at, ie.is_active, ie.threshold, ie.failed_checks, ie.incident_notification_sent_at, ie.resolved_notification_sent_at, ie.acknowledged_notification_sent_at, ie.created_at, ie.updated_at,\n i.id,\n i.organization_id,\n i.display_name,\n i.description,\n i.failing_monitor,\n i.status,\n i.created_at,\n ep.name as escalation_policy_name,\n monitors.id, monitors.organization_id, monitors.name, monitors.type, monitors.healthiness, monitors.monitor_group, monitors.threshold_failures, monitors.is_active, monitors.is_deleted, monitors.last_checked, monitors.created_at, monitors.updated_at, monitors.escalation_policy_id\nFROM incident_escalations ie\nINNER JOIN incidents i ON ie.id = i.id\nINNER JOIN escalation_policies ep ON ie.escalation_policy_id = ep.id\nLEFT JOIN monitors ON monitors.id = i.failing_monitor\nWHERE\n ie.is_active = TRUE\n AND ie.next_escalation_at <= NOW()\n AND i.status NOT IN (\'acknowledged\', \'resolved\')\nORDER BY ie.next_escalation_at ASC\nLIMIT 100"
name: "getIncidentsToEscalate"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "escalation_policy_name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET is_active = FALSE, updated_at = NOW()\nWHERE id = $1"
name: "pauseIncidentEscalation"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET is_active = TRUE, updated_at = NOW()\nWHERE id = $1"
name: "resumeIncidentEscalation"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "INSERT INTO escalation_notifications (\n incident_escalation_id, step_order, notification_channel, delivery_status\n) VALUES ($1, $2, $3, $4) RETURNING id, incident_escalation_id, step_order, notification_channel, sent_at, delivery_status, error_message, created_at"
name: "insertEscalationNotification"
cmd: ":one"
columns {
name: "id"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "incident_escalation_id"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int8" }
original_name: "incident_escalation_id"
}
columns {
name: "step_order"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "int4" }
original_name: "step_order"
}
columns {
name: "notification_channel"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
original_name: "notification_channel"
}
columns {
name: "sent_at"
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "sent_at"
}
columns {
name: "delivery_status"
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
original_name: "delivery_status"
}
columns {
name: "error_message"
length: -1
table { name: "escalation_notifications" }
type { name: "text" }
original_name: "error_message"
}
columns {
name: "created_at"
length: -1
table { name: "escalation_notifications" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "incident_escalation_id"
not_null: true
length: -1
table { schema: "public" name: "escalation_notifications" }
type { name: "bigint" }
original_name: "incident_escalation_id"
}
}
params {
number: 2
column {
name: "step_order"
not_null: true
length: -1
table { schema: "public" name: "escalation_notifications" }
type { name: "integer" }
original_name: "step_order"
}
}
params {
number: 3
column {
name: "notification_channel"
not_null: true
length: -1
table { schema: "public" name: "escalation_notifications" }
type { name: "text" }
original_name: "notification_channel"
}
}
params {
number: 4
column {
name: "delivery_status"
length: -1
table { schema: "public" name: "escalation_notifications" }
type { name: "text" }
original_name: "delivery_status"
}
}
filename: "queries.sql"
insert_into_table { name: "escalation_notifications" }
}
queries {
text: "UPDATE escalation_notifications\nSET\n delivery_status = $2,\n error_message = COALESCE($3::TEXT, error_message)\nWHERE id = $1"
name: "updateEscalationNotificationStatus"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "escalation_notifications" }
type { name: "bigint" }
original_name: "id"
}
}
params {
number: 2
column {
name: "delivery_status"
length: -1
table { schema: "public" name: "escalation_notifications" }
type { name: "text" }
original_name: "delivery_status"
}
}
params {
number: 3
column { name: "error_message" length: -1 type { name: "text" } }
}
filename: "queries.sql"
}
queries {
text: "SELECT\n ie.id, ie.escalation_policy_id, ie.current_step, ie.escalation_started_at, ie.next_escalation_at, ie.is_active, ie.threshold, ie.failed_checks, ie.incident_notification_sent_at, ie.resolved_notification_sent_at, ie.acknowledged_notification_sent_at, ie.created_at, ie.updated_at,\n i.id,\n i.organization_id,\n i.display_name,\n i.description,\n i.failing_monitor,\n i.status,\n i.created_at,\n ep.name as escalation_policy_name\nFROM incident_escalations ie\nINNER JOIN incidents i ON ie.id = i.id\nINNER JOIN escalation_policies ep ON ie.escalation_policy_id = ep.id\nWHERE\n i.status = \'resolved\'\n AND ie.incident_notification_sent_at IS NOT NULL\n AND ie.resolved_notification_sent_at IS NULL\nORDER BY i.updated_at ASC\nLIMIT 100"
name: "getResolvedIncidentsForNotification"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "escalation_policy_name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET incident_notification_sent_at = NOW(), updated_at = NOW()\nWHERE id = $1"
name: "markIncidentNotificationSent"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET resolved_notification_sent_at = NOW(), updated_at = NOW()\nWHERE id = $1"
name: "markResolvedNotificationSent"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n ie.id, ie.escalation_policy_id, ie.current_step, ie.escalation_started_at, ie.next_escalation_at, ie.is_active, ie.threshold, ie.failed_checks, ie.incident_notification_sent_at, ie.resolved_notification_sent_at, ie.acknowledged_notification_sent_at, ie.created_at, ie.updated_at,\n i.id,\n i.organization_id,\n i.display_name,\n i.description,\n i.failing_monitor,\n i.status,\n i.created_at,\n ep.name as escalation_policy_name,\n monitors.id, monitors.organization_id, monitors.name, monitors.type, monitors.healthiness, monitors.monitor_group, monitors.threshold_failures, monitors.is_active, monitors.is_deleted, monitors.last_checked, monitors.created_at, monitors.updated_at, monitors.escalation_policy_id\nFROM incident_escalations ie\nINNER JOIN incidents i ON ie.id = i.id\nINNER JOIN escalation_policies ep ON ie.escalation_policy_id = ep.id\nLEFT JOIN monitors ON monitors.id = i.failing_monitor\nWHERE\n i.status = \'acknowledged\'\n AND ie.incident_notification_sent_at IS NOT NULL\n AND ie.acknowledged_notification_sent_at IS NULL\nORDER BY i.updated_at ASC\nLIMIT 100"
name: "getAcknowledgedIncidentsForNotification"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "escalation_policy_id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
columns {
name: "current_step"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "current_step"
}
columns {
name: "escalation_started_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "escalation_started_at"
}
columns {
name: "next_escalation_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "next_escalation_at"
}
columns {
name: "is_active"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "threshold"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold"
}
columns {
name: "failed_checks"
not_null: true
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failed_checks"
}
columns {
name: "incident_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "incident_notification_sent_at"
}
columns {
name: "resolved_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "resolved_notification_sent_at"
}
columns {
name: "acknowledged_notification_sent_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "acknowledged_notification_sent_at"
}
columns {
name: "created_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incident_escalations" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "escalation_policy_name"
not_null: true
length: -1
table { name: "escalation_policies" }
type { name: "text" }
original_name: "name"
}
columns {
name: "id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
filename: "queries.sql"
}
queries {
text: "UPDATE incident_escalations\nSET acknowledged_notification_sent_at = NOW(), updated_at = NOW()\nWHERE id = $1"
name: "markAcknowledgedNotificationSent"
cmd: ":exec"
params {
number: 1
column {
name: "id"
not_null: true
length: -1
table { name: "incident_escalations" }
type { name: "bigint" }
original_name: "id"
}
}
filename: "queries.sql"
}
queries {
text: "SELECT\n incident_events.id, incident_id, incident_events.type, incident_events.failing_monitor, notification_recipients, incident_events.acknowledged_by, resolved_by, incident_events.created_at, incidents.id, incidents.organization_id, display_name, description, incidents.failing_monitor, status, lead_by, incidents.acknowledged_by, unacknowledged_at, incidents.created_at, incidents.updated_at, monitors.id, monitors.organization_id, name, monitors.type, healthiness, monitor_group, threshold_failures, is_active, is_deleted, last_checked, monitors.created_at, monitors.updated_at, escalation_policy_id\nFROM\n incident_events\n JOIN incidents ON incident_events.incident_id = incidents.id\n LEFT JOIN monitors ON monitors.id = incident_events.failing_monitor\nWHERE\n incidents.organization_id = $1\n AND (\n incidents.id = ANY($3::BIGINT [])\n OR incident_events.failing_monitor = ANY($4::INT [])\n )\n ORDER BY incident_events.created_at ASC\n LIMIT $2"
name: "getIncidentEvents"
cmd: ":many"
columns {
name: "id"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "serial8" }
original_name: "id"
}
columns {
name: "incident_id"
not_null: true
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int8" }
original_name: "incident_id"
}
columns {
name: "type"
not_null: true
length: -1
table { name: "incident_events" }
type { name: "event_type" }
original_name: "type"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "notification_recipients"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "notification_recipients"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "resolved_by"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "int4" }
original_name: "resolved_by"
}
columns {
name: "created_at"
length: -1
table { name: "incident_events" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int8" }
original_name: "id"
}
columns {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "display_name"
not_null: true
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "display_name"
}
columns {
name: "description"
length: -1
table { name: "incidents" }
type { name: "text" }
original_name: "description"
}
columns {
name: "failing_monitor"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "failing_monitor"
}
columns {
name: "status"
not_null: true
length: -1
table { name: "incidents" }
type { name: "incident_status" }
original_name: "status"
}
columns {
name: "lead_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "lead_by"
}
columns {
name: "acknowledged_by"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "int4" }
original_name: "acknowledged_by"
}
columns {
name: "unacknowledged_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "unacknowledged_at"
}
columns {
name: "created_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "incidents" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "id"
}
columns {
name: "organization_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "organization_id"
}
columns {
name: "name"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "name"
}
columns {
name: "type"
length: -1
table { name: "monitors" }
type { name: "monitor_type" }
original_name: "type"
}
columns {
name: "healthiness"
length: -1
table { name: "monitors" }
type { name: "monitor_healthiness" }
original_name: "healthiness"
}
columns {
name: "monitor_group"
length: -1
table { name: "monitors" }
type { name: "text" }
original_name: "monitor_group"
}
columns {
name: "threshold_failures"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "threshold_failures"
}
columns {
name: "is_active"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_active"
}
columns {
name: "is_deleted"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "bool" }
original_name: "is_deleted"
}
columns {
name: "last_checked"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "last_checked"
}
columns {
name: "created_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
columns {
name: "updated_at"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "updated_at"
}
columns {
name: "escalation_policy_id"
length: -1
table { name: "monitors" }
type { schema: "pg_catalog" name: "int4" }
original_name: "escalation_policy_id"
}
params {
number: 1
column {
name: "organization_id"
not_null: true
length: -1
table { name: "incidents" }
type { name: "integer" }
original_name: "organization_id"
}
}
params {
number: 2
column {
name: "limit" not_null: true length: -1 type { name: "bigint" }
}
}
params {
number: 3
column {
name: "incident_ids"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "int8" }
array_dims: 1
}
}
params {
number: 4
column {
name: "monitor_ids"
not_null: true
is_array: true
length: -1
type { schema: "pg_catalog" name: "int4" }
array_dims: 1
}
}
comments: " LEFT JOIN logins AS acknowledged_by ON acknowledged_by.id = incident_events.acknowledged_by"
comments: " LEFT JOIN logins AS resolved_by ON resolved_by.id = incident_events.resolved_by"
filename: "queries.sql"
}
queries {
text: "SELECT\n endpoint_monitor_id,\n opcua_node_id,\n attribute_id,\n value_type,\n value_integral,\n value_float,\n value_bool,\n value_string,\n value_status_code,\n value,\n created_at\nFROM opcua_attribute_values\nWHERE\n endpoint_monitor_id = $1\n AND opcua_node_id = $2::OPCUA_NODE_ID\n AND attribute_id = $3::OPCUA_ATTRIBUTE_ID\n AND created_at >= $4\n AND created_at <= $5\nORDER BY created_at DESC"
name: "getOpcuaAttributeValuesForTimeRange"
cmd: ":many"
columns {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int4" }
original_name: "endpoint_monitor_id"
}
columns {
name: "opcua_node_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_node_id" }
original_name: "opcua_node_id"
}
columns {
name: "attribute_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_attribute_id" }
original_name: "attribute_id"
}
columns {
name: "value_type"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_type" }
original_name: "value_type"
}
columns {
name: "value_integral"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int8" }
original_name: "value_integral"
}
columns {
name: "value_float"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "float8" }
original_name: "value_float"
}
columns {
name: "value_bool"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "bool" }
original_name: "value_bool"
}
columns {
name: "value_string"
length: -1
table { name: "opcua_attribute_values" }
type { name: "text" }
original_name: "value_string"
}
columns {
name: "value_status_code"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "int4" }
original_name: "value_status_code"
}
columns {
name: "value"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "opcua_value" }
original_name: "value"
}
columns {
name: "created_at"
length: -1
table { name: "opcua_attribute_values" }
type { schema: "pg_catalog" name: "timestamptz" }
original_name: "created_at"
}
params {
number: 1
column {
name: "endpoint_monitor_id"
not_null: true
length: -1
table { name: "opcua_attribute_values" }
type { name: "integer" }
original_name: "endpoint_monitor_id"
}
}
params {
number: 2
column {
name: "opcua_node_id"
not_null: true
length: -1
type { name: "opcua_node_id" }
}
}
params {
number: 3
column {
name: "attribute_id"
not_null: true
length: -1
type { name: "opcua_attribute_id" }
}
}
params {
number: 4
column {
name: "start_time"
length: -1
is_named_param: true
table { name: "opcua_attribute_values" }
type { name: "pg_catalog.timestamptz" }
original_name: "created_at"
}
}
params {
number: 5
column {
name: "end_time"
length: -1
is_named_param: true
table { name: "opcua_attribute_values" }
type { name: "pg_catalog.timestamptz" }
original_name: "created_at"
}
}
filename: "queries.sql"
}
sqlc_version: "v1.29.0"
plugin_options: "{\"cabal_default_extensions\":[\"NoFieldSelectors\"],\"cabal_package_name\":\"pulse-db\",\"haskell_module_prefix\":\"Pulse.Database\",\"overrides\":[{\"db_type\":\"x509_certificate\",\"haskell_type\":[{\"type\":\"Maybe (Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString)\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":true},{\"db_type\":\"private_key\",\"haskell_type\":[{\"type\":\"Maybe (Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString)\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":true},{\"db_type\":\"x509_certificate\",\"haskell_type\":[{\"type\":\"Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":false},{\"db_type\":\"private_key\",\"haskell_type\":[{\"type\":\"Database.PostgreSQL.Simple.Binary Data.ByteString.ByteString\"},{\"module\":\"Data.ByteString\",\"package\":\"bytestring\"},{\"module\":\"Database.PostgreSQL.Simple\",\"package\":\"postgresql-simple\"}],\"nullable\":false},{\"db_type\":\"check_expr\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.CheckExpr\"},\"nullable\":false},{\"db_type\":\"opcua_type\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValueType\"},\"nullable\":false},{\"db_type\":\"opcua_attribute_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeValue\"},\"nullable\":true},{\"db_type\":\"opcua_attribute_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeValue\"},\"nullable\":false},{\"db_type\":\"opcua_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValue\"},\"nullable\":false},{\"db_type\":\"opcua_value\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaDataValue\"},\"nullable\":true},{\"db_type\":\"opcua_attribute_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaAttributeId\"},\"nullable\":false},{\"db_type\":\"opcua_attribute_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.OpcuaAttributeId\"},\"nullable\":true},{\"db_type\":\"opcua_node_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.OpcuaNodeId\"},\"nullable\":false},{\"db_type\":\"opcua_node_id\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.OpcuaNodeId\"},\"nullable\":true},{\"db_type\":\"pg_catalog.timestamptz\",\"haskell_type\":{\"module\":\"Data.Time\",\"package\":\"time\",\"type\":\"Maybe Data.Time.UTCTime\"},\"nullable\":true},{\"db_type\":\"pg_catalog.timestamptz\",\"haskell_type\":{\"module\":\"Data.Time\",\"nullable\":false,\"package\":\"time\",\"type\":\"Data.Time.UTCTime\"}},{\"db_type\":\"pg_catalog.interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Data.Time.LocalTime.CalendarDiffTime\"}},{\"db_type\":\"interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Data.Time.LocalTime.CalendarDiffTime\"}},{\"db_type\":\"pg_catalog.interval\",\"haskell_type\":{\"module\":\"Data.Time.LocalTime\",\"package\":\"time\",\"type\":\"Maybe Data.Time.LocalTime.CalendarDiffTime\"},\"nullable\":true},{\"db_type\":\"timezone\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Maybe Pulse.Database.DBTypes.Timezone\"},\"nullable\":true},{\"db_type\":\"timezone\",\"haskell_type\":{\"module\":\"Pulse.Database.DBTypes\",\"package\":\"pulse-db-types\",\"type\":\"Pulse.Database.DBTypes.Timezone\"}}]}"