diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff3d935..b252456 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] + branches: [ main, develop ] pull_request: - branches: [ main ] + branches: [ main, develop ] jobs: test: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1821f98..a65581c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Docker Publish on: push: - branches: [ "main" ] + branches: [ "main", "develop" ] tags: [ "v*" ] env: diff --git a/Dockerfile b/Dockerfile index e77d7ec..b72af86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,6 @@ WORKDIR /app RUN apk add --no-cache ca-certificates tzdata wget COPY --from=builder /capy-server . COPY --from=builder /app/docs ./docs -COPY --from=builder /app/schema.sql ./schema.sql COPY --from=builder /app/migrations ./migrations RUN adduser -D -g '' appuser USER appuser diff --git a/Makefile b/Makefile index 9003174..4d96c9e 100644 --- a/Makefile +++ b/Makefile @@ -37,6 +37,12 @@ migrate-version: test -n "$$db_url" || (echo "Set MIGRATE_DATABASE_URL or DATABASE_URL (or add DATABASE_URL to .env)" && exit 1); \ docker run --rm --network $(COMPOSE_NETWORK) -v "$(CURDIR)/$(MIGRATIONS_DIR):/migrations" $(MIGRATE_DOCKER_IMAGE) -path /migrations -database "$$db_url" version +migrate-force: + @test -n "$(version)" || (echo "Usage: make migrate-version version=20260327180817" && exit 1) + @db_url="$${MIGRATE_DATABASE_URL:-$${DATABASE_URL:-$$(grep -E '^DATABASE_URL=' .env 2>/dev/null | head -n1 | cut -d= -f2-)}}"; \ + test -n "$$db_url" || (echo "Set MIGRATE_DATABASE_URL or DATABASE_URL (or add DATABASE_URL to .env)" && exit 1); \ + docker run --rm --network $(COMPOSE_NETWORK) -v "$(CURDIR)/$(MIGRATIONS_DIR):/migrations" $(MIGRATE_DOCKER_IMAGE) -path /migrations -database "$$db_url" force $(version) + # Build build: generate go build -o bin/capy-server ./cmd/server diff --git a/cmd/server/main.go b/cmd/server/main.go index 12d91bb..c08d1f1 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -40,7 +40,11 @@ import ( // @name X-Bot-Token func main() { // Setup structured logging - slog.SetDefault(slog.New(slog.NewJSONHandler(os.Stdout, nil))) + level := slog.LevelInfo + if os.Getenv("ENV") == "development" || os.Getenv("ENV") == "staging" || os.Getenv("ENV") == "" { + level = slog.LevelDebug + } + slog.SetDefault(slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{Level: level}))) // Load configuration cfg, err := config.Load() diff --git a/docker-compose.yml b/docker-compose.yml index 6594f6f..7c643db 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,14 +25,5 @@ services: db: condition: service_healthy - tunnel: - image: cloudflare/cloudflared:latest - restart: unless-stopped - command: tunnel run - env_file: - - .env - depends_on: - - api - volumes: pgdata: diff --git a/docs/schema/schema.json b/docs/schema/schema.json index 737f7e8..80ea402 100644 --- a/docs/schema/schema.json +++ b/docs/schema/schema.json @@ -3,7 +3,12 @@ "version": "2", "engine": "postgresql", "schema": [ - "schema.sql" + "migrations/20260316192946_initial_schema.up.sql", + "migrations/20260318030206_telemetry_table.up.sql", + "migrations/20260319120000_add_dev_user_role.up.sql", + "migrations/20260326224918_add_links.up.sql", + "migrations/20260327022209_add_event_title.up.sql", + "migrations/20260327180817_add_event_view.up.sql" ], "queries": [ "internal/database/queries.sql" @@ -712,6 +717,32 @@ "original_name": "", "unsigned": false, "array_dims": 0 + }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 } ], "comment": "" @@ -1135,59 +1166,33 @@ } ], "comment": "" - } - ], - "enums": [ - { - "name": "user_role", - "vals": [ - "student", - "alumni", - "faculty", - "external" - ], - "comment": "" - } - ], - "composite_types": [] - }, - { - "comment": "", - "name": "pg_temp", - "tables": [], - "enums": [], - "composite_types": [] - }, - { - "comment": "", - "name": "pg_catalog", - "tables": [ + }, { "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "columns": [ { - "name": "tableoid", + "name": "id", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bigserial" }, "is_sqlc_slice": false, "embed_table": null, @@ -1196,24 +1201,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "correlation_id", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "cid" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1222,24 +1227,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "timestamp", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -1248,24 +1253,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "received_at", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -1274,24 +1279,24 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "interaction_type", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "xid" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1300,24 +1305,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "user_id", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "tid" + "schema": "pg_catalog", + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -1326,24 +1331,24 @@ "array_dims": 0 }, { - "name": "aggfnoid", - "not_null": true, + "name": "command_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "regproc" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1352,24 +1357,24 @@ "array_dims": 0 }, { - "name": "aggkind", - "not_null": true, + "name": "guild_id", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "char" + "schema": "pg_catalog", + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -1378,24 +1383,24 @@ "array_dims": 0 }, { - "name": "aggnumdirectargs", - "not_null": true, + "name": "guild_name", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "int2" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1404,24 +1409,24 @@ "array_dims": 0 }, { - "name": "aggtransfn", + "name": "channel_id", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "regproc" + "schema": "pg_catalog", + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -1430,24 +1435,24 @@ "array_dims": 0 }, { - "name": "aggfinalfn", + "name": "options", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "jsonb" }, "is_sqlc_slice": false, "embed_table": null, @@ -1456,50 +1461,60 @@ "array_dims": 0 }, { - "name": "aggcombinefn", + "name": "bot_version", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_interactions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "regproc" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "", + "schema": "", + "name": "telemetry_completions" + }, + "columns": [ { - "name": "aggserialfn", + "name": "id", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "bigserial" }, "is_sqlc_slice": false, "embed_table": null, @@ -1508,24 +1523,24 @@ "array_dims": 0 }, { - "name": "aggdeserialfn", + "name": "correlation_id", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "regproc" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1534,24 +1549,24 @@ "array_dims": 0 }, { - "name": "aggmtransfn", + "name": "timestamp", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -1560,24 +1575,24 @@ "array_dims": 0 }, { - "name": "aggminvtransfn", + "name": "received_at", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -1586,24 +1601,24 @@ "array_dims": 0 }, { - "name": "aggmfinalfn", + "name": "command_name", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "regproc" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1612,24 +1627,24 @@ "array_dims": 0 }, { - "name": "aggfinalextra", + "name": "status", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "bool" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, @@ -1638,24 +1653,24 @@ "array_dims": 0 }, { - "name": "aggmfinalextra", - "not_null": true, + "name": "duration_ms", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "bool" + "schema": "pg_catalog", + "name": "numeric" }, "is_sqlc_slice": false, "embed_table": null, @@ -1664,50 +1679,60 @@ "array_dims": 0 }, { - "name": "aggfinalmodify", - "not_null": true, + "name": "error_type", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "telemetry_completions" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "char" + "schema": "pg_catalog", + "name": "varchar" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "", + "schema": "", + "name": "links" + }, + "columns": [ { - "name": "aggmfinalmodify", + "name": "lid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1716,24 +1741,24 @@ "array_dims": 0 }, { - "name": "aggsortop", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -1742,24 +1767,24 @@ "array_dims": 0 }, { - "name": "aggtranstype", + "name": "dest_url", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -1768,24 +1793,24 @@ "array_dims": 0 }, { - "name": "aggtransspace", + "name": "oid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1794,24 +1819,60 @@ "array_dims": 0 }, { - "name": "aggmtranstype", - "not_null": true, + "name": "created_at", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", + "catalog": "", + "schema": "", + "name": "links" + }, + "table_alias": "", + "type": { + "catalog": "", "schema": "pg_catalog", - "name": "pg_aggregate" + "name": "timestamp" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "", + "schema": "", + "name": "link_visits" + }, + "columns": [ + { + "name": "lvid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1820,24 +1881,24 @@ "array_dims": 0 }, { - "name": "aggmtransspace", + "name": "lid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1846,7 +1907,7 @@ "array_dims": 0 }, { - "name": "agginitval", + "name": "uid", "not_null": false, "is_array": false, "comment": "", @@ -1855,15 +1916,15 @@ "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1872,7 +1933,7 @@ "array_dims": 0 }, { - "name": "aggminitval", + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -1881,15 +1942,15 @@ "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_aggregate" + "catalog": "", + "schema": "", + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, @@ -1902,30 +1963,30 @@ }, { "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "columns": [ { - "name": "tableoid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, @@ -1934,24 +1995,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "location", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -1960,24 +2021,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "event_time", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "pg_catalog.timestamp" }, "is_sqlc_slice": false, "embed_table": null, @@ -1986,24 +2047,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "description", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -2012,24 +2073,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "date_created", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, @@ -2038,24 +2099,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "date_modified", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, @@ -2064,24 +2125,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "title", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "catalog": "", + "schema": "", + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -2090,91 +2151,66 @@ "array_dims": 0 }, { - "name": "amname", - "not_null": true, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "amhandler", + "name": "org_ids", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" - }, - "table_alias": "", - "type": { "catalog": "", "schema": "", - "name": "regproc" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "amtype", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_am" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, - "array_dims": 0 + "array_dims": 1 } ], "comment": "" - }, + } + ], + "enums": [ + { + "name": "user_role", + "vals": [ + "student", + "alumni", + "faculty", + "external", + "dev" + ], + "comment": "" + } + ], + "composite_types": [] + }, + { + "comment": "", + "name": "pg_temp", + "tables": [], + "enums": [], + "composite_types": [] + }, + { + "comment": "", + "name": "pg_catalog", + "tables": [ { "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "columns": [ { @@ -2189,7 +2225,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2215,7 +2251,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2241,7 +2277,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2267,7 +2303,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2293,7 +2329,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2319,7 +2355,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2334,7 +2370,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "aggfnoid", "not_null": true, "is_array": false, "comment": "", @@ -2345,13 +2381,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2360,24 +2396,24 @@ "array_dims": 0 }, { - "name": "amopfamily", + "name": "aggkind", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -2386,24 +2422,24 @@ "array_dims": 0 }, { - "name": "amoplefttype", + "name": "aggnumdirectargs", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -2412,7 +2448,7 @@ "array_dims": 0 }, { - "name": "amoprighttype", + "name": "aggtransfn", "not_null": true, "is_array": false, "comment": "", @@ -2423,13 +2459,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2438,24 +2474,24 @@ "array_dims": 0 }, { - "name": "amopstrategy", + "name": "aggfinalfn", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2464,24 +2500,24 @@ "array_dims": 0 }, { - "name": "amoppurpose", + "name": "aggcombinefn", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2490,7 +2526,7 @@ "array_dims": 0 }, { - "name": "amopopr", + "name": "aggserialfn", "not_null": true, "is_array": false, "comment": "", @@ -2501,13 +2537,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2516,7 +2552,7 @@ "array_dims": 0 }, { - "name": "amopmethod", + "name": "aggdeserialfn", "not_null": true, "is_array": false, "comment": "", @@ -2527,13 +2563,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2542,7 +2578,7 @@ "array_dims": 0 }, { - "name": "amopsortfamily", + "name": "aggmtransfn", "not_null": true, "is_array": false, "comment": "", @@ -2553,32 +2589,22 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amop" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_amproc" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "aggminvtransfn", "not_null": true, "is_array": false, "comment": "", @@ -2589,13 +2615,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2604,7 +2630,7 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "aggmfinalfn", "not_null": true, "is_array": false, "comment": "", @@ -2615,13 +2641,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -2630,24 +2656,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "aggfinalextra", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -2656,24 +2682,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "aggmfinalextra", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -2682,24 +2708,24 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "aggfinalmodify", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -2708,24 +2734,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "aggmfinalmodify", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -2734,7 +2760,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "aggsortop", "not_null": true, "is_array": false, "comment": "", @@ -2745,7 +2771,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2760,7 +2786,7 @@ "array_dims": 0 }, { - "name": "amprocfamily", + "name": "aggtranstype", "not_null": true, "is_array": false, "comment": "", @@ -2771,7 +2797,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2786,7 +2812,7 @@ "array_dims": 0 }, { - "name": "amproclefttype", + "name": "aggtransspace", "not_null": true, "is_array": false, "comment": "", @@ -2797,13 +2823,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -2812,7 +2838,7 @@ "array_dims": 0 }, { - "name": "amprocrighttype", + "name": "aggmtranstype", "not_null": true, "is_array": false, "comment": "", @@ -2823,7 +2849,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { @@ -2838,24 +2864,24 @@ "array_dims": 0 }, { - "name": "amprocnum", + "name": "aggmtransspace", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -2864,24 +2890,50 @@ "array_dims": 0 }, { - "name": "amproc", - "not_null": true, + "name": "agginitval", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_amproc" + "name": "pg_aggregate" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "aggminitval", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_aggregate" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -2896,7 +2948,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "columns": [ { @@ -2911,7 +2963,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -2937,7 +2989,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -2963,7 +3015,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -2989,7 +3041,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -3015,7 +3067,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -3041,7 +3093,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -3067,7 +3119,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { @@ -3082,24 +3134,24 @@ "array_dims": 0 }, { - "name": "adrelid", + "name": "amname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -3108,24 +3160,24 @@ "array_dims": 0 }, { - "name": "adnum", + "name": "amhandler", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -3134,24 +3186,24 @@ "array_dims": 0 }, { - "name": "adbin", + "name": "amtype", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attrdef" + "name": "pg_am" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -3166,7 +3218,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "columns": [ { @@ -3181,7 +3233,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3207,7 +3259,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3233,7 +3285,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3259,7 +3311,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3285,7 +3337,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3311,7 +3363,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3326,7 +3378,7 @@ "array_dims": 0 }, { - "name": "attrelid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -3337,7 +3389,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3352,24 +3404,24 @@ "array_dims": 0 }, { - "name": "attname", + "name": "amopfamily", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3378,7 +3430,7 @@ "array_dims": 0 }, { - "name": "atttypid", + "name": "amoplefttype", "not_null": true, "is_array": false, "comment": "", @@ -3389,7 +3441,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3404,7 +3456,7 @@ "array_dims": 0 }, { - "name": "attstattarget", + "name": "amoprighttype", "not_null": true, "is_array": false, "comment": "", @@ -3415,13 +3467,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3430,7 +3482,7 @@ "array_dims": 0 }, { - "name": "attlen", + "name": "amopstrategy", "not_null": true, "is_array": false, "comment": "", @@ -3441,7 +3493,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { @@ -3456,24 +3508,24 @@ "array_dims": 0 }, { - "name": "attnum", + "name": "amoppurpose", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -3482,7 +3534,7 @@ "array_dims": 0 }, { - "name": "attndims", + "name": "amopopr", "not_null": true, "is_array": false, "comment": "", @@ -3493,13 +3545,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3508,7 +3560,7 @@ "array_dims": 0 }, { - "name": "attcacheoff", + "name": "amopmethod", "not_null": true, "is_array": false, "comment": "", @@ -3519,13 +3571,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3534,7 +3586,7 @@ "array_dims": 0 }, { - "name": "atttypmod", + "name": "amopsortfamily", "not_null": true, "is_array": false, "comment": "", @@ -3545,65 +3597,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attbyval", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amop" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_amproc" + }, + "columns": [ { - "name": "attalign", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3612,24 +3648,24 @@ "array_dims": 0 }, { - "name": "attstorage", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3638,24 +3674,24 @@ "array_dims": 0 }, { - "name": "attcompression", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3664,24 +3700,24 @@ "array_dims": 0 }, { - "name": "attnotnull", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3690,24 +3726,24 @@ "array_dims": 0 }, { - "name": "atthasdef", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3716,24 +3752,24 @@ "array_dims": 0 }, { - "name": "atthasmissing", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3742,24 +3778,24 @@ "array_dims": 0 }, { - "name": "attidentity", + "name": "oid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3768,24 +3804,24 @@ "array_dims": 0 }, { - "name": "attgenerated", + "name": "amprocfamily", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3794,24 +3830,24 @@ "array_dims": 0 }, { - "name": "attisdropped", + "name": "amproclefttype", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3820,24 +3856,24 @@ "array_dims": 0 }, { - "name": "attislocal", + "name": "amprocrighttype", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -3846,24 +3882,24 @@ "array_dims": 0 }, { - "name": "attinhcount", + "name": "amprocnum", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -3872,7 +3908,7 @@ "array_dims": 0 }, { - "name": "attcollation", + "name": "amproc", "not_null": true, "is_array": false, "comment": "", @@ -3883,117 +3919,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_attribute" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attacl", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_attribute" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_aclitem" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_attribute" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attfdwoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_attribute" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attmissingval", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_attribute" + "name": "pg_amproc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -4008,7 +3940,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "columns": [ { @@ -4023,7 +3955,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4049,7 +3981,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4075,7 +4007,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4101,7 +4033,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4127,7 +4059,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4153,7 +4085,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4168,7 +4100,7 @@ "array_dims": 0 }, { - "name": "roleid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -4179,7 +4111,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4194,7 +4126,7 @@ "array_dims": 0 }, { - "name": "member", + "name": "adrelid", "not_null": true, "is_array": false, "comment": "", @@ -4205,7 +4137,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { @@ -4220,24 +4152,24 @@ "array_dims": 0 }, { - "name": "grantor", + "name": "adnum", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -4246,24 +4178,24 @@ "array_dims": 0 }, { - "name": "admin_option", + "name": "adbin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_auth_members" + "name": "pg_attrdef" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -4278,7 +4210,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "columns": [ { @@ -4293,7 +4225,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4319,7 +4251,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4345,7 +4277,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4371,7 +4303,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4397,7 +4329,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4423,7 +4355,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4438,7 +4370,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "attrelid", "not_null": true, "is_array": false, "comment": "", @@ -4449,7 +4381,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4464,7 +4396,7 @@ "array_dims": 0 }, { - "name": "rolname", + "name": "attname", "not_null": true, "is_array": false, "comment": "", @@ -4475,7 +4407,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4490,24 +4422,24 @@ "array_dims": 0 }, { - "name": "rolsuper", + "name": "atttypid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -4516,24 +4448,24 @@ "array_dims": 0 }, { - "name": "rolinherit", + "name": "attstattarget", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -4542,24 +4474,24 @@ "array_dims": 0 }, { - "name": "rolcreaterole", + "name": "attlen", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -4568,24 +4500,24 @@ "array_dims": 0 }, { - "name": "rolcreatedb", + "name": "attnum", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -4594,24 +4526,24 @@ "array_dims": 0 }, { - "name": "rolcanlogin", + "name": "attndims", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -4620,24 +4552,24 @@ "array_dims": 0 }, { - "name": "rolreplication", + "name": "attcacheoff", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -4646,7 +4578,33 @@ "array_dims": 0 }, { - "name": "rolbypassrls", + "name": "atttypmod", + "not_null": true, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_attribute" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "attbyval", "not_null": true, "is_array": false, "comment": "", @@ -4657,7 +4615,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4672,24 +4630,24 @@ "array_dims": 0 }, { - "name": "rolconnlimit", + "name": "attalign", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -4698,24 +4656,24 @@ "array_dims": 0 }, { - "name": "rolpassword", - "not_null": false, + "name": "attstorage", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -4724,60 +4682,50 @@ "array_dims": 0 }, { - "name": "rolvaliduntil", - "not_null": false, + "name": "attcompression", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_authid" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_available_extension_versions" - }, - "columns": [ + }, { - "name": "name", - "not_null": false, + "name": "attnotnull", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -4786,24 +4734,24 @@ "array_dims": 0 }, { - "name": "version", - "not_null": false, + "name": "atthasdef", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -4812,8 +4760,8 @@ "array_dims": 0 }, { - "name": "installed", - "not_null": false, + "name": "atthasmissing", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -4823,7 +4771,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4838,8 +4786,8 @@ "array_dims": 0 }, { - "name": "superuser", - "not_null": false, + "name": "attidentity", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -4849,13 +4797,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -4864,8 +4812,8 @@ "array_dims": 0 }, { - "name": "trusted", - "not_null": false, + "name": "attgenerated", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -4875,13 +4823,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -4890,8 +4838,8 @@ "array_dims": 0 }, { - "name": "relocatable", - "not_null": false, + "name": "attisdropped", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -4901,7 +4849,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { @@ -4916,24 +4864,24 @@ "array_dims": 0 }, { - "name": "schema", - "not_null": false, + "name": "attislocal", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -4942,24 +4890,24 @@ "array_dims": 0 }, { - "name": "requires", - "not_null": false, - "is_array": true, + "name": "attinhcount", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -4968,60 +4916,50 @@ "array_dims": 0 }, { - "name": "comment", - "not_null": false, + "name": "attcollation", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extension_versions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_available_extensions" - }, - "columns": [ + }, { - "name": "name", + "name": "attacl", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extensions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -5030,9 +4968,9 @@ "array_dims": 0 }, { - "name": "default_version", + "name": "attoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -5041,13 +4979,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extensions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -5056,9 +4994,9 @@ "array_dims": 0 }, { - "name": "installed_version", + "name": "attfdwoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -5067,13 +5005,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extensions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -5082,7 +5020,7 @@ "array_dims": 0 }, { - "name": "comment", + "name": "attmissingval", "not_null": false, "is_array": false, "comment": "", @@ -5093,13 +5031,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_available_extensions" + "name": "pg_attribute" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -5114,28 +5052,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "columns": [ { - "name": "name", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5144,24 +5082,24 @@ "array_dims": 0 }, { - "name": "ident", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5170,24 +5108,24 @@ "array_dims": 0 }, { - "name": "parent", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5196,8 +5134,8 @@ "array_dims": 0 }, { - "name": "level", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -5207,13 +5145,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5222,24 +5160,24 @@ "array_dims": 0 }, { - "name": "total_bytes", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5248,24 +5186,24 @@ "array_dims": 0 }, { - "name": "total_nblocks", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5274,24 +5212,24 @@ "array_dims": 0 }, { - "name": "free_bytes", - "not_null": false, + "name": "roleid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5300,24 +5238,24 @@ "array_dims": 0 }, { - "name": "free_chunks", - "not_null": false, + "name": "member", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -5326,24 +5264,50 @@ "array_dims": 0 }, { - "name": "used_bytes", - "not_null": false, + "name": "grantor", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_backend_memory_contexts" + "name": "pg_auth_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "admin_option", + "not_null": true, + "is_array": false, + "comment": "", + "length": 1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_auth_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5358,7 +5322,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "columns": [ { @@ -5373,7 +5337,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5399,7 +5363,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5425,7 +5389,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5451,7 +5415,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5477,7 +5441,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5503,7 +5467,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5529,7 +5493,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { @@ -5544,24 +5508,24 @@ "array_dims": 0 }, { - "name": "castsource", + "name": "rolname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -5570,24 +5534,24 @@ "array_dims": 0 }, { - "name": "casttarget", + "name": "rolsuper", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5596,24 +5560,24 @@ "array_dims": 0 }, { - "name": "castfunc", + "name": "rolinherit", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5622,7 +5586,7 @@ "array_dims": 0 }, { - "name": "castcontext", + "name": "rolcreaterole", "not_null": true, "is_array": false, "comment": "", @@ -5633,13 +5597,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5648,7 +5612,7 @@ "array_dims": 0 }, { - "name": "castmethod", + "name": "rolcreatedb", "not_null": true, "is_array": false, "comment": "", @@ -5659,49 +5623,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cast" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_class" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "rolcanlogin", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5710,24 +5664,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "rolreplication", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5736,24 +5690,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "rolbypassrls", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5762,7 +5716,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "rolconnlimit", "not_null": true, "is_array": false, "comment": "", @@ -5773,13 +5727,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -5788,24 +5742,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "rolpassword", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -5814,50 +5768,60 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "rolvaliduntil", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_authid" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_available_extension_versions" + }, + "columns": [ { - "name": "oid", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -5866,24 +5830,24 @@ "array_dims": 0 }, { - "name": "relname", - "not_null": true, + "name": "version", + "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -5892,24 +5856,24 @@ "array_dims": 0 }, { - "name": "relnamespace", - "not_null": true, + "name": "installed", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5918,24 +5882,24 @@ "array_dims": 0 }, { - "name": "reltype", - "not_null": true, + "name": "superuser", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5944,24 +5908,24 @@ "array_dims": 0 }, { - "name": "reloftype", - "not_null": true, + "name": "trusted", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5970,24 +5934,24 @@ "array_dims": 0 }, { - "name": "relowner", - "not_null": true, + "name": "relocatable", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -5996,24 +5960,24 @@ "array_dims": 0 }, { - "name": "relam", - "not_null": true, + "name": "schema", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -6022,24 +5986,24 @@ "array_dims": 0 }, { - "name": "relfilenode", - "not_null": true, - "is_array": false, + "name": "requires", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_name" }, "is_sqlc_slice": false, "embed_table": null, @@ -6048,50 +6012,60 @@ "array_dims": 0 }, { - "name": "reltablespace", - "not_null": true, + "name": "comment", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extension_versions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_available_extensions" + }, + "columns": [ { - "name": "relpages", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extensions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -6100,24 +6074,24 @@ "array_dims": 0 }, { - "name": "reltuples", - "not_null": true, + "name": "default_version", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extensions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -6126,24 +6100,24 @@ "array_dims": 0 }, { - "name": "relallvisible", - "not_null": true, + "name": "installed_version", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extensions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -6152,50 +6126,60 @@ "array_dims": 0 }, { - "name": "reltoastrelid", - "not_null": true, + "name": "comment", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_available_extensions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_backend_memory_contexts" + }, + "columns": [ { - "name": "relhasindex", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -6204,24 +6188,24 @@ "array_dims": 0 }, { - "name": "relisshared", - "not_null": true, + "name": "ident", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -6230,24 +6214,24 @@ "array_dims": 0 }, { - "name": "relpersistence", - "not_null": true, + "name": "parent", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -6256,24 +6240,24 @@ "array_dims": 0 }, { - "name": "relkind", - "not_null": true, + "name": "level", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -6282,24 +6266,24 @@ "array_dims": 0 }, { - "name": "relnatts", - "not_null": true, + "name": "total_bytes", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -6308,24 +6292,24 @@ "array_dims": 0 }, { - "name": "relchecks", - "not_null": true, + "name": "total_nblocks", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -6334,24 +6318,24 @@ "array_dims": 0 }, { - "name": "relhasrules", - "not_null": true, + "name": "free_bytes", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -6360,24 +6344,24 @@ "array_dims": 0 }, { - "name": "relhastriggers", - "not_null": true, + "name": "free_chunks", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_backend_memory_contexts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -6386,24 +6370,60 @@ "array_dims": 0 }, { - "name": "relhassubclass", + "name": "used_bytes", + "not_null": false, + "is_array": false, + "comment": "", + "length": 8, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_backend_memory_contexts" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "int8" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_cast" + }, + "columns": [ + { + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6412,24 +6432,24 @@ "array_dims": 0 }, { - "name": "relrowsecurity", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6438,24 +6458,24 @@ "array_dims": 0 }, { - "name": "relforcerowsecurity", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6464,24 +6484,24 @@ "array_dims": 0 }, { - "name": "relispopulated", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6490,24 +6510,24 @@ "array_dims": 0 }, { - "name": "relreplident", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6516,24 +6536,24 @@ "array_dims": 0 }, { - "name": "relispartition", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6542,7 +6562,7 @@ "array_dims": 0 }, { - "name": "relrewrite", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -6553,7 +6573,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { @@ -6568,7 +6588,7 @@ "array_dims": 0 }, { - "name": "relfrozenxid", + "name": "castsource", "not_null": true, "is_array": false, "comment": "", @@ -6579,13 +6599,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6594,7 +6614,7 @@ "array_dims": 0 }, { - "name": "relminmxid", + "name": "casttarget", "not_null": true, "is_array": false, "comment": "", @@ -6605,13 +6625,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6620,24 +6640,24 @@ "array_dims": 0 }, { - "name": "relacl", - "not_null": false, - "is_array": true, + "name": "castfunc", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6646,24 +6666,24 @@ "array_dims": 0 }, { - "name": "reloptions", - "not_null": false, - "is_array": true, + "name": "castcontext", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -6672,24 +6692,24 @@ "array_dims": 0 }, { - "name": "relpartbound", - "not_null": false, + "name": "castmethod", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_class" + "name": "pg_cast" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -6704,7 +6724,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "columns": [ { @@ -6719,7 +6739,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6745,7 +6765,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6771,7 +6791,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6797,7 +6817,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6823,7 +6843,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6849,7 +6869,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6875,7 +6895,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6890,7 +6910,7 @@ "array_dims": 0 }, { - "name": "collname", + "name": "relname", "not_null": true, "is_array": false, "comment": "", @@ -6901,7 +6921,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6916,7 +6936,7 @@ "array_dims": 0 }, { - "name": "collnamespace", + "name": "relnamespace", "not_null": true, "is_array": false, "comment": "", @@ -6927,7 +6947,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6942,7 +6962,7 @@ "array_dims": 0 }, { - "name": "collowner", + "name": "reltype", "not_null": true, "is_array": false, "comment": "", @@ -6953,7 +6973,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { @@ -6968,24 +6988,24 @@ "array_dims": 0 }, { - "name": "collprovider", + "name": "reloftype", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -6994,24 +7014,24 @@ "array_dims": 0 }, { - "name": "collisdeterministic", + "name": "relowner", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7020,7 +7040,7 @@ "array_dims": 0 }, { - "name": "collencoding", + "name": "relam", "not_null": true, "is_array": false, "comment": "", @@ -7031,13 +7051,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7046,24 +7066,24 @@ "array_dims": 0 }, { - "name": "collcollate", - "not_null": false, + "name": "relfilenode", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7072,24 +7092,24 @@ "array_dims": 0 }, { - "name": "collctype", - "not_null": false, + "name": "reltablespace", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7098,24 +7118,24 @@ "array_dims": 0 }, { - "name": "colliculocale", - "not_null": false, + "name": "relpages", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -7124,60 +7144,50 @@ "array_dims": 0 }, { - "name": "collversion", - "not_null": false, + "name": "reltuples", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_collation" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_config" - }, - "columns": [ + }, { - "name": "name", - "not_null": false, + "name": "relallvisible", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_config" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -7186,60 +7196,50 @@ "array_dims": 0 }, { - "name": "setting", - "not_null": false, + "name": "reltoastrelid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_config" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_constraint" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "relhasindex", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7248,24 +7248,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "relisshared", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7274,24 +7274,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "relpersistence", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -7300,24 +7300,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "relkind", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -7326,24 +7326,24 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "relnatts", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -7352,24 +7352,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "relchecks", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -7378,24 +7378,24 @@ "array_dims": 0 }, { - "name": "oid", + "name": "relhasrules", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7404,24 +7404,24 @@ "array_dims": 0 }, { - "name": "conname", + "name": "relhastriggers", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7430,24 +7430,24 @@ "array_dims": 0 }, { - "name": "connamespace", + "name": "relhassubclass", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7456,7 +7456,7 @@ "array_dims": 0 }, { - "name": "contype", + "name": "relrowsecurity", "not_null": true, "is_array": false, "comment": "", @@ -7467,13 +7467,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7482,7 +7482,7 @@ "array_dims": 0 }, { - "name": "condeferrable", + "name": "relforcerowsecurity", "not_null": true, "is_array": false, "comment": "", @@ -7493,7 +7493,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { @@ -7508,7 +7508,7 @@ "array_dims": 0 }, { - "name": "condeferred", + "name": "relispopulated", "not_null": true, "is_array": false, "comment": "", @@ -7519,7 +7519,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { @@ -7534,7 +7534,7 @@ "array_dims": 0 }, { - "name": "convalidated", + "name": "relreplident", "not_null": true, "is_array": false, "comment": "", @@ -7545,13 +7545,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -7560,24 +7560,24 @@ "array_dims": 0 }, { - "name": "conrelid", + "name": "relispartition", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -7586,7 +7586,7 @@ "array_dims": 0 }, { - "name": "contypid", + "name": "relrewrite", "not_null": true, "is_array": false, "comment": "", @@ -7597,7 +7597,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { @@ -7612,7 +7612,7 @@ "array_dims": 0 }, { - "name": "conindid", + "name": "relfrozenxid", "not_null": true, "is_array": false, "comment": "", @@ -7623,13 +7623,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7638,7 +7638,7 @@ "array_dims": 0 }, { - "name": "conparentid", + "name": "relminmxid", "not_null": true, "is_array": false, "comment": "", @@ -7649,13 +7649,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7664,24 +7664,24 @@ "array_dims": 0 }, { - "name": "confrelid", - "not_null": true, - "is_array": false, + "name": "relacl", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -7690,24 +7690,24 @@ "array_dims": 0 }, { - "name": "confupdtype", - "not_null": true, - "is_array": false, + "name": "reloptions", + "not_null": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -7716,50 +7716,60 @@ "array_dims": 0 }, { - "name": "confdeltype", - "not_null": true, + "name": "relpartbound", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_class" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_collation" + }, + "columns": [ { - "name": "confmatchtype", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7768,24 +7778,24 @@ "array_dims": 0 }, { - "name": "conislocal", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7794,7 +7804,7 @@ "array_dims": 0 }, { - "name": "coninhcount", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -7805,13 +7815,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7820,24 +7830,24 @@ "array_dims": 0 }, { - "name": "connoinherit", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7846,24 +7856,24 @@ "array_dims": 0 }, { - "name": "conkey", - "not_null": false, - "is_array": true, + "name": "xmin", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_int2" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7872,24 +7882,24 @@ "array_dims": 0 }, { - "name": "confkey", - "not_null": false, - "is_array": true, + "name": "ctid", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_int2" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7898,24 +7908,24 @@ "array_dims": 0 }, { - "name": "conpfeqop", - "not_null": false, - "is_array": true, + "name": "oid", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7924,24 +7934,24 @@ "array_dims": 0 }, { - "name": "conppeqop", - "not_null": false, - "is_array": true, + "name": "collname", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -7950,24 +7960,24 @@ "array_dims": 0 }, { - "name": "conffeqop", - "not_null": false, - "is_array": true, + "name": "collnamespace", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -7976,24 +7986,24 @@ "array_dims": 0 }, { - "name": "confdelsetcols", - "not_null": false, - "is_array": true, + "name": "collowner", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8002,24 +8012,24 @@ "array_dims": 0 }, { - "name": "conexclop", - "not_null": false, - "is_array": true, + "name": "collprovider", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -8028,43 +8038,33 @@ "array_dims": 0 }, { - "name": "conbin", - "not_null": false, + "name": "collisdeterministic", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_constraint" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_conversion" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "collencoding", "not_null": true, "is_array": false, "comment": "", @@ -8075,13 +8075,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -8090,24 +8090,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "collcollate", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -8116,24 +8116,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "collctype", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -8142,24 +8142,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "colliculocale", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -8168,50 +8168,60 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "collversion", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_collation" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_config" + }, + "columns": [ { - "name": "ctid", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -8220,59 +8230,43 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "setting", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, - { - "name": "conname", - "not_null": true, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_conversion" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_constraint" + }, + "columns": [ { - "name": "connamespace", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -8283,7 +8277,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { @@ -8298,7 +8292,7 @@ "array_dims": 0 }, { - "name": "conowner", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -8309,13 +8303,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8324,7 +8318,7 @@ "array_dims": 0 }, { - "name": "conforencoding", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -8335,13 +8329,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8350,7 +8344,7 @@ "array_dims": 0 }, { - "name": "contoencoding", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -8361,13 +8355,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8376,7 +8370,7 @@ "array_dims": 0 }, { - "name": "conproc", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -8387,13 +8381,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8402,60 +8396,50 @@ "array_dims": 0 }, { - "name": "condefault", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_conversion" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_cursors" - }, - "columns": [ + }, { - "name": "name", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cursors" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8464,24 +8448,24 @@ "array_dims": 0 }, { - "name": "statement", - "not_null": false, + "name": "conname", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cursors" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -8490,24 +8474,24 @@ "array_dims": 0 }, { - "name": "is_holdable", - "not_null": false, + "name": "connamespace", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cursors" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8516,8 +8500,8 @@ "array_dims": 0 }, { - "name": "is_binary", - "not_null": false, + "name": "contype", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -8527,13 +8511,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cursors" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -8542,8 +8526,8 @@ "array_dims": 0 }, { - "name": "is_scrollable", - "not_null": false, + "name": "condeferrable", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -8553,7 +8537,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_cursors" + "name": "pg_constraint" }, "table_alias": "", "type": { @@ -8568,60 +8552,24 @@ "array_dims": 0 }, { - "name": "creation_time", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_cursors" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "timestamptz" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_database" - }, - "columns": [ - { - "name": "tableoid", + "name": "condeferred", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -8630,24 +8578,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "convalidated", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -8656,7 +8604,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "conrelid", "not_null": true, "is_array": false, "comment": "", @@ -8667,13 +8615,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8682,7 +8630,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "contypid", "not_null": true, "is_array": false, "comment": "", @@ -8693,13 +8641,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8708,7 +8656,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "conindid", "not_null": true, "is_array": false, "comment": "", @@ -8719,39 +8667,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "xid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ctid", - "not_null": true, - "is_array": false, - "comment": "", - "length": 6, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8760,7 +8682,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "conparentid", "not_null": true, "is_array": false, "comment": "", @@ -8771,7 +8693,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { @@ -8786,24 +8708,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "confrelid", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -8812,24 +8734,24 @@ "array_dims": 0 }, { - "name": "datdba", + "name": "confupdtype", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -8838,24 +8760,24 @@ "array_dims": 0 }, { - "name": "encoding", + "name": "confdeltype", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -8864,7 +8786,7 @@ "array_dims": 0 }, { - "name": "datlocprovider", + "name": "confmatchtype", "not_null": true, "is_array": false, "comment": "", @@ -8875,7 +8797,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { @@ -8890,7 +8812,7 @@ "array_dims": 0 }, { - "name": "datistemplate", + "name": "conislocal", "not_null": true, "is_array": false, "comment": "", @@ -8901,7 +8823,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { @@ -8916,24 +8838,24 @@ "array_dims": 0 }, { - "name": "datallowconn", + "name": "coninhcount", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -8942,24 +8864,24 @@ "array_dims": 0 }, { - "name": "datconnlimit", + "name": "connoinherit", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -8968,24 +8890,24 @@ "array_dims": 0 }, { - "name": "datfrozenxid", - "not_null": true, - "is_array": false, + "name": "conkey", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -8994,24 +8916,24 @@ "array_dims": 0 }, { - "name": "datminmxid", - "not_null": true, - "is_array": false, + "name": "confkey", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -9020,24 +8942,24 @@ "array_dims": 0 }, { - "name": "dattablespace", - "not_null": true, - "is_array": false, + "name": "conpfeqop", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -9046,9 +8968,9 @@ "array_dims": 0 }, { - "name": "datcollate", - "not_null": true, - "is_array": false, + "name": "conppeqop", + "not_null": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -9057,13 +8979,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -9072,9 +8994,9 @@ "array_dims": 0 }, { - "name": "datctype", - "not_null": true, - "is_array": false, + "name": "conffeqop", + "not_null": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -9083,13 +9005,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -9098,9 +9020,9 @@ "array_dims": 0 }, { - "name": "daticulocale", + "name": "confdelsetcols", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -9109,13 +9031,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -9124,9 +9046,9 @@ "array_dims": 0 }, { - "name": "datcollversion", + "name": "conexclop", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -9135,13 +9057,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -9150,9 +9072,9 @@ "array_dims": 0 }, { - "name": "datacl", + "name": "conbin", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -9161,13 +9083,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_database" + "name": "pg_constraint" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -9182,7 +9104,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "columns": [ { @@ -9197,7 +9119,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9223,7 +9145,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9249,7 +9171,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9275,7 +9197,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9301,7 +9223,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9327,7 +9249,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9342,7 +9264,7 @@ "array_dims": 0 }, { - "name": "setdatabase", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -9353,7 +9275,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9368,24 +9290,24 @@ "array_dims": 0 }, { - "name": "setrole", + "name": "conname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -9394,43 +9316,33 @@ "array_dims": 0 }, { - "name": "setconfig", - "not_null": false, - "is_array": true, + "name": "connamespace", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_db_role_setting" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_default_acl" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "conowner", "not_null": true, "is_array": false, "comment": "", @@ -9441,7 +9353,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_conversion" }, "table_alias": "", "type": { @@ -9456,7 +9368,7 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "conforencoding", "not_null": true, "is_array": false, "comment": "", @@ -9467,13 +9379,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -9482,7 +9394,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "contoencoding", "not_null": true, "is_array": false, "comment": "", @@ -9493,13 +9405,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -9508,7 +9420,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "conproc", "not_null": true, "is_array": false, "comment": "", @@ -9519,13 +9431,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -9534,50 +9446,60 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "condefault", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_conversion" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_cursors" + }, + "columns": [ { - "name": "ctid", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -9586,24 +9508,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "statement", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -9612,24 +9534,24 @@ "array_dims": 0 }, { - "name": "defaclrole", - "not_null": true, + "name": "is_holdable", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -9638,24 +9560,24 @@ "array_dims": 0 }, { - "name": "defaclnamespace", - "not_null": true, + "name": "is_binary", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -9664,8 +9586,8 @@ "array_dims": 0 }, { - "name": "defaclobjtype", - "not_null": true, + "name": "is_scrollable", + "not_null": false, "is_array": false, "comment": "", "length": 1, @@ -9675,13 +9597,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -9690,24 +9612,24 @@ "array_dims": 0 }, { - "name": "defaclacl", - "not_null": true, - "is_array": true, + "name": "creation_time", + "not_null": false, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_default_acl" + "name": "pg_cursors" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -9722,7 +9644,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "columns": [ { @@ -9737,7 +9659,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9763,7 +9685,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9789,7 +9711,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9815,7 +9737,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9841,7 +9763,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9867,7 +9789,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9882,33 +9804,7 @@ "array_dims": 0 }, { - "name": "classid", - "not_null": true, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_depend" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "objid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -9919,7 +9815,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9934,24 +9830,24 @@ "array_dims": 0 }, { - "name": "objsubid", + "name": "datname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -9960,7 +9856,7 @@ "array_dims": 0 }, { - "name": "refclassid", + "name": "datdba", "not_null": true, "is_array": false, "comment": "", @@ -9971,7 +9867,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { @@ -9986,7 +9882,7 @@ "array_dims": 0 }, { - "name": "refobjid", + "name": "encoding", "not_null": true, "is_array": false, "comment": "", @@ -9997,13 +9893,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -10012,24 +9908,24 @@ "array_dims": 0 }, { - "name": "refobjsubid", + "name": "datlocprovider", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -10038,7 +9934,7 @@ "array_dims": 0 }, { - "name": "deptype", + "name": "datistemplate", "not_null": true, "is_array": false, "comment": "", @@ -10049,49 +9945,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_depend" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_description" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "datallowconn", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -10100,7 +9986,7 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "datconnlimit", "not_null": true, "is_array": false, "comment": "", @@ -10111,13 +9997,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -10126,7 +10012,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "datfrozenxid", "not_null": true, "is_array": false, "comment": "", @@ -10137,7 +10023,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { @@ -10152,7 +10038,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "datminmxid", "not_null": true, "is_array": false, "comment": "", @@ -10163,13 +10049,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10178,7 +10064,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "dattablespace", "not_null": true, "is_array": false, "comment": "", @@ -10189,13 +10075,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10204,24 +10090,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "datcollate", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -10230,24 +10116,24 @@ "array_dims": 0 }, { - "name": "objoid", + "name": "datctype", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -10256,24 +10142,24 @@ "array_dims": 0 }, { - "name": "classoid", - "not_null": true, + "name": "daticulocale", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -10282,24 +10168,24 @@ "array_dims": 0 }, { - "name": "objsubid", - "not_null": true, + "name": "datcollversion", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -10308,9 +10194,9 @@ "array_dims": 0 }, { - "name": "description", - "not_null": true, - "is_array": false, + "name": "datacl", + "not_null": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -10319,13 +10205,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_description" + "name": "pg_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -10340,7 +10226,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "columns": [ { @@ -10355,7 +10241,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10381,7 +10267,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10407,7 +10293,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10433,7 +10319,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10459,7 +10345,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10485,7 +10371,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10500,7 +10386,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "setdatabase", "not_null": true, "is_array": false, "comment": "", @@ -10511,7 +10397,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10526,7 +10412,7 @@ "array_dims": 0 }, { - "name": "enumtypid", + "name": "setrole", "not_null": true, "is_array": false, "comment": "", @@ -10537,7 +10423,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { @@ -10552,50 +10438,24 @@ "array_dims": 0 }, { - "name": "enumsortorder", - "not_null": true, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_enum" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "float4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "enumlabel", - "not_null": true, - "is_array": false, + "name": "setconfig", + "not_null": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_enum" + "name": "pg_db_role_setting" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -10610,7 +10470,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "columns": [ { @@ -10625,7 +10485,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10651,7 +10511,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10677,7 +10537,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10703,7 +10563,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10729,7 +10589,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10755,7 +10615,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10781,7 +10641,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { @@ -10796,24 +10656,24 @@ "array_dims": 0 }, { - "name": "evtname", + "name": "defaclrole", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10822,24 +10682,24 @@ "array_dims": 0 }, { - "name": "evtevent", + "name": "defaclnamespace", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10848,24 +10708,24 @@ "array_dims": 0 }, { - "name": "evtowner", + "name": "defaclobjtype", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -10874,50 +10734,60 @@ "array_dims": 0 }, { - "name": "evtfoid", + "name": "defaclacl", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_default_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_depend" + }, + "columns": [ { - "name": "evtenabled", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10926,43 +10796,33 @@ "array_dims": 0 }, { - "name": "evttags", - "not_null": false, - "is_array": true, + "name": "cmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_event_trigger" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_extension" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -10973,13 +10833,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -10988,7 +10848,7 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -10999,7 +10859,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { @@ -11014,7 +10874,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -11025,7 +10885,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { @@ -11040,24 +10900,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11066,7 +10926,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "classid", "not_null": true, "is_array": false, "comment": "", @@ -11077,13 +10937,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11092,24 +10952,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "objid", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11118,7 +10978,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "objsubid", "not_null": true, "is_array": false, "comment": "", @@ -11129,13 +10989,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -11144,24 +11004,24 @@ "array_dims": 0 }, { - "name": "extname", + "name": "refclassid", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11170,7 +11030,7 @@ "array_dims": 0 }, { - "name": "extowner", + "name": "refobjid", "not_null": true, "is_array": false, "comment": "", @@ -11181,7 +11041,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { @@ -11196,7 +11056,7 @@ "array_dims": 0 }, { - "name": "extnamespace", + "name": "refobjsubid", "not_null": true, "is_array": false, "comment": "", @@ -11207,13 +11067,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -11222,7 +11082,7 @@ "array_dims": 0 }, { - "name": "extrelocatable", + "name": "deptype", "not_null": true, "is_array": false, "comment": "", @@ -11233,39 +11093,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_depend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_description" + }, + "columns": [ { - "name": "extversion", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11274,24 +11144,24 @@ "array_dims": 0 }, { - "name": "extconfig", - "not_null": false, - "is_array": true, + "name": "cmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11300,60 +11170,50 @@ "array_dims": 0 }, { - "name": "extcondition", - "not_null": false, - "is_array": true, + "name": "xmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_extension" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_file_settings" - }, - "columns": [ + }, { - "name": "sourcefile", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11362,8 +11222,8 @@ "array_dims": 0 }, { - "name": "sourceline", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -11373,13 +11233,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11388,24 +11248,24 @@ "array_dims": 0 }, { - "name": "seqno", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11414,24 +11274,24 @@ "array_dims": 0 }, { - "name": "name", - "not_null": false, + "name": "objoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11440,24 +11300,24 @@ "array_dims": 0 }, { - "name": "setting", - "not_null": false, + "name": "classoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -11466,24 +11326,24 @@ "array_dims": 0 }, { - "name": "applied", - "not_null": false, + "name": "objsubid", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -11492,8 +11352,8 @@ "array_dims": 0 }, { - "name": "error", - "not_null": false, + "name": "description", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -11503,7 +11363,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_file_settings" + "name": "pg_description" }, "table_alias": "", "type": { @@ -11524,7 +11384,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "columns": [ { @@ -11539,7 +11399,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11565,7 +11425,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11591,7 +11451,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11617,7 +11477,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11643,7 +11503,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11669,7 +11529,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11695,7 +11555,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11710,33 +11570,7 @@ "array_dims": 0 }, { - "name": "fdwname", - "not_null": true, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "fdwowner", + "name": "enumtypid", "not_null": true, "is_array": false, "comment": "", @@ -11747,7 +11581,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { @@ -11762,7 +11596,7 @@ "array_dims": 0 }, { - "name": "fdwhandler", + "name": "enumsortorder", "not_null": true, "is_array": false, "comment": "", @@ -11773,13 +11607,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -11788,76 +11622,24 @@ "array_dims": 0 }, { - "name": "fdwvalidator", + "name": "enumlabel", "not_null": true, "is_array": false, "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "fdwacl", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_aclitem" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "fdwoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_data_wrapper" + "name": "pg_enum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -11872,7 +11654,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "columns": [ { @@ -11887,7 +11669,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -11913,7 +11695,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -11939,7 +11721,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -11965,7 +11747,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -11991,7 +11773,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12017,7 +11799,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12043,7 +11825,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12058,7 +11840,7 @@ "array_dims": 0 }, { - "name": "srvname", + "name": "evtname", "not_null": true, "is_array": false, "comment": "", @@ -12069,7 +11851,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12084,24 +11866,24 @@ "array_dims": 0 }, { - "name": "srvowner", + "name": "evtevent", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -12110,7 +11892,7 @@ "array_dims": 0 }, { - "name": "srvfdw", + "name": "evtowner", "not_null": true, "is_array": false, "comment": "", @@ -12121,7 +11903,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12136,24 +11918,24 @@ "array_dims": 0 }, { - "name": "srvtype", - "not_null": false, + "name": "evtfoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -12162,50 +11944,24 @@ "array_dims": 0 }, { - "name": "srvversion", - "not_null": false, + "name": "evtenabled", + "not_null": true, "is_array": false, "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_server" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "srvacl", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -12214,7 +11970,7 @@ "array_dims": 0 }, { - "name": "srvoptions", + "name": "evttags", "not_null": false, "is_array": true, "comment": "", @@ -12225,7 +11981,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_server" + "name": "pg_event_trigger" }, "table_alias": "", "type": { @@ -12246,7 +12002,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "columns": [ { @@ -12261,7 +12017,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12287,7 +12043,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12313,7 +12069,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12339,7 +12095,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12365,7 +12121,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12391,7 +12147,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12406,7 +12162,7 @@ "array_dims": 0 }, { - "name": "ftrelid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -12417,7 +12173,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_foreign_table" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12432,72 +12188,10 @@ "array_dims": 0 }, { - "name": "ftserver", + "name": "extname", "not_null": true, "is_array": false, "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ftoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_foreign_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_group" - }, - "columns": [ - { - "name": "groname", - "not_null": false, - "is_array": false, - "comment": "", "length": 64, "is_named_param": false, "is_func_call": false, @@ -12505,7 +12199,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_group" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12520,8 +12214,8 @@ "array_dims": 0 }, { - "name": "grosysid", - "not_null": false, + "name": "extowner", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -12531,7 +12225,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_group" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12546,60 +12240,50 @@ "array_dims": 0 }, { - "name": "grolist", - "not_null": false, - "is_array": true, + "name": "extnamespace", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_group" + "name": "pg_extension" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_hba_file_rules" - }, - "columns": [ + }, { - "name": "line_number", - "not_null": false, + "name": "extrelocatable", + "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_extension" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -12608,8 +12292,8 @@ "array_dims": 0 }, { - "name": "type", - "not_null": false, + "name": "extversion", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -12619,7 +12303,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12634,7 +12318,7 @@ "array_dims": 0 }, { - "name": "database", + "name": "extconfig", "not_null": false, "is_array": true, "comment": "", @@ -12645,13 +12329,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_extension" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -12660,7 +12344,7 @@ "array_dims": 0 }, { - "name": "user_name", + "name": "extcondition", "not_null": false, "is_array": true, "comment": "", @@ -12671,7 +12355,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_extension" }, "table_alias": "", "type": { @@ -12684,35 +12368,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, - { - "name": "address", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_hba_file_rules" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_file_settings" + }, + "columns": [ { - "name": "netmask", + "name": "sourcefile", "not_null": false, "is_array": false, "comment": "", @@ -12723,7 +12391,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_file_settings" }, "table_alias": "", "type": { @@ -12738,50 +12406,24 @@ "array_dims": 0 }, { - "name": "auth_method", + "name": "sourceline", "not_null": false, "is_array": false, "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_hba_file_rules" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "options", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_hba_file_rules" + "name": "pg_file_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -12790,43 +12432,7 @@ "array_dims": 0 }, { - "name": "error", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_hba_file_rules" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_ident_file_mappings" - }, - "columns": [ - { - "name": "line_number", + "name": "seqno", "not_null": false, "is_array": false, "comment": "", @@ -12837,7 +12443,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ident_file_mappings" + "name": "pg_file_settings" }, "table_alias": "", "type": { @@ -12852,7 +12458,7 @@ "array_dims": 0 }, { - "name": "map_name", + "name": "name", "not_null": false, "is_array": false, "comment": "", @@ -12863,7 +12469,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ident_file_mappings" + "name": "pg_file_settings" }, "table_alias": "", "type": { @@ -12878,7 +12484,7 @@ "array_dims": 0 }, { - "name": "sys_name", + "name": "setting", "not_null": false, "is_array": false, "comment": "", @@ -12889,7 +12495,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ident_file_mappings" + "name": "pg_file_settings" }, "table_alias": "", "type": { @@ -12904,24 +12510,24 @@ "array_dims": 0 }, { - "name": "pg_username", + "name": "applied", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ident_file_mappings" + "name": "pg_file_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -12941,7 +12547,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ident_file_mappings" + "name": "pg_file_settings" }, "table_alias": "", "type": { @@ -12962,7 +12568,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "columns": [ { @@ -12977,7 +12583,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13003,7 +12609,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13029,7 +12635,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13055,7 +12661,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13081,7 +12687,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13107,7 +12713,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13122,7 +12728,7 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -13133,7 +12739,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { @@ -13148,24 +12754,24 @@ "array_dims": 0 }, { - "name": "indrelid", + "name": "fdwname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -13174,24 +12780,24 @@ "array_dims": 0 }, { - "name": "indnatts", + "name": "fdwowner", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13200,24 +12806,24 @@ "array_dims": 0 }, { - "name": "indnkeyatts", + "name": "fdwhandler", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13226,24 +12832,24 @@ "array_dims": 0 }, { - "name": "indisunique", + "name": "fdwvalidator", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13252,24 +12858,24 @@ "array_dims": 0 }, { - "name": "indnullsnotdistinct", - "not_null": true, - "is_array": false, + "name": "fdwacl", + "not_null": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -13278,50 +12884,60 @@ "array_dims": 0 }, { - "name": "indisprimary", - "not_null": true, - "is_array": false, + "name": "fdwoptions", + "not_null": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_data_wrapper" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_foreign_server" + }, + "columns": [ { - "name": "indisexclusion", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13330,24 +12946,24 @@ "array_dims": 0 }, { - "name": "indimmediate", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13356,24 +12972,24 @@ "array_dims": 0 }, { - "name": "indisclustered", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13382,24 +12998,24 @@ "array_dims": 0 }, { - "name": "indisvalid", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13408,24 +13024,24 @@ "array_dims": 0 }, { - "name": "indcheckxmin", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13434,24 +13050,24 @@ "array_dims": 0 }, { - "name": "indisready", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13460,24 +13076,24 @@ "array_dims": 0 }, { - "name": "indislive", + "name": "oid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13486,76 +13102,24 @@ "array_dims": 0 }, { - "name": "indisreplident", + "name": "srvname", "not_null": true, "is_array": false, "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_index" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "indkey", - "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_index" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int2vector" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "indcollation", - "not_null": true, - "is_array": true, - "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oidvector" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -13564,24 +13128,24 @@ "array_dims": 0 }, { - "name": "indclass", + "name": "srvowner", "not_null": true, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oidvector" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13590,50 +13154,24 @@ "array_dims": 0 }, { - "name": "indoption", + "name": "srvfdw", "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_index" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int2vector" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "indexprs", - "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -13642,7 +13180,7 @@ "array_dims": 0 }, { - "name": "indpred", + "name": "srvtype", "not_null": false, "is_array": false, "comment": "", @@ -13653,75 +13191,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_index" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_node_tree" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_indexes" - }, - "columns": [ - { - "name": "schemaname", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_indexes" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "tablename", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_indexes" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -13730,24 +13206,24 @@ "array_dims": 0 }, { - "name": "indexname", + "name": "srvversion", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_indexes" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -13756,24 +13232,24 @@ "array_dims": 0 }, { - "name": "tablespace", + "name": "srvacl", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_indexes" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -13782,9 +13258,9 @@ "array_dims": 0 }, { - "name": "indexdef", + "name": "srvoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -13793,13 +13269,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_indexes" + "name": "pg_foreign_server" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -13814,7 +13290,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "columns": [ { @@ -13829,7 +13305,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13855,7 +13331,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13881,7 +13357,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13907,7 +13383,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13933,7 +13409,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13959,7 +13435,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -13974,7 +13450,7 @@ "array_dims": 0 }, { - "name": "inhrelid", + "name": "ftrelid", "not_null": true, "is_array": false, "comment": "", @@ -13985,7 +13461,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -14000,7 +13476,7 @@ "array_dims": 0 }, { - "name": "inhparent", + "name": "ftserver", "not_null": true, "is_array": false, "comment": "", @@ -14011,7 +13487,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_foreign_table" }, "table_alias": "", "type": { @@ -14026,24 +13502,60 @@ "array_dims": 0 }, { - "name": "inhseqno", - "not_null": true, + "name": "ftoptions", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_foreign_table" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_group" + }, + "columns": [ + { + "name": "groname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_group" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -14052,24 +13564,50 @@ "array_dims": 0 }, { - "name": "inhdetachpending", - "not_null": true, + "name": "grosysid", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_inherits" + "name": "pg_group" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grolist", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_group" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -14084,12 +13622,12 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "columns": [ { - "name": "tableoid", - "not_null": true, + "name": "line_number", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -14099,13 +13637,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -14114,24 +13652,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "type", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14140,24 +13678,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, - "is_array": false, + "name": "database", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14166,24 +13704,50 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "user_name", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_hba_file_rules" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "address", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14192,24 +13756,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "netmask", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14218,24 +13782,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "auth_method", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_hba_file_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14244,8 +13808,70 @@ "array_dims": 0 }, { - "name": "objoid", - "not_null": true, + "name": "options", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_hba_file_rules" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "error", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_hba_file_rules" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_ident_file_mappings" + }, + "columns": [ + { + "name": "line_number", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -14255,13 +13881,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_ident_file_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -14270,24 +13896,24 @@ "array_dims": 0 }, { - "name": "classoid", - "not_null": true, + "name": "map_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_ident_file_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14296,24 +13922,24 @@ "array_dims": 0 }, { - "name": "objsubid", - "not_null": true, + "name": "sys_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_ident_file_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14322,24 +13948,24 @@ "array_dims": 0 }, { - "name": "privtype", - "not_null": true, + "name": "pg_username", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_ident_file_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14348,9 +13974,9 @@ "array_dims": 0 }, { - "name": "initprivs", - "not_null": true, - "is_array": true, + "name": "error", + "not_null": false, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -14359,13 +13985,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_init_privs" + "name": "pg_ident_file_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -14380,7 +14006,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "columns": [ { @@ -14395,7 +14021,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14421,7 +14047,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14447,7 +14073,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14473,7 +14099,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14499,7 +14125,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14525,7 +14151,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14540,7 +14166,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "indexrelid", "not_null": true, "is_array": false, "comment": "", @@ -14551,7 +14177,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14566,24 +14192,24 @@ "array_dims": 0 }, { - "name": "lanname", + "name": "indrelid", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -14592,24 +14218,24 @@ "array_dims": 0 }, { - "name": "lanowner", + "name": "indnatts", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -14618,24 +14244,24 @@ "array_dims": 0 }, { - "name": "lanispl", + "name": "indnkeyatts", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -14644,7 +14270,7 @@ "array_dims": 0 }, { - "name": "lanpltrusted", + "name": "indisunique", "not_null": true, "is_array": false, "comment": "", @@ -14655,7 +14281,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { @@ -14670,24 +14296,24 @@ "array_dims": 0 }, { - "name": "lanplcallfoid", + "name": "indnullsnotdistinct", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14696,24 +14322,24 @@ "array_dims": 0 }, { - "name": "laninline", + "name": "indisprimary", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14722,24 +14348,24 @@ "array_dims": 0 }, { - "name": "lanvalidator", + "name": "indisexclusion", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_language" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14748,60 +14374,24 @@ "array_dims": 0 }, { - "name": "lanacl", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_language" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_aclitem" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_largeobject" - }, - "columns": [ - { - "name": "tableoid", + "name": "indimmediate", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14810,24 +14400,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "indisclustered", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14836,24 +14426,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "indisvalid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14862,24 +14452,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "indcheckxmin", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14888,24 +14478,24 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "indisready", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14914,24 +14504,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "indislive", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14940,24 +14530,24 @@ "array_dims": 0 }, { - "name": "loid", + "name": "indisreplident", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -14966,24 +14556,24 @@ "array_dims": 0 }, { - "name": "pageno", + "name": "indkey", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, @@ -14992,9 +14582,9 @@ "array_dims": 0 }, { - "name": "data", + "name": "indcollation", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -15003,49 +14593,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bytea" + "name": "oidvector" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_largeobject_metadata" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "indclass", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "oidvector" }, "is_sqlc_slice": false, "embed_table": null, @@ -15054,24 +14634,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "indoption", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, @@ -15080,24 +14660,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "indexprs", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -15106,50 +14686,60 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "indpred", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_indexes" + }, + "columns": [ { - "name": "xmin", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -15158,24 +14748,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "tablename", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -15184,24 +14774,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "indexname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -15210,24 +14800,24 @@ "array_dims": 0 }, { - "name": "lomowner", - "not_null": true, + "name": "tablespace", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -15236,9 +14826,9 @@ "array_dims": 0 }, { - "name": "lomacl", + "name": "indexdef", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -15247,13 +14837,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_largeobject_metadata" + "name": "pg_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -15268,28 +14858,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "columns": [ { - "name": "locktype", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15298,8 +14888,8 @@ "array_dims": 0 }, { - "name": "database", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15309,13 +14899,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15324,8 +14914,8 @@ "array_dims": 0 }, { - "name": "relation", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15335,13 +14925,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15350,8 +14940,8 @@ "array_dims": 0 }, { - "name": "page", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15361,13 +14951,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15376,24 +14966,24 @@ "array_dims": 0 }, { - "name": "tuple", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15402,24 +14992,24 @@ "array_dims": 0 }, { - "name": "virtualxid", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15428,8 +15018,8 @@ "array_dims": 0 }, { - "name": "transactionid", - "not_null": false, + "name": "inhrelid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15439,13 +15029,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15454,8 +15044,8 @@ "array_dims": 0 }, { - "name": "classid", - "not_null": false, + "name": "inhparent", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15465,7 +15055,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { @@ -15480,8 +15070,8 @@ "array_dims": 0 }, { - "name": "objid", - "not_null": false, + "name": "inhseqno", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15491,13 +15081,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -15506,50 +15096,60 @@ "array_dims": 0 }, { - "name": "objsubid", - "not_null": false, + "name": "inhdetachpending", + "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_inherits" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_init_privs" + }, + "columns": [ { - "name": "virtualtransaction", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15558,8 +15158,8 @@ "array_dims": 0 }, { - "name": "pid", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -15569,13 +15169,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15584,24 +15184,24 @@ "array_dims": 0 }, { - "name": "mode", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15610,24 +15210,24 @@ "array_dims": 0 }, { - "name": "granted", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15636,24 +15236,24 @@ "array_dims": 0 }, { - "name": "fastpath", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15662,60 +15262,50 @@ "array_dims": 0 }, { - "name": "waitstart", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_locks" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_matviews" - }, - "columns": [ + }, { - "name": "schemaname", - "not_null": false, + "name": "objoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_matviews" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15724,24 +15314,24 @@ "array_dims": 0 }, { - "name": "matviewname", - "not_null": false, + "name": "classoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_matviews" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -15750,24 +15340,24 @@ "array_dims": 0 }, { - "name": "matviewowner", - "not_null": false, + "name": "objsubid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_matviews" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -15776,24 +15366,24 @@ "array_dims": 0 }, { - "name": "tablespace", - "not_null": false, + "name": "privtype", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_matviews" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -15802,76 +15392,24 @@ "array_dims": 0 }, { - "name": "hasindexes", - "not_null": false, - "is_array": false, + "name": "initprivs", + "not_null": true, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_matviews" + "name": "pg_init_privs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ispopulated", - "not_null": false, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_matviews" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "definition", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_matviews" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -15886,7 +15424,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "columns": [ { @@ -15901,7 +15439,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -15927,7 +15465,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -15953,7 +15491,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -15979,7 +15517,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16005,7 +15543,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16031,7 +15569,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16057,7 +15595,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16072,7 +15610,7 @@ "array_dims": 0 }, { - "name": "nspname", + "name": "lanname", "not_null": true, "is_array": false, "comment": "", @@ -16083,7 +15621,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16098,7 +15636,7 @@ "array_dims": 0 }, { - "name": "nspowner", + "name": "lanowner", "not_null": true, "is_array": false, "comment": "", @@ -16109,7 +15647,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_namespace" + "name": "pg_language" }, "table_alias": "", "type": { @@ -16124,60 +15662,24 @@ "array_dims": 0 }, { - "name": "nspacl", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_namespace" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_aclitem" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_opclass" - }, - "columns": [ - { - "name": "tableoid", + "name": "lanispl", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -16186,24 +15688,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "lanpltrusted", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -16212,7 +15714,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "lanplcallfoid", "not_null": true, "is_array": false, "comment": "", @@ -16223,13 +15725,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16238,7 +15740,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "laninline", "not_null": true, "is_array": false, "comment": "", @@ -16249,13 +15751,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16264,7 +15766,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "lanvalidator", "not_null": true, "is_array": false, "comment": "", @@ -16275,13 +15777,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16290,33 +15792,43 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, - "is_array": false, + "name": "lanacl", + "not_null": false, + "is_array": true, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_language" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_largeobject" + }, + "columns": [ { - "name": "oid", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -16327,7 +15839,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { @@ -16342,7 +15854,7 @@ "array_dims": 0 }, { - "name": "opcmethod", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -16353,13 +15865,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16368,24 +15880,24 @@ "array_dims": 0 }, { - "name": "opcname", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16394,7 +15906,7 @@ "array_dims": 0 }, { - "name": "opcnamespace", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -16405,13 +15917,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16420,7 +15932,7 @@ "array_dims": 0 }, { - "name": "opcowner", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -16431,13 +15943,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16446,24 +15958,24 @@ "array_dims": 0 }, { - "name": "opcfamily", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16472,7 +15984,7 @@ "array_dims": 0 }, { - "name": "opcintype", + "name": "loid", "not_null": true, "is_array": false, "comment": "", @@ -16483,7 +15995,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { @@ -16498,24 +16010,24 @@ "array_dims": 0 }, { - "name": "opcdefault", + "name": "pageno", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -16524,24 +16036,24 @@ "array_dims": 0 }, { - "name": "opckeytype", + "name": "data", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opclass" + "name": "pg_largeobject" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bytea" }, "is_sqlc_slice": false, "embed_table": null, @@ -16556,7 +16068,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "columns": [ { @@ -16571,7 +16083,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16597,7 +16109,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16623,7 +16135,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16649,7 +16161,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16675,7 +16187,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16701,7 +16213,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16727,7 +16239,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { @@ -16742,24 +16254,24 @@ "array_dims": 0 }, { - "name": "oprname", + "name": "lomowner", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16768,50 +16280,60 @@ "array_dims": 0 }, { - "name": "oprnamespace", - "not_null": true, - "is_array": false, + "name": "lomacl", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_largeobject_metadata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_locks" + }, + "columns": [ { - "name": "oprowner", - "not_null": true, + "name": "locktype", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -16820,24 +16342,24 @@ "array_dims": 0 }, { - "name": "oprkind", - "not_null": true, + "name": "database", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16846,24 +16368,24 @@ "array_dims": 0 }, { - "name": "oprcanmerge", - "not_null": true, + "name": "relation", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16872,24 +16394,24 @@ "array_dims": 0 }, { - "name": "oprcanhash", - "not_null": true, + "name": "page", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -16898,24 +16420,24 @@ "array_dims": 0 }, { - "name": "oprleft", - "not_null": true, + "name": "tuple", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -16924,24 +16446,24 @@ "array_dims": 0 }, { - "name": "oprright", - "not_null": true, + "name": "virtualxid", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -16950,8 +16472,8 @@ "array_dims": 0 }, { - "name": "oprresult", - "not_null": true, + "name": "transactionid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -16961,13 +16483,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -16976,8 +16498,8 @@ "array_dims": 0 }, { - "name": "oprcom", - "not_null": true, + "name": "classid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -16987,7 +16509,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { @@ -17002,8 +16524,8 @@ "array_dims": 0 }, { - "name": "oprnegate", - "not_null": true, + "name": "objid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -17013,7 +16535,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { @@ -17028,24 +16550,24 @@ "array_dims": 0 }, { - "name": "oprcode", - "not_null": true, + "name": "objsubid", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -17054,24 +16576,24 @@ "array_dims": 0 }, { - "name": "oprrest", - "not_null": true, + "name": "virtualtransaction", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -17080,8 +16602,8 @@ "array_dims": 0 }, { - "name": "oprjoin", - "not_null": true, + "name": "pid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -17091,49 +16613,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_operator" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_opfamily" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "mode", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -17142,24 +16654,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "granted", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -17168,24 +16680,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "fastpath", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -17194,50 +16706,60 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "waitstart", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_locks" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_matviews" + }, + "columns": [ { - "name": "xmin", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -17246,24 +16768,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "matviewname", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -17272,24 +16794,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "matviewowner", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -17298,24 +16820,24 @@ "array_dims": 0 }, { - "name": "opfmethod", - "not_null": true, + "name": "tablespace", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -17324,24 +16846,24 @@ "array_dims": 0 }, { - "name": "opfname", - "not_null": true, + "name": "hasindexes", + "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -17350,24 +16872,24 @@ "array_dims": 0 }, { - "name": "opfnamespace", - "not_null": true, + "name": "ispopulated", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -17376,24 +16898,24 @@ "array_dims": 0 }, { - "name": "opfowner", - "not_null": true, + "name": "definition", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_opfamily" + "name": "pg_matviews" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -17408,7 +16930,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "columns": [ { @@ -17423,7 +16945,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17449,7 +16971,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17475,7 +16997,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17501,7 +17023,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17527,7 +17049,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17553,7 +17075,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17579,7 +17101,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17594,24 +17116,24 @@ "array_dims": 0 }, { - "name": "parname", + "name": "nspname", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -17620,7 +17142,33 @@ "array_dims": 0 }, { - "name": "paracl", + "name": "nspowner", + "not_null": true, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_namespace" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "nspacl", "not_null": false, "is_array": true, "comment": "", @@ -17631,7 +17179,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_parameter_acl" + "name": "pg_namespace" }, "table_alias": "", "type": { @@ -17652,7 +17200,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "columns": [ { @@ -17667,7 +17215,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17693,7 +17241,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17719,7 +17267,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17745,7 +17293,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17771,7 +17319,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17797,7 +17345,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17812,7 +17360,7 @@ "array_dims": 0 }, { - "name": "partrelid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -17823,7 +17371,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17838,59 +17386,7 @@ "array_dims": 0 }, { - "name": "partstrat", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "char" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "partnatts", - "not_null": true, - "is_array": false, - "comment": "", - "length": 2, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int2" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "partdefid", + "name": "opcmethod", "not_null": true, "is_array": false, "comment": "", @@ -17901,7 +17397,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_partitioned_table" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -17916,122 +17412,8 @@ "array_dims": 0 }, { - "name": "partattrs", - "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int2vector" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "partclass", - "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oidvector" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "partcollation", + "name": "opcname", "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oidvector" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "partexprs", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_partitioned_table" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_node_tree" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_policies" - }, - "columns": [ - { - "name": "schemaname", - "not_null": false, "is_array": false, "comment": "", "length": 64, @@ -18041,7 +17423,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { @@ -18056,24 +17438,24 @@ "array_dims": 0 }, { - "name": "tablename", - "not_null": false, + "name": "opcnamespace", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18082,24 +17464,24 @@ "array_dims": 0 }, { - "name": "policyname", - "not_null": false, + "name": "opcowner", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18108,50 +17490,24 @@ "array_dims": 0 }, { - "name": "permissive", - "not_null": false, + "name": "opcfamily", + "not_null": true, "is_array": false, "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_policies" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "roles", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18160,24 +17516,24 @@ "array_dims": 0 }, { - "name": "cmd", - "not_null": false, + "name": "opcintype", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18186,24 +17542,24 @@ "array_dims": 0 }, { - "name": "qual", - "not_null": false, + "name": "opcdefault", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -18212,24 +17568,24 @@ "array_dims": 0 }, { - "name": "with_check", - "not_null": false, + "name": "opckeytype", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policies" + "name": "pg_opclass" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18244,7 +17600,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "columns": [ { @@ -18259,7 +17615,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18285,7 +17641,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18311,7 +17667,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18337,7 +17693,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18363,7 +17719,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18389,7 +17745,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18415,7 +17771,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18430,7 +17786,7 @@ "array_dims": 0 }, { - "name": "polname", + "name": "oprname", "not_null": true, "is_array": false, "comment": "", @@ -18441,7 +17797,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18456,7 +17812,7 @@ "array_dims": 0 }, { - "name": "polrelid", + "name": "oprnamespace", "not_null": true, "is_array": false, "comment": "", @@ -18467,7 +17823,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { @@ -18482,24 +17838,24 @@ "array_dims": 0 }, { - "name": "polcmd", + "name": "oprowner", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18508,7 +17864,7 @@ "array_dims": 0 }, { - "name": "polpermissive", + "name": "oprkind", "not_null": true, "is_array": false, "comment": "", @@ -18519,13 +17875,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_policy" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -18534,112 +17890,24 @@ "array_dims": 0 }, { - "name": "polroles", + "name": "oprcanmerge", "not_null": true, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_policy" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "polqual", - "not_null": false, "is_array": false, "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_policy" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_node_tree" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "polwithcheck", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_policy" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_node_tree" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_prepared_statements" - }, - "columns": [ - { - "name": "name", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_statements" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -18648,24 +17916,24 @@ "array_dims": 0 }, { - "name": "statement", - "not_null": false, + "name": "oprcanhash", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_statements" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -18674,50 +17942,24 @@ "array_dims": 0 }, { - "name": "prepare_time", - "not_null": false, + "name": "oprleft", + "not_null": true, "is_array": false, "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_prepared_statements" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "timestamptz" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "parameter_types", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_statements" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_regtype" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18726,24 +17968,24 @@ "array_dims": 0 }, { - "name": "from_sql", - "not_null": false, + "name": "oprright", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_statements" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18752,24 +17994,24 @@ "array_dims": 0 }, { - "name": "generic_plans", - "not_null": false, + "name": "oprresult", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_statements" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18778,44 +18020,8 @@ "array_dims": 0 }, { - "name": "custom_plans", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_prepared_statements" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_prepared_xacts" - }, - "columns": [ - { - "name": "transaction", - "not_null": false, + "name": "oprcom", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -18825,13 +18031,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_xacts" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18840,24 +18046,24 @@ "array_dims": 0 }, { - "name": "gid", - "not_null": false, + "name": "oprnegate", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_xacts" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -18866,24 +18072,24 @@ "array_dims": 0 }, { - "name": "prepared", - "not_null": false, + "name": "oprcode", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_xacts" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -18892,24 +18098,24 @@ "array_dims": 0 }, { - "name": "owner", - "not_null": false, + "name": "oprrest", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_xacts" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -18918,24 +18124,24 @@ "array_dims": 0 }, { - "name": "database", - "not_null": false, + "name": "oprjoin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_prepared_xacts" + "name": "pg_operator" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -18950,7 +18156,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "columns": [ { @@ -18965,7 +18171,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -18991,7 +18197,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19017,7 +18223,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19043,7 +18249,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19069,7 +18275,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19095,7 +18301,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19121,7 +18327,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19136,7 +18342,33 @@ "array_dims": 0 }, { - "name": "proname", + "name": "opfmethod", + "not_null": true, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_opfamily" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "opfname", "not_null": true, "is_array": false, "comment": "", @@ -19147,7 +18379,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19162,7 +18394,7 @@ "array_dims": 0 }, { - "name": "pronamespace", + "name": "opfnamespace", "not_null": true, "is_array": false, "comment": "", @@ -19173,7 +18405,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19188,7 +18420,7 @@ "array_dims": 0 }, { - "name": "proowner", + "name": "opfowner", "not_null": true, "is_array": false, "comment": "", @@ -19199,7 +18431,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_opfamily" }, "table_alias": "", "type": { @@ -19212,9 +18444,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_parameter_acl" + }, + "columns": [ { - "name": "prolang", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -19225,7 +18467,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { @@ -19240,7 +18482,7 @@ "array_dims": 0 }, { - "name": "procost", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -19251,13 +18493,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19266,7 +18508,7 @@ "array_dims": 0 }, { - "name": "prorows", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -19277,13 +18519,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19292,7 +18534,7 @@ "array_dims": 0 }, { - "name": "provariadic", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -19303,13 +18545,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19318,7 +18560,7 @@ "array_dims": 0 }, { - "name": "prosupport", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -19329,13 +18571,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19344,24 +18586,24 @@ "array_dims": 0 }, { - "name": "prokind", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19370,24 +18612,24 @@ "array_dims": 0 }, { - "name": "prosecdef", + "name": "oid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19396,24 +18638,24 @@ "array_dims": 0 }, { - "name": "proleakproof", + "name": "parname", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_parameter_acl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -19422,24 +18664,60 @@ "array_dims": 0 }, { - "name": "proisstrict", + "name": "paracl", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_parameter_acl" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_aclitem" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_partitioned_table" + }, + "columns": [ + { + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19448,24 +18726,24 @@ "array_dims": 0 }, { - "name": "proretset", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19474,24 +18752,24 @@ "array_dims": 0 }, { - "name": "provolatile", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19500,24 +18778,24 @@ "array_dims": 0 }, { - "name": "proparallel", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19526,24 +18804,24 @@ "array_dims": 0 }, { - "name": "pronargs", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -19552,7 +18830,85 @@ "array_dims": 0 }, { - "name": "pronargdefaults", + "name": "ctid", + "not_null": true, + "is_array": false, + "comment": "", + "length": 6, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_partitioned_table" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "tid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "partrelid", + "not_null": true, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_partitioned_table" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "partstrat", + "not_null": true, + "is_array": false, + "comment": "", + "length": 1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_partitioned_table" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "char" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "partnatts", "not_null": true, "is_array": false, "comment": "", @@ -19563,7 +18919,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { @@ -19578,7 +18934,7 @@ "array_dims": 0 }, { - "name": "prorettype", + "name": "partdefid", "not_null": true, "is_array": false, "comment": "", @@ -19589,7 +18945,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { @@ -19604,7 +18960,7 @@ "array_dims": 0 }, { - "name": "proargtypes", + "name": "partattrs", "not_null": true, "is_array": true, "comment": "", @@ -19615,13 +18971,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oidvector" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, @@ -19630,8 +18986,8 @@ "array_dims": 0 }, { - "name": "proallargtypes", - "not_null": false, + "name": "partclass", + "not_null": true, "is_array": true, "comment": "", "length": -1, @@ -19641,13 +18997,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "oidvector" }, "is_sqlc_slice": false, "embed_table": null, @@ -19656,8 +19012,8 @@ "array_dims": 0 }, { - "name": "proargmodes", - "not_null": false, + "name": "partcollation", + "not_null": true, "is_array": true, "comment": "", "length": -1, @@ -19667,13 +19023,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_char" + "name": "oidvector" }, "is_sqlc_slice": false, "embed_table": null, @@ -19682,9 +19038,9 @@ "array_dims": 0 }, { - "name": "proargnames", + "name": "partexprs", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -19693,13 +19049,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_partitioned_table" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "pg_node_tree" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_policies" + }, + "columns": [ + { + "name": "schemaname", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_policies" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -19708,24 +19100,24 @@ "array_dims": 0 }, { - "name": "proargdefaults", + "name": "tablename", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -19734,24 +19126,24 @@ "array_dims": 0 }, { - "name": "protrftypes", + "name": "policyname", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -19760,8 +19152,8 @@ "array_dims": 0 }, { - "name": "prosrc", - "not_null": true, + "name": "permissive", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -19771,7 +19163,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { @@ -19786,9 +19178,9 @@ "array_dims": 0 }, { - "name": "probin", + "name": "roles", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -19797,13 +19189,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_name" }, "is_sqlc_slice": false, "embed_table": null, @@ -19812,7 +19204,7 @@ "array_dims": 0 }, { - "name": "prosqlbody", + "name": "cmd", "not_null": false, "is_array": false, "comment": "", @@ -19823,13 +19215,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -19838,9 +19230,9 @@ "array_dims": 0 }, { - "name": "proconfig", + "name": "qual", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -19849,13 +19241,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -19864,9 +19256,9 @@ "array_dims": 0 }, { - "name": "proacl", + "name": "with_check", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -19875,13 +19267,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_proc" + "name": "pg_policies" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -19896,7 +19288,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "columns": [ { @@ -19911,7 +19303,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -19937,7 +19329,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -19963,7 +19355,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -19989,7 +19381,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20015,7 +19407,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20041,7 +19433,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20067,7 +19459,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20082,7 +19474,7 @@ "array_dims": 0 }, { - "name": "pubname", + "name": "polname", "not_null": true, "is_array": false, "comment": "", @@ -20093,7 +19485,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20108,7 +19500,7 @@ "array_dims": 0 }, { - "name": "pubowner", + "name": "polrelid", "not_null": true, "is_array": false, "comment": "", @@ -20119,7 +19511,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20134,7 +19526,7 @@ "array_dims": 0 }, { - "name": "puballtables", + "name": "polcmd", "not_null": true, "is_array": false, "comment": "", @@ -20145,13 +19537,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -20160,7 +19552,7 @@ "array_dims": 0 }, { - "name": "pubinsert", + "name": "polpermissive", "not_null": true, "is_array": false, "comment": "", @@ -20171,7 +19563,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { @@ -20186,24 +19578,24 @@ "array_dims": 0 }, { - "name": "pubupdate", + "name": "polroles", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -20212,24 +19604,24 @@ "array_dims": 0 }, { - "name": "pubdelete", - "not_null": true, + "name": "polqual", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -20238,86 +19630,86 @@ "array_dims": 0 }, { - "name": "pubtruncate", - "not_null": true, + "name": "polwithcheck", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_policy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_prepared_statements" + }, + "columns": [ { - "name": "pubviaroot", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication" + "name": "pg_prepared_statements" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_publication_namespace" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "statement", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_statements" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -20326,24 +19718,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "prepare_time", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_statements" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -20352,24 +19744,50 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "parameter_types", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_prepared_statements" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_regtype" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "from_sql", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_statements" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -20378,24 +19796,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "generic_plans", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_statements" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -20404,8 +19822,44 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "custom_plans", + "not_null": false, + "is_array": false, + "comment": "", + "length": 8, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_prepared_statements" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "int8" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_prepared_xacts" + }, + "columns": [ + { + "name": "transaction", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -20415,7 +19869,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_xacts" }, "table_alias": "", "type": { @@ -20430,24 +19884,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "gid", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_xacts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -20456,24 +19910,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "prepared", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_xacts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -20482,24 +19936,24 @@ "array_dims": 0 }, { - "name": "pnpubid", - "not_null": true, + "name": "owner", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_xacts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -20508,24 +19962,24 @@ "array_dims": 0 }, { - "name": "pnnspid", - "not_null": true, + "name": "database", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_namespace" + "name": "pg_prepared_xacts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -20540,7 +19994,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "columns": [ { @@ -20555,7 +20009,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20581,7 +20035,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20607,7 +20061,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20633,7 +20087,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20659,7 +20113,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20685,7 +20139,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20711,7 +20165,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20726,24 +20180,24 @@ "array_dims": 0 }, { - "name": "prpubid", + "name": "proname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -20752,7 +20206,7 @@ "array_dims": 0 }, { - "name": "prrelid", + "name": "pronamespace", "not_null": true, "is_array": false, "comment": "", @@ -20763,7 +20217,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -20778,24 +20232,24 @@ "array_dims": 0 }, { - "name": "prqual", - "not_null": false, + "name": "proowner", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -20804,60 +20258,50 @@ "array_dims": 0 }, { - "name": "prattrs", - "not_null": false, - "is_array": true, + "name": "prolang", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_rel" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2vector" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_publication_tables" - }, - "columns": [ + }, { - "name": "pubname", - "not_null": false, + "name": "procost", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_tables" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -20866,24 +20310,24 @@ "array_dims": 0 }, { - "name": "schemaname", - "not_null": false, + "name": "prorows", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_tables" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -20892,24 +20336,24 @@ "array_dims": 0 }, { - "name": "tablename", - "not_null": false, + "name": "provariadic", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_tables" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -20918,24 +20362,24 @@ "array_dims": 0 }, { - "name": "attnames", - "not_null": false, - "is_array": true, + "name": "prosupport", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_tables" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_name" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -20944,60 +20388,50 @@ "array_dims": 0 }, { - "name": "rowfilter", - "not_null": false, + "name": "prokind", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_publication_tables" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_range" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "prosecdef", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21006,24 +20440,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "proleakproof", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21032,24 +20466,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "proisstrict", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21058,24 +20492,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "proretset", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21084,24 +20518,24 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "provolatile", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -21110,24 +20544,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "proparallel", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -21136,24 +20570,24 @@ "array_dims": 0 }, { - "name": "rngtypid", + "name": "pronargs", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -21162,24 +20596,24 @@ "array_dims": 0 }, { - "name": "rngsubtype", + "name": "pronargdefaults", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -21188,7 +20622,7 @@ "array_dims": 0 }, { - "name": "rngmultitypid", + "name": "prorettype", "not_null": true, "is_array": false, "comment": "", @@ -21199,7 +20633,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { @@ -21214,24 +20648,24 @@ "array_dims": 0 }, { - "name": "rngcollation", + "name": "proargtypes", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "oidvector" }, "is_sqlc_slice": false, "embed_table": null, @@ -21240,24 +20674,24 @@ "array_dims": 0 }, { - "name": "rngsubopc", - "not_null": true, - "is_array": false, + "name": "proallargtypes", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21266,24 +20700,24 @@ "array_dims": 0 }, { - "name": "rngcanonical", - "not_null": true, - "is_array": false, + "name": "proargmodes", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "_char" }, "is_sqlc_slice": false, "embed_table": null, @@ -21292,60 +20726,50 @@ "array_dims": 0 }, { - "name": "rngsubdiff", - "not_null": true, - "is_array": false, + "name": "proargnames", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_range" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_origin" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "proargdefaults", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -21354,50 +20778,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, - "is_array": false, + "name": "protrftypes", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "cid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "xmax", - "not_null": true, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21406,24 +20804,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "prosrc", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -21432,24 +20830,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "probin", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -21458,24 +20856,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "prosqlbody", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -21484,24 +20882,24 @@ "array_dims": 0 }, { - "name": "roident", - "not_null": true, - "is_array": false, + "name": "proconfig", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -21510,9 +20908,9 @@ "array_dims": 0 }, { - "name": "roname", - "not_null": true, - "is_array": false, + "name": "proacl", + "not_null": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -21521,13 +20919,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin" + "name": "pg_proc" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, @@ -21542,12 +20940,12 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin_status" + "name": "pg_publication" }, "columns": [ { - "name": "local_id", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -21557,7 +20955,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin_status" + "name": "pg_publication" }, "table_alias": "", "type": { @@ -21572,24 +20970,24 @@ "array_dims": 0 }, { - "name": "external_id", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin_status" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21598,24 +20996,24 @@ "array_dims": 0 }, { - "name": "remote_lsn", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_origin_status" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21624,60 +21022,24 @@ "array_dims": 0 }, { - "name": "local_lsn", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_origin_status" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_lsn" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_slots" - }, - "columns": [ - { - "name": "slot_name", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21686,24 +21048,24 @@ "array_dims": 0 }, { - "name": "plugin", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21712,24 +21074,24 @@ "array_dims": 0 }, { - "name": "slot_type", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21738,8 +21100,8 @@ "array_dims": 0 }, { - "name": "datoid", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -21749,7 +21111,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { @@ -21764,8 +21126,8 @@ "array_dims": 0 }, { - "name": "database", - "not_null": false, + "name": "pubname", + "not_null": true, "is_array": false, "comment": "", "length": 64, @@ -21775,7 +21137,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { @@ -21790,24 +21152,24 @@ "array_dims": 0 }, { - "name": "temporary", - "not_null": false, + "name": "pubowner", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -21816,8 +21178,8 @@ "array_dims": 0 }, { - "name": "active", - "not_null": false, + "name": "puballtables", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -21827,7 +21189,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { @@ -21842,102 +21204,24 @@ "array_dims": 0 }, { - "name": "active_pid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_slots" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "xmin", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_slots" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "xid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "catalog_xmin", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_replication_slots" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "xid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "restart_lsn", - "not_null": false, + "name": "pubinsert", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21946,24 +21230,24 @@ "array_dims": 0 }, { - "name": "confirmed_flush_lsn", - "not_null": false, + "name": "pubupdate", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21972,24 +21256,24 @@ "array_dims": 0 }, { - "name": "wal_status", - "not_null": false, + "name": "pubdelete", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -21998,24 +21282,24 @@ "array_dims": 0 }, { - "name": "safe_wal_size", - "not_null": false, + "name": "pubtruncate", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -22024,8 +21308,8 @@ "array_dims": 0 }, { - "name": "two_phase", - "not_null": false, + "name": "pubviaroot", + "not_null": true, "is_array": false, "comment": "", "length": 1, @@ -22035,7 +21319,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_replication_slots" + "name": "pg_publication" }, "table_alias": "", "type": { @@ -22056,7 +21340,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "columns": [ { @@ -22071,7 +21355,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22097,7 +21381,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22123,7 +21407,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22149,7 +21433,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22175,7 +21459,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22201,7 +21485,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22227,7 +21511,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22242,33 +21526,7 @@ "array_dims": 0 }, { - "name": "rulename", - "not_null": true, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rewrite" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ev_class", + "name": "pnpubid", "not_null": true, "is_array": false, "comment": "", @@ -22279,7 +21537,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { @@ -22294,128 +21552,24 @@ "array_dims": 0 }, { - "name": "ev_type", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rewrite" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "char" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ev_enabled", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rewrite" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "char" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "is_instead", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rewrite" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ev_qual", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rewrite" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_node_tree" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "ev_action", + "name": "pnnspid", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rewrite" + "name": "pg_publication_namespace" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22430,54 +21584,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "columns": [ { - "name": "rolname", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_roles" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "rolsuper", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22486,24 +21614,24 @@ "array_dims": 0 }, { - "name": "rolinherit", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22512,24 +21640,24 @@ "array_dims": 0 }, { - "name": "rolcreaterole", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22538,24 +21666,24 @@ "array_dims": 0 }, { - "name": "rolcreatedb", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22564,24 +21692,24 @@ "array_dims": 0 }, { - "name": "rolcanlogin", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22590,24 +21718,24 @@ "array_dims": 0 }, { - "name": "rolreplication", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22616,8 +21744,8 @@ "array_dims": 0 }, { - "name": "rolconnlimit", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -22627,13 +21755,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22642,24 +21770,24 @@ "array_dims": 0 }, { - "name": "rolpassword", - "not_null": false, + "name": "prpubid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22668,24 +21796,24 @@ "array_dims": 0 }, { - "name": "rolvaliduntil", - "not_null": false, + "name": "prrelid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -22694,24 +21822,24 @@ "array_dims": 0 }, { - "name": "rolbypassrls", + "name": "prqual", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -22720,7 +21848,7 @@ "array_dims": 0 }, { - "name": "rolconfig", + "name": "prattrs", "not_null": false, "is_array": true, "comment": "", @@ -22731,56 +21859,56 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_publication_tables" + }, + "columns": [ { - "name": "oid", + "name": "pubname", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_roles" + "name": "pg_publication_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_rules" - }, - "columns": [ + }, { "name": "schemaname", "not_null": false, @@ -22793,7 +21921,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rules" + "name": "pg_publication_tables" }, "table_alias": "", "type": { @@ -22819,7 +21947,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rules" + "name": "pg_publication_tables" }, "table_alias": "", "type": { @@ -22834,24 +21962,24 @@ "array_dims": 0 }, { - "name": "rulename", + "name": "attnames", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rules" + "name": "pg_publication_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "_name" }, "is_sqlc_slice": false, "embed_table": null, @@ -22860,7 +21988,7 @@ "array_dims": 0 }, { - "name": "definition", + "name": "rowfilter", "not_null": false, "is_array": false, "comment": "", @@ -22871,7 +21999,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_rules" + "name": "pg_publication_tables" }, "table_alias": "", "type": { @@ -22892,7 +22020,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "columns": [ { @@ -22907,7 +22035,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -22933,7 +22061,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -22959,7 +22087,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -22985,7 +22113,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -23011,7 +22139,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -23037,7 +22165,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -23052,7 +22180,7 @@ "array_dims": 0 }, { - "name": "objoid", + "name": "rngtypid", "not_null": true, "is_array": false, "comment": "", @@ -23063,7 +22191,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -23078,7 +22206,7 @@ "array_dims": 0 }, { - "name": "classoid", + "name": "rngsubtype", "not_null": true, "is_array": false, "comment": "", @@ -23089,7 +22217,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { @@ -23104,7 +22232,7 @@ "array_dims": 0 }, { - "name": "objsubid", + "name": "rngmultitypid", "not_null": true, "is_array": false, "comment": "", @@ -23115,13 +22243,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23130,24 +22258,24 @@ "array_dims": 0 }, { - "name": "provider", + "name": "rngcollation", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23156,44 +22284,34 @@ "array_dims": 0 }, { - "name": "label", + "name": "rngsubopc", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabel" + "name": "pg_range" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_seclabels" - }, - "columns": [ + }, { - "name": "objoid", - "not_null": false, + "name": "rngcanonical", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -23203,13 +22321,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_range" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -23218,8 +22336,8 @@ "array_dims": 0 }, { - "name": "classoid", - "not_null": false, + "name": "rngsubdiff", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -23229,23 +22347,33 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_range" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_replication_origin" + }, + "columns": [ { - "name": "objsubid", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -23255,13 +22383,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23270,24 +22398,24 @@ "array_dims": 0 }, { - "name": "objtype", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23296,8 +22424,8 @@ "array_dims": 0 }, { - "name": "objnamespace", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -23307,13 +22435,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23322,24 +22450,24 @@ "array_dims": 0 }, { - "name": "objname", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23348,24 +22476,24 @@ "array_dims": 0 }, { - "name": "provider", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23374,43 +22502,33 @@ "array_dims": 0 }, { - "name": "label", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_seclabels" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_sequence" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "roident", "not_null": true, "is_array": false, "comment": "", @@ -23421,7 +22539,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin" }, "table_alias": "", "type": { @@ -23436,34 +22554,44 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "roname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_replication_origin_status" + }, + "columns": [ { - "name": "xmax", - "not_null": true, + "name": "local_id", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -23473,13 +22601,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin_status" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23488,24 +22616,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "external_id", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin_status" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -23514,24 +22642,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "remote_lsn", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin_status" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -23540,50 +22668,60 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "local_lsn", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_origin_status" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_replication_slots" + }, + "columns": [ { - "name": "seqrelid", - "not_null": true, + "name": "slot_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -23592,24 +22730,24 @@ "array_dims": 0 }, { - "name": "seqtypid", - "not_null": true, + "name": "plugin", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -23618,24 +22756,24 @@ "array_dims": 0 }, { - "name": "seqstart", - "not_null": true, + "name": "slot_type", + "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -23644,24 +22782,24 @@ "array_dims": 0 }, { - "name": "seqincrement", - "not_null": true, + "name": "datoid", + "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23670,24 +22808,24 @@ "array_dims": 0 }, { - "name": "seqmax", - "not_null": true, + "name": "database", + "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -23696,24 +22834,24 @@ "array_dims": 0 }, { - "name": "seqmin", - "not_null": true, + "name": "temporary", + "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -23722,24 +22860,24 @@ "array_dims": 0 }, { - "name": "seqcache", - "not_null": true, + "name": "active", + "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -23748,60 +22886,50 @@ "array_dims": 0 }, { - "name": "seqcycle", - "not_null": true, + "name": "active_pid", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequence" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_sequences" - }, - "columns": [ + }, { - "name": "schemaname", + "name": "xmin", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23810,24 +22938,24 @@ "array_dims": 0 }, { - "name": "sequencename", + "name": "catalog_xmin", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23836,24 +22964,24 @@ "array_dims": 0 }, { - "name": "sequenceowner", + "name": "restart_lsn", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -23862,24 +22990,24 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "confirmed_flush_lsn", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regtype" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -23888,24 +23016,24 @@ "array_dims": 0 }, { - "name": "start_value", + "name": "wal_status", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -23914,7 +23042,7 @@ "array_dims": 0 }, { - "name": "min_value", + "name": "safe_wal_size", "not_null": false, "is_array": false, "comment": "", @@ -23925,7 +23053,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { @@ -23940,50 +23068,60 @@ "array_dims": 0 }, { - "name": "max_value", + "name": "two_phase", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_rewrite" + }, + "columns": [ { - "name": "increment_by", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -23992,24 +23130,24 @@ "array_dims": 0 }, { - "name": "cycle", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24018,24 +23156,24 @@ "array_dims": 0 }, { - "name": "cache_size", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24044,60 +23182,50 @@ "array_dims": 0 }, { - "name": "last_value", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_sequences" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_settings" - }, - "columns": [ + }, { - "name": "name", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24106,24 +23234,24 @@ "array_dims": 0 }, { - "name": "setting", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24132,24 +23260,24 @@ "array_dims": 0 }, { - "name": "unit", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24158,24 +23286,24 @@ "array_dims": 0 }, { - "name": "category", - "not_null": false, + "name": "rulename", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -24184,24 +23312,24 @@ "array_dims": 0 }, { - "name": "short_desc", - "not_null": false, + "name": "ev_class", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -24210,24 +23338,24 @@ "array_dims": 0 }, { - "name": "extra_desc", - "not_null": false, + "name": "ev_type", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -24236,24 +23364,24 @@ "array_dims": 0 }, { - "name": "context", - "not_null": false, + "name": "ev_enabled", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -24262,24 +23390,24 @@ "array_dims": 0 }, { - "name": "vartype", - "not_null": false, + "name": "is_instead", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24288,8 +23416,8 @@ "array_dims": 0 }, { - "name": "source", - "not_null": false, + "name": "ev_qual", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -24299,13 +23427,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -24314,8 +23442,8 @@ "array_dims": 0 }, { - "name": "min_val", - "not_null": false, + "name": "ev_action", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -24325,39 +23453,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_rewrite" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_roles" + }, + "columns": [ { - "name": "max_val", + "name": "rolname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -24366,24 +23504,24 @@ "array_dims": 0 }, { - "name": "enumvals", + "name": "rolsuper", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24392,24 +23530,24 @@ "array_dims": 0 }, { - "name": "boot_val", + "name": "rolinherit", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24418,24 +23556,24 @@ "array_dims": 0 }, { - "name": "reset_val", + "name": "rolcreaterole", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24444,24 +23582,24 @@ "array_dims": 0 }, { - "name": "sourcefile", + "name": "rolcreatedb", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24470,24 +23608,24 @@ "array_dims": 0 }, { - "name": "sourceline", + "name": "rolcanlogin", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -24496,7 +23634,7 @@ "array_dims": 0 }, { - "name": "pending_restart", + "name": "rolreplication", "not_null": false, "is_array": false, "comment": "", @@ -24507,7 +23645,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_settings" + "name": "pg_roles" }, "table_alias": "", "type": { @@ -24520,36 +23658,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_shadow" - }, - "columns": [ + }, { - "name": "usename", + "name": "rolconnlimit", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -24558,24 +23686,24 @@ "array_dims": 0 }, { - "name": "usesysid", + "name": "rolpassword", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -24584,24 +23712,24 @@ "array_dims": 0 }, { - "name": "usecreatedb", + "name": "rolvaliduntil", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -24610,7 +23738,7 @@ "array_dims": 0 }, { - "name": "usesuper", + "name": "rolbypassrls", "not_null": false, "is_array": false, "comment": "", @@ -24621,7 +23749,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { @@ -24636,24 +23764,24 @@ "array_dims": 0 }, { - "name": "userepl", + "name": "rolconfig", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -24662,24 +23790,60 @@ "array_dims": 0 }, { - "name": "usebypassrls", + "name": "oid", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_rules" + }, + "columns": [ + { + "name": "schemaname", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_rules" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -24688,24 +23852,24 @@ "array_dims": 0 }, { - "name": "passwd", + "name": "tablename", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -24714,24 +23878,24 @@ "array_dims": 0 }, { - "name": "valuntil", + "name": "rulename", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -24740,9 +23904,9 @@ "array_dims": 0 }, { - "name": "useconfig", + "name": "definition", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -24751,13 +23915,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shadow" + "name": "pg_rules" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -24772,7 +23936,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "columns": [ { @@ -24787,7 +23951,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24813,7 +23977,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24839,7 +24003,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24865,7 +24029,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24891,7 +24055,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24917,7 +24081,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24932,7 +24096,7 @@ "array_dims": 0 }, { - "name": "dbid", + "name": "objoid", "not_null": true, "is_array": false, "comment": "", @@ -24943,7 +24107,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24958,7 +24122,7 @@ "array_dims": 0 }, { - "name": "classid", + "name": "classoid", "not_null": true, "is_array": false, "comment": "", @@ -24969,7 +24133,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { @@ -24984,7 +24148,7 @@ "array_dims": 0 }, { - "name": "objid", + "name": "objsubid", "not_null": true, "is_array": false, "comment": "", @@ -24995,13 +24159,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -25010,24 +24174,24 @@ "array_dims": 0 }, { - "name": "objsubid", + "name": "provider", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25036,10 +24200,46 @@ "array_dims": 0 }, { - "name": "refclassid", + "name": "label", "not_null": true, "is_array": false, "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabel" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "columns": [ + { + "name": "objoid", + "not_null": false, + "is_array": false, + "comment": "", "length": 4, "is_named_param": false, "is_func_call": false, @@ -25047,7 +24247,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabels" }, "table_alias": "", "type": { @@ -25062,8 +24262,8 @@ "array_dims": 0 }, { - "name": "refobjid", - "not_null": true, + "name": "classoid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -25073,7 +24273,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabels" }, "table_alias": "", "type": { @@ -25088,24 +24288,154 @@ "array_dims": 0 }, { - "name": "deptype", - "not_null": true, + "name": "objsubid", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdepend" + "name": "pg_seclabels" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "objtype", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "objnamespace", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "oid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "objname", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "provider", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "label", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_seclabels" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25120,7 +24450,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "columns": [ { @@ -25135,7 +24465,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25161,7 +24491,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25187,7 +24517,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25213,7 +24543,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25239,7 +24569,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25265,7 +24595,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25280,7 +24610,7 @@ "array_dims": 0 }, { - "name": "objoid", + "name": "seqrelid", "not_null": true, "is_array": false, "comment": "", @@ -25291,7 +24621,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25306,7 +24636,7 @@ "array_dims": 0 }, { - "name": "classoid", + "name": "seqtypid", "not_null": true, "is_array": false, "comment": "", @@ -25317,7 +24647,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25332,60 +24662,50 @@ "array_dims": 0 }, { - "name": "description", + "name": "seqstart", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shdescription" + "name": "pg_sequence" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_shmem_allocations" - }, - "columns": [ + }, { - "name": "name", - "not_null": false, + "name": "seqincrement", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shmem_allocations" + "name": "pg_sequence" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25394,8 +24714,8 @@ "array_dims": 0 }, { - "name": "off", - "not_null": false, + "name": "seqmax", + "not_null": true, "is_array": false, "comment": "", "length": 8, @@ -25405,7 +24725,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shmem_allocations" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25420,8 +24740,8 @@ "array_dims": 0 }, { - "name": "size", - "not_null": false, + "name": "seqmin", + "not_null": true, "is_array": false, "comment": "", "length": 8, @@ -25431,7 +24751,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shmem_allocations" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25446,8 +24766,8 @@ "array_dims": 0 }, { - "name": "allocated_size", - "not_null": false, + "name": "seqcache", + "not_null": true, "is_array": false, "comment": "", "length": 8, @@ -25457,7 +24777,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shmem_allocations" + "name": "pg_sequence" }, "table_alias": "", "type": { @@ -25470,62 +24790,62 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_shseclabel" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "seqcycle", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequence" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_sequences" + }, + "columns": [ { - "name": "cmax", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -25534,24 +24854,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "sequencename", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -25560,24 +24880,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "sequenceowner", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -25586,8 +24906,8 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "data_type", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -25597,13 +24917,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "regtype" }, "is_sqlc_slice": false, "embed_table": null, @@ -25612,24 +24932,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "start_value", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25638,24 +24958,24 @@ "array_dims": 0 }, { - "name": "objoid", - "not_null": true, + "name": "min_value", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25664,24 +24984,24 @@ "array_dims": 0 }, { - "name": "classoid", - "not_null": true, + "name": "max_value", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25690,24 +25010,24 @@ "array_dims": 0 }, { - "name": "provider", - "not_null": true, + "name": "increment_by", + "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25716,60 +25036,50 @@ "array_dims": 0 }, { - "name": "label", - "not_null": true, + "name": "cycle", + "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_shseclabel" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_activity" - }, - "columns": [ + }, { - "name": "datid", + "name": "cache_size", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -25778,50 +25088,60 @@ "array_dims": 0 }, { - "name": "datname", + "name": "last_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_settings" + }, + "columns": [ { - "name": "pid", + "name": "name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25830,24 +25150,24 @@ "array_dims": 0 }, { - "name": "leader_pid", + "name": "setting", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25856,24 +25176,24 @@ "array_dims": 0 }, { - "name": "usesysid", + "name": "unit", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25882,24 +25202,24 @@ "array_dims": 0 }, { - "name": "usename", + "name": "category", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25908,7 +25228,7 @@ "array_dims": 0 }, { - "name": "application_name", + "name": "short_desc", "not_null": false, "is_array": false, "comment": "", @@ -25919,7 +25239,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { @@ -25934,7 +25254,7 @@ "array_dims": 0 }, { - "name": "client_addr", + "name": "extra_desc", "not_null": false, "is_array": false, "comment": "", @@ -25945,13 +25265,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "inet" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -25960,7 +25280,7 @@ "array_dims": 0 }, { - "name": "client_hostname", + "name": "context", "not_null": false, "is_array": false, "comment": "", @@ -25971,7 +25291,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { @@ -25986,24 +25306,24 @@ "array_dims": 0 }, { - "name": "client_port", + "name": "vartype", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26012,24 +25332,24 @@ "array_dims": 0 }, { - "name": "backend_start", + "name": "source", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26038,24 +25358,24 @@ "array_dims": 0 }, { - "name": "xact_start", + "name": "min_val", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26064,24 +25384,24 @@ "array_dims": 0 }, { - "name": "query_start", + "name": "max_val", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26090,24 +25410,24 @@ "array_dims": 0 }, { - "name": "state_change", + "name": "enumvals", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26116,7 +25436,7 @@ "array_dims": 0 }, { - "name": "wait_event_type", + "name": "boot_val", "not_null": false, "is_array": false, "comment": "", @@ -26127,7 +25447,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { @@ -26142,7 +25462,7 @@ "array_dims": 0 }, { - "name": "wait_event", + "name": "reset_val", "not_null": false, "is_array": false, "comment": "", @@ -26153,7 +25473,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { @@ -26168,7 +25488,7 @@ "array_dims": 0 }, { - "name": "state", + "name": "sourcefile", "not_null": false, "is_array": false, "comment": "", @@ -26179,7 +25499,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { @@ -26194,7 +25514,7 @@ "array_dims": 0 }, { - "name": "backend_xid", + "name": "sourceline", "not_null": false, "is_array": false, "comment": "", @@ -26205,13 +25525,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -26220,50 +25540,60 @@ "array_dims": 0 }, { - "name": "backend_xmin", + "name": "pending_restart", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_settings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_shadow" + }, + "columns": [ { - "name": "query_id", + "name": "usename", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -26272,24 +25602,24 @@ "array_dims": 0 }, { - "name": "query", + "name": "usesysid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26298,60 +25628,50 @@ "array_dims": 0 }, { - "name": "backend_type", + "name": "usecreatedb", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_activity" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_all_indexes" - }, - "columns": [ + }, { - "name": "relid", + "name": "usesuper", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -26360,24 +25680,24 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "userepl", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -26386,24 +25706,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "usebypassrls", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -26412,24 +25732,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "passwd", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -26438,24 +25758,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "valuntil", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -26464,50 +25784,60 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "useconfig", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shadow" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_shdepend" + }, + "columns": [ { - "name": "idx_tup_read", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26516,44 +25846,34 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_indexes" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_all_tables" - }, - "columns": [ + }, { - "name": "relid", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -26563,13 +25883,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26578,24 +25898,24 @@ "array_dims": 0 }, { - "name": "schemaname", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26604,24 +25924,24 @@ "array_dims": 0 }, { - "name": "relname", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26630,24 +25950,24 @@ "array_dims": 0 }, { - "name": "seq_scan", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26656,24 +25976,24 @@ "array_dims": 0 }, { - "name": "seq_tup_read", - "not_null": false, + "name": "dbid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26682,24 +26002,24 @@ "array_dims": 0 }, { - "name": "idx_scan", - "not_null": false, + "name": "classid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26708,24 +26028,24 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", - "not_null": false, + "name": "objid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26734,24 +26054,24 @@ "array_dims": 0 }, { - "name": "n_tup_ins", - "not_null": false, + "name": "objsubid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -26760,24 +26080,24 @@ "array_dims": 0 }, { - "name": "n_tup_upd", - "not_null": false, + "name": "refclassid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26786,24 +26106,24 @@ "array_dims": 0 }, { - "name": "n_tup_del", - "not_null": false, + "name": "refobjid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26812,50 +26132,60 @@ "array_dims": 0 }, { - "name": "n_tup_hot_upd", - "not_null": false, + "name": "deptype", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdepend" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_shdescription" + }, + "columns": [ { - "name": "n_live_tup", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26864,24 +26194,24 @@ "array_dims": 0 }, { - "name": "n_dead_tup", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26890,24 +26220,24 @@ "array_dims": 0 }, { - "name": "n_mod_since_analyze", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26916,24 +26246,24 @@ "array_dims": 0 }, { - "name": "n_ins_since_vacuum", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26942,24 +26272,24 @@ "array_dims": 0 }, { - "name": "last_vacuum", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26968,24 +26298,24 @@ "array_dims": 0 }, { - "name": "last_autovacuum", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -26994,24 +26324,24 @@ "array_dims": 0 }, { - "name": "last_analyze", - "not_null": false, + "name": "objoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27020,24 +26350,24 @@ "array_dims": 0 }, { - "name": "last_autoanalyze", - "not_null": false, + "name": "classoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27046,50 +26376,60 @@ "array_dims": 0 }, { - "name": "vacuum_count", - "not_null": false, + "name": "description", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shdescription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_shmem_allocations" + }, + "columns": [ { - "name": "autovacuum_count", + "name": "name", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shmem_allocations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27098,7 +26438,7 @@ "array_dims": 0 }, { - "name": "analyze_count", + "name": "off", "not_null": false, "is_array": false, "comment": "", @@ -27109,7 +26449,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shmem_allocations" }, "table_alias": "", "type": { @@ -27124,7 +26464,7 @@ "array_dims": 0 }, { - "name": "autoanalyze_count", + "name": "size", "not_null": false, "is_array": false, "comment": "", @@ -27135,7 +26475,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_all_tables" + "name": "pg_shmem_allocations" }, "table_alias": "", "type": { @@ -27148,19 +26488,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_archiver" - }, - "columns": [ + }, { - "name": "archived_count", + "name": "allocated_size", "not_null": false, "is_array": false, "comment": "", @@ -27171,7 +26501,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shmem_allocations" }, "table_alias": "", "type": { @@ -27184,26 +26514,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_shseclabel" + }, + "columns": [ { - "name": "last_archived_wal", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27212,24 +26552,24 @@ "array_dims": 0 }, { - "name": "last_archived_time", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27238,24 +26578,24 @@ "array_dims": 0 }, { - "name": "failed_count", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27264,24 +26604,24 @@ "array_dims": 0 }, { - "name": "last_failed_wal", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27290,24 +26630,24 @@ "array_dims": 0 }, { - "name": "last_failed_time", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27316,60 +26656,50 @@ "array_dims": 0 }, { - "name": "stats_reset", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_archiver" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_bgwriter" - }, - "columns": [ + }, { - "name": "checkpoints_timed", - "not_null": false, + "name": "objoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27378,24 +26708,24 @@ "array_dims": 0 }, { - "name": "checkpoints_req", - "not_null": false, + "name": "classoid", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27404,24 +26734,24 @@ "array_dims": 0 }, { - "name": "checkpoint_write_time", - "not_null": false, + "name": "provider", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27430,50 +26760,60 @@ "array_dims": 0 }, { - "name": "checkpoint_sync_time", - "not_null": false, + "name": "label", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_shseclabel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_activity" + }, + "columns": [ { - "name": "buffers_checkpoint", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27482,24 +26822,24 @@ "array_dims": 0 }, { - "name": "buffers_clean", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -27508,24 +26848,24 @@ "array_dims": 0 }, { - "name": "maxwritten_clean", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -27534,24 +26874,24 @@ "array_dims": 0 }, { - "name": "buffers_backend", + "name": "leader_pid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -27560,24 +26900,24 @@ "array_dims": 0 }, { - "name": "buffers_backend_fsync", + "name": "usesysid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27586,24 +26926,24 @@ "array_dims": 0 }, { - "name": "buffers_alloc", + "name": "usename", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -27612,60 +26952,50 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "application_name", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_bgwriter" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_database" - }, - "columns": [ + }, { - "name": "datid", + "name": "client_addr", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "inet" }, "is_sqlc_slice": false, "embed_table": null, @@ -27674,24 +27004,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "client_hostname", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27700,7 +27030,7 @@ "array_dims": 0 }, { - "name": "numbackends", + "name": "client_port", "not_null": false, "is_array": false, "comment": "", @@ -27711,7 +27041,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { @@ -27726,7 +27056,7 @@ "array_dims": 0 }, { - "name": "xact_commit", + "name": "backend_start", "not_null": false, "is_array": false, "comment": "", @@ -27737,13 +27067,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -27752,7 +27082,7 @@ "array_dims": 0 }, { - "name": "xact_rollback", + "name": "xact_start", "not_null": false, "is_array": false, "comment": "", @@ -27763,13 +27093,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -27778,7 +27108,7 @@ "array_dims": 0 }, { - "name": "blks_read", + "name": "query_start", "not_null": false, "is_array": false, "comment": "", @@ -27789,13 +27119,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -27804,7 +27134,7 @@ "array_dims": 0 }, { - "name": "blks_hit", + "name": "state_change", "not_null": false, "is_array": false, "comment": "", @@ -27815,13 +27145,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -27830,24 +27160,24 @@ "array_dims": 0 }, { - "name": "tup_returned", + "name": "wait_event_type", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27856,24 +27186,24 @@ "array_dims": 0 }, { - "name": "tup_fetched", + "name": "wait_event", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27882,24 +27212,24 @@ "array_dims": 0 }, { - "name": "tup_inserted", + "name": "state", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -27908,24 +27238,24 @@ "array_dims": 0 }, { - "name": "tup_updated", + "name": "backend_xid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27934,24 +27264,24 @@ "array_dims": 0 }, { - "name": "tup_deleted", + "name": "backend_xmin", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -27960,7 +27290,7 @@ "array_dims": 0 }, { - "name": "conflicts", + "name": "query_id", "not_null": false, "is_array": false, "comment": "", @@ -27971,7 +27301,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { @@ -27986,24 +27316,24 @@ "array_dims": 0 }, { - "name": "temp_files", + "name": "query", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -28012,50 +27342,60 @@ "array_dims": 0 }, { - "name": "temp_bytes", + "name": "backend_type", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_activity" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_all_indexes" + }, + "columns": [ { - "name": "deadlocks", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -28064,24 +27404,24 @@ "array_dims": 0 }, { - "name": "checksum_failures", + "name": "indexrelid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -28090,24 +27430,24 @@ "array_dims": 0 }, { - "name": "checksum_last_failure", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -28116,24 +27456,24 @@ "array_dims": 0 }, { - "name": "blk_read_time", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -28142,24 +27482,24 @@ "array_dims": 0 }, { - "name": "blk_write_time", + "name": "indexrelname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -28168,7 +27508,7 @@ "array_dims": 0 }, { - "name": "session_time", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -28179,13 +27519,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28194,7 +27534,7 @@ "array_dims": 0 }, { - "name": "active_time", + "name": "idx_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -28205,13 +27545,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28220,7 +27560,7 @@ "array_dims": 0 }, { - "name": "idle_in_transaction_time", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", @@ -28231,39 +27571,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_all_tables" + }, + "columns": [ { - "name": "sessions", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -28272,24 +27622,24 @@ "array_dims": 0 }, { - "name": "sessions_abandoned", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -28298,24 +27648,24 @@ "array_dims": 0 }, { - "name": "sessions_fatal", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -28324,7 +27674,7 @@ "array_dims": 0 }, { - "name": "sessions_killed", + "name": "seq_scan", "not_null": false, "is_array": false, "comment": "", @@ -28335,7 +27685,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28350,7 +27700,7 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "seq_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -28361,49 +27711,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" - }, - "columns": [ + }, { - "name": "datid", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28412,24 +27752,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28438,7 +27778,7 @@ "array_dims": 0 }, { - "name": "confl_tablespace", + "name": "n_tup_ins", "not_null": false, "is_array": false, "comment": "", @@ -28449,7 +27789,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28464,7 +27804,7 @@ "array_dims": 0 }, { - "name": "confl_lock", + "name": "n_tup_upd", "not_null": false, "is_array": false, "comment": "", @@ -28475,7 +27815,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28490,7 +27830,7 @@ "array_dims": 0 }, { - "name": "confl_snapshot", + "name": "n_tup_del", "not_null": false, "is_array": false, "comment": "", @@ -28501,7 +27841,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28516,7 +27856,7 @@ "array_dims": 0 }, { - "name": "confl_bufferpin", + "name": "n_tup_hot_upd", "not_null": false, "is_array": false, "comment": "", @@ -28527,7 +27867,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28542,7 +27882,7 @@ "array_dims": 0 }, { - "name": "confl_deadlock", + "name": "n_live_tup", "not_null": false, "is_array": false, "comment": "", @@ -28553,7 +27893,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_database_conflicts" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28566,36 +27906,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_gssapi" - }, - "columns": [ + }, { - "name": "pid", + "name": "n_dead_tup", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_gssapi" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28604,24 +27934,24 @@ "array_dims": 0 }, { - "name": "gss_authenticated", + "name": "n_mod_since_analyze", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_gssapi" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28630,24 +27960,24 @@ "array_dims": 0 }, { - "name": "principal", + "name": "n_ins_since_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_gssapi" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28656,60 +27986,50 @@ "array_dims": 0 }, { - "name": "encrypted", + "name": "last_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_gssapi" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" - }, - "columns": [ + }, { - "name": "pid", + "name": "last_autovacuum", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -28718,24 +28038,24 @@ "array_dims": 0 }, { - "name": "datid", + "name": "last_analyze", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -28744,24 +28064,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "last_autoanalyze", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -28770,24 +28090,24 @@ "array_dims": 0 }, { - "name": "relid", + "name": "vacuum_count", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28796,24 +28116,24 @@ "array_dims": 0 }, { - "name": "phase", + "name": "autovacuum_count", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -28822,7 +28142,7 @@ "array_dims": 0 }, { - "name": "sample_blks_total", + "name": "analyze_count", "not_null": false, "is_array": false, "comment": "", @@ -28833,7 +28153,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28848,7 +28168,7 @@ "array_dims": 0 }, { - "name": "sample_blks_scanned", + "name": "autoanalyze_count", "not_null": false, "is_array": false, "comment": "", @@ -28859,7 +28179,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_all_tables" }, "table_alias": "", "type": { @@ -28872,9 +28192,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_archiver" + }, + "columns": [ { - "name": "ext_stats_total", + "name": "archived_count", "not_null": false, "is_array": false, "comment": "", @@ -28885,7 +28215,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { @@ -28900,24 +28230,24 @@ "array_dims": 0 }, { - "name": "ext_stats_computed", + "name": "last_archived_wal", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -28926,7 +28256,7 @@ "array_dims": 0 }, { - "name": "child_tables_total", + "name": "last_archived_time", "not_null": false, "is_array": false, "comment": "", @@ -28937,13 +28267,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -28952,7 +28282,7 @@ "array_dims": 0 }, { - "name": "child_tables_done", + "name": "failed_count", "not_null": false, "is_array": false, "comment": "", @@ -28963,7 +28293,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { @@ -28978,60 +28308,50 @@ "array_dims": 0 }, { - "name": "current_child_table_relid", + "name": "last_failed_wal", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_analyze" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" - }, - "columns": [ + }, { - "name": "pid", + "name": "last_failed_time", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -29040,33 +28360,43 @@ "array_dims": 0 }, { - "name": "phase", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_archiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_bgwriter" + }, + "columns": [ { - "name": "backup_total", + "name": "checkpoints_timed", "not_null": false, "is_array": false, "comment": "", @@ -29077,7 +28407,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { @@ -29092,7 +28422,7 @@ "array_dims": 0 }, { - "name": "backup_streamed", + "name": "checkpoints_req", "not_null": false, "is_array": false, "comment": "", @@ -29103,7 +28433,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { @@ -29118,7 +28448,7 @@ "array_dims": 0 }, { - "name": "tablespaces_total", + "name": "checkpoint_write_time", "not_null": false, "is_array": false, "comment": "", @@ -29129,13 +28459,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29144,7 +28474,7 @@ "array_dims": 0 }, { - "name": "tablespaces_streamed", + "name": "checkpoint_sync_time", "not_null": false, "is_array": false, "comment": "", @@ -29155,49 +28485,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_basebackup" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" - }, - "columns": [ + }, { - "name": "pid", + "name": "buffers_checkpoint", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29206,24 +28526,24 @@ "array_dims": 0 }, { - "name": "datid", + "name": "buffers_clean", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29232,24 +28552,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "maxwritten_clean", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29258,24 +28578,24 @@ "array_dims": 0 }, { - "name": "relid", + "name": "buffers_backend", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29284,24 +28604,24 @@ "array_dims": 0 }, { - "name": "command", + "name": "buffers_backend_fsync", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29310,24 +28630,24 @@ "array_dims": 0 }, { - "name": "phase", + "name": "buffers_alloc", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29336,50 +28656,60 @@ "array_dims": 0 }, { - "name": "cluster_index_relid", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_bgwriter" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_database" + }, + "columns": [ { - "name": "heap_tuples_scanned", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -29388,24 +28718,24 @@ "array_dims": 0 }, { - "name": "heap_tuples_written", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -29414,24 +28744,24 @@ "array_dims": 0 }, { - "name": "heap_blks_total", + "name": "numbackends", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -29440,7 +28770,7 @@ "array_dims": 0 }, { - "name": "heap_blks_scanned", + "name": "xact_commit", "not_null": false, "is_array": false, "comment": "", @@ -29451,7 +28781,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29466,7 +28796,7 @@ "array_dims": 0 }, { - "name": "index_rebuild_count", + "name": "xact_rollback", "not_null": false, "is_array": false, "comment": "", @@ -29477,7 +28807,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_cluster" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29490,88 +28820,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_copy" - }, - "columns": [ - { - "name": "pid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_copy" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 }, { - "name": "datid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_copy" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "datname", + "name": "blks_read", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29580,24 +28848,24 @@ "array_dims": 0 }, { - "name": "relid", + "name": "blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29606,24 +28874,24 @@ "array_dims": 0 }, { - "name": "command", + "name": "tup_returned", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29632,24 +28900,24 @@ "array_dims": 0 }, { - "name": "type", + "name": "tup_fetched", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29658,7 +28926,7 @@ "array_dims": 0 }, { - "name": "bytes_processed", + "name": "tup_inserted", "not_null": false, "is_array": false, "comment": "", @@ -29669,7 +28937,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29684,7 +28952,7 @@ "array_dims": 0 }, { - "name": "bytes_total", + "name": "tup_updated", "not_null": false, "is_array": false, "comment": "", @@ -29695,7 +28963,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29710,7 +28978,7 @@ "array_dims": 0 }, { - "name": "tuples_processed", + "name": "tup_deleted", "not_null": false, "is_array": false, "comment": "", @@ -29721,7 +28989,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29736,7 +29004,7 @@ "array_dims": 0 }, { - "name": "tuples_excluded", + "name": "conflicts", "not_null": false, "is_array": false, "comment": "", @@ -29747,7 +29015,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_copy" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -29760,62 +29028,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" - }, - "columns": [ - { - "name": "pid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 }, { - "name": "datid", + "name": "temp_files", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29824,24 +29056,24 @@ "array_dims": 0 }, { - "name": "datname", + "name": "temp_bytes", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29850,24 +29082,24 @@ "array_dims": 0 }, { - "name": "relid", + "name": "deadlocks", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29876,24 +29108,24 @@ "array_dims": 0 }, { - "name": "index_relid", + "name": "checksum_failures", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29902,24 +29134,24 @@ "array_dims": 0 }, { - "name": "command", + "name": "checksum_last_failure", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -29928,24 +29160,24 @@ "array_dims": 0 }, { - "name": "phase", + "name": "blk_read_time", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29954,7 +29186,7 @@ "array_dims": 0 }, { - "name": "lockers_total", + "name": "blk_write_time", "not_null": false, "is_array": false, "comment": "", @@ -29965,13 +29197,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -29980,7 +29212,7 @@ "array_dims": 0 }, { - "name": "lockers_done", + "name": "session_time", "not_null": false, "is_array": false, "comment": "", @@ -29991,13 +29223,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30006,7 +29238,7 @@ "array_dims": 0 }, { - "name": "current_locker_pid", + "name": "active_time", "not_null": false, "is_array": false, "comment": "", @@ -30017,13 +29249,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30032,7 +29264,7 @@ "array_dims": 0 }, { - "name": "blocks_total", + "name": "idle_in_transaction_time", "not_null": false, "is_array": false, "comment": "", @@ -30043,13 +29275,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30058,7 +29290,7 @@ "array_dims": 0 }, { - "name": "blocks_done", + "name": "sessions", "not_null": false, "is_array": false, "comment": "", @@ -30069,7 +29301,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -30084,7 +29316,7 @@ "array_dims": 0 }, { - "name": "tuples_total", + "name": "sessions_abandoned", "not_null": false, "is_array": false, "comment": "", @@ -30095,7 +29327,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -30110,7 +29342,7 @@ "array_dims": 0 }, { - "name": "tuples_done", + "name": "sessions_fatal", "not_null": false, "is_array": false, "comment": "", @@ -30121,7 +29353,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -30136,7 +29368,7 @@ "array_dims": 0 }, { - "name": "partitions_total", + "name": "sessions_killed", "not_null": false, "is_array": false, "comment": "", @@ -30147,7 +29379,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { @@ -30162,7 +29394,7 @@ "array_dims": 0 }, { - "name": "partitions_done", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", @@ -30173,13 +29405,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_create_index" + "name": "pg_stat_database" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -30194,35 +29426,9 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "columns": [ - { - "name": "pid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, { "name": "datid", "not_null": false, @@ -30235,7 +29441,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { @@ -30261,7 +29467,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { @@ -30276,24 +29482,24 @@ "array_dims": 0 }, { - "name": "relid", + "name": "confl_tablespace", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30302,24 +29508,24 @@ "array_dims": 0 }, { - "name": "phase", + "name": "confl_lock", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30328,7 +29534,7 @@ "array_dims": 0 }, { - "name": "heap_blks_total", + "name": "confl_snapshot", "not_null": false, "is_array": false, "comment": "", @@ -30339,7 +29545,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { @@ -30354,7 +29560,7 @@ "array_dims": 0 }, { - "name": "heap_blks_scanned", + "name": "confl_bufferpin", "not_null": false, "is_array": false, "comment": "", @@ -30365,7 +29571,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { @@ -30380,7 +29586,7 @@ "array_dims": 0 }, { - "name": "heap_blks_vacuumed", + "name": "confl_deadlock", "not_null": false, "is_array": false, "comment": "", @@ -30391,7 +29597,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_database_conflicts" }, "table_alias": "", "type": { @@ -30404,26 +29610,62 @@ "original_name": "", "unsigned": false, "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_gssapi" + }, + "columns": [ + { + "name": "pid", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_gssapi" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 }, { - "name": "index_vacuum_count", + "name": "gss_authenticated", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_gssapi" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -30432,24 +29674,24 @@ "array_dims": 0 }, { - "name": "max_dead_tuples", + "name": "principal", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_gssapi" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -30458,24 +29700,24 @@ "array_dims": 0 }, { - "name": "num_dead_tuples", + "name": "encrypted", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_progress_vacuum" + "name": "pg_stat_gssapi" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -30490,28 +29732,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "columns": [ { - "name": "stats_reset", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -30520,24 +29762,24 @@ "array_dims": 0 }, { - "name": "prefetch", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -30546,24 +29788,24 @@ "array_dims": 0 }, { - "name": "hit", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -30572,24 +29814,24 @@ "array_dims": 0 }, { - "name": "skip_init", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -30598,24 +29840,24 @@ "array_dims": 0 }, { - "name": "skip_new", + "name": "phase", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -30624,7 +29866,7 @@ "array_dims": 0 }, { - "name": "skip_fpw", + "name": "sample_blks_total", "not_null": false, "is_array": false, "comment": "", @@ -30635,7 +29877,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { @@ -30650,7 +29892,7 @@ "array_dims": 0 }, { - "name": "skip_rep", + "name": "sample_blks_scanned", "not_null": false, "is_array": false, "comment": "", @@ -30661,7 +29903,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { @@ -30676,24 +29918,24 @@ "array_dims": 0 }, { - "name": "wal_distance", + "name": "ext_stats_total", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30702,24 +29944,24 @@ "array_dims": 0 }, { - "name": "block_distance", + "name": "ext_stats_computed", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30728,60 +29970,50 @@ "array_dims": 0 }, { - "name": "io_depth", + "name": "child_tables_total", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_recovery_prefetch" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_replication" - }, - "columns": [ + }, { - "name": "pid", + "name": "child_tables_done", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30790,7 +30022,7 @@ "array_dims": 0 }, { - "name": "usesysid", + "name": "current_child_table_relid", "not_null": false, "is_array": false, "comment": "", @@ -30801,7 +30033,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_analyze" }, "table_alias": "", "type": { @@ -30814,26 +30046,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_progress_basebackup" + }, + "columns": [ { - "name": "usename", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -30842,7 +30084,7 @@ "array_dims": 0 }, { - "name": "application_name", + "name": "phase", "not_null": false, "is_array": false, "comment": "", @@ -30853,7 +30095,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { @@ -30868,24 +30110,24 @@ "array_dims": 0 }, { - "name": "client_addr", + "name": "backup_total", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "inet" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30894,24 +30136,24 @@ "array_dims": 0 }, { - "name": "client_hostname", + "name": "backup_streamed", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30920,24 +30162,24 @@ "array_dims": 0 }, { - "name": "client_port", + "name": "tablespaces_total", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -30946,7 +30188,7 @@ "array_dims": 0 }, { - "name": "backend_start", + "name": "tablespaces_streamed", "not_null": false, "is_array": false, "comment": "", @@ -30957,22 +30199,32 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_basebackup" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_progress_cluster" + }, + "columns": [ { - "name": "backend_xmin", + "name": "pid", "not_null": false, "is_array": false, "comment": "", @@ -30983,13 +30235,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -30998,24 +30250,24 @@ "array_dims": 0 }, { - "name": "state", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31024,24 +30276,24 @@ "array_dims": 0 }, { - "name": "sent_lsn", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -31050,24 +30302,24 @@ "array_dims": 0 }, { - "name": "write_lsn", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31076,24 +30328,24 @@ "array_dims": 0 }, { - "name": "flush_lsn", + "name": "command", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31102,24 +30354,24 @@ "array_dims": 0 }, { - "name": "replay_lsn", + "name": "phase", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31128,24 +30380,24 @@ "array_dims": 0 }, { - "name": "write_lag", + "name": "cluster_index_relid", "not_null": false, "is_array": false, "comment": "", - "length": 16, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "interval" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31154,24 +30406,24 @@ "array_dims": 0 }, { - "name": "flush_lag", + "name": "heap_tuples_scanned", "not_null": false, "is_array": false, "comment": "", - "length": 16, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "interval" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31180,24 +30432,24 @@ "array_dims": 0 }, { - "name": "replay_lag", + "name": "heap_tuples_written", "not_null": false, "is_array": false, "comment": "", - "length": 16, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "interval" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31206,24 +30458,24 @@ "array_dims": 0 }, { - "name": "sync_priority", + "name": "heap_blks_total", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31232,24 +30484,24 @@ "array_dims": 0 }, { - "name": "sync_state", + "name": "heap_blks_scanned", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31258,7 +30510,7 @@ "array_dims": 0 }, { - "name": "reply_time", + "name": "index_rebuild_count", "not_null": false, "is_array": false, "comment": "", @@ -31269,13 +30521,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication" + "name": "pg_stat_progress_cluster" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31290,28 +30542,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "columns": [ { - "name": "slot_name", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -31320,24 +30572,24 @@ "array_dims": 0 }, { - "name": "spill_txns", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31346,24 +30598,24 @@ "array_dims": 0 }, { - "name": "spill_count", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -31372,24 +30624,24 @@ "array_dims": 0 }, { - "name": "spill_bytes", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31398,24 +30650,24 @@ "array_dims": 0 }, { - "name": "stream_txns", + "name": "command", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31424,24 +30676,24 @@ "array_dims": 0 }, { - "name": "stream_count", + "name": "type", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31450,7 +30702,7 @@ "array_dims": 0 }, { - "name": "stream_bytes", + "name": "bytes_processed", "not_null": false, "is_array": false, "comment": "", @@ -31461,7 +30713,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { @@ -31476,7 +30728,7 @@ "array_dims": 0 }, { - "name": "total_txns", + "name": "bytes_total", "not_null": false, "is_array": false, "comment": "", @@ -31487,7 +30739,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { @@ -31502,7 +30754,7 @@ "array_dims": 0 }, { - "name": "total_bytes", + "name": "tuples_processed", "not_null": false, "is_array": false, "comment": "", @@ -31513,7 +30765,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { @@ -31528,7 +30780,7 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "tuples_excluded", "not_null": false, "is_array": false, "comment": "", @@ -31539,13 +30791,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_replication_slots" + "name": "pg_stat_progress_copy" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31560,28 +30812,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "columns": [ { - "name": "name", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -31590,24 +30842,24 @@ "array_dims": 0 }, { - "name": "blks_zeroed", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31616,24 +30868,24 @@ "array_dims": 0 }, { - "name": "blks_hit", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -31642,24 +30894,24 @@ "array_dims": 0 }, { - "name": "blks_read", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31668,24 +30920,24 @@ "array_dims": 0 }, { - "name": "blks_written", + "name": "index_relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -31694,24 +30946,24 @@ "array_dims": 0 }, { - "name": "blks_exists", + "name": "command", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31720,24 +30972,24 @@ "array_dims": 0 }, { - "name": "flushes", + "name": "phase", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -31746,7 +30998,7 @@ "array_dims": 0 }, { - "name": "truncates", + "name": "lockers_total", "not_null": false, "is_array": false, "comment": "", @@ -31757,7 +31009,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { @@ -31772,7 +31024,7 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "lockers_done", "not_null": false, "is_array": false, "comment": "", @@ -31783,49 +31035,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_slru" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_ssl" - }, - "columns": [ + }, { - "name": "pid", + "name": "current_locker_pid", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31834,24 +31076,24 @@ "array_dims": 0 }, { - "name": "ssl", + "name": "blocks_total", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31860,50 +31102,24 @@ "array_dims": 0 }, { - "name": "version", + "name": "blocks_done", "not_null": false, "is_array": false, "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_ssl" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "cipher", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31912,24 +31128,24 @@ "array_dims": 0 }, { - "name": "bits", + "name": "tuples_total", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31938,24 +31154,24 @@ "array_dims": 0 }, { - "name": "client_dn", + "name": "tuples_done", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31964,24 +31180,24 @@ "array_dims": 0 }, { - "name": "client_serial", + "name": "partitions_total", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "numeric" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -31990,24 +31206,24 @@ "array_dims": 0 }, { - "name": "issuer_dn", + "name": "partitions_done", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_ssl" + "name": "pg_stat_progress_create_index" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32022,11 +31238,11 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "columns": [ { - "name": "subid", + "name": "pid", "not_null": false, "is_array": false, "comment": "", @@ -32037,13 +31253,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -32052,24 +31268,24 @@ "array_dims": 0 }, { - "name": "subname", + "name": "datid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -32078,24 +31294,24 @@ "array_dims": 0 }, { - "name": "pid", + "name": "datname", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -32115,7 +31331,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { @@ -32130,24 +31346,24 @@ "array_dims": 0 }, { - "name": "received_lsn", + "name": "phase", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -32156,7 +31372,7 @@ "array_dims": 0 }, { - "name": "last_msg_send_time", + "name": "heap_blks_total", "not_null": false, "is_array": false, "comment": "", @@ -32167,13 +31383,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32182,7 +31398,7 @@ "array_dims": 0 }, { - "name": "last_msg_receipt_time", + "name": "heap_blks_scanned", "not_null": false, "is_array": false, "comment": "", @@ -32193,13 +31409,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32208,7 +31424,7 @@ "array_dims": 0 }, { - "name": "latest_end_lsn", + "name": "heap_blks_vacuumed", "not_null": false, "is_array": false, "comment": "", @@ -32219,13 +31435,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32234,7 +31450,7 @@ "array_dims": 0 }, { - "name": "latest_end_time", + "name": "index_vacuum_count", "not_null": false, "is_array": false, "comment": "", @@ -32245,49 +31461,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" - }, - "columns": [ + }, { - "name": "subid", + "name": "max_dead_tuples", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32296,33 +31502,43 @@ "array_dims": 0 }, { - "name": "subname", + "name": "num_dead_tuples", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" + "name": "pg_stat_progress_vacuum" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_recovery_prefetch" + }, + "columns": [ { - "name": "apply_error_count", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", @@ -32333,13 +31549,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -32348,7 +31564,7 @@ "array_dims": 0 }, { - "name": "sync_error_count", + "name": "prefetch", "not_null": false, "is_array": false, "comment": "", @@ -32359,7 +31575,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { @@ -32374,7 +31590,7 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "hit", "not_null": false, "is_array": false, "comment": "", @@ -32385,49 +31601,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_subscription_stats" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" - }, - "columns": [ + }, { - "name": "relid", + "name": "skip_init", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32436,24 +31642,24 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "skip_new", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32462,24 +31668,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "skip_fpw", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32488,24 +31694,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "skip_rep", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -32514,24 +31720,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "wal_distance", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -32540,24 +31746,24 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "block_distance", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -32566,69 +31772,69 @@ "array_dims": 0 }, { - "name": "idx_tup_read", + "name": "io_depth", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_recovery_prefetch" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_replication" + }, + "columns": [ { - "name": "idx_tup_fetch", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_indexes" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_sys_tables" - }, - "columns": [ + }, { - "name": "relid", + "name": "usesysid", "not_null": false, "is_array": false, "comment": "", @@ -32639,7 +31845,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { @@ -32654,7 +31860,7 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "usename", "not_null": false, "is_array": false, "comment": "", @@ -32665,7 +31871,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { @@ -32680,24 +31886,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "application_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -32706,24 +31912,24 @@ "array_dims": 0 }, { - "name": "seq_scan", + "name": "client_addr", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "inet" }, "is_sqlc_slice": false, "embed_table": null, @@ -32732,24 +31938,24 @@ "array_dims": 0 }, { - "name": "seq_tup_read", + "name": "client_hostname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -32758,24 +31964,24 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "client_port", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -32784,7 +31990,7 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", + "name": "backend_start", "not_null": false, "is_array": false, "comment": "", @@ -32795,13 +32001,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -32810,24 +32016,24 @@ "array_dims": 0 }, { - "name": "n_tup_ins", + "name": "backend_xmin", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -32836,24 +32042,24 @@ "array_dims": 0 }, { - "name": "n_tup_upd", + "name": "state", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -32862,7 +32068,7 @@ "array_dims": 0 }, { - "name": "n_tup_del", + "name": "sent_lsn", "not_null": false, "is_array": false, "comment": "", @@ -32873,13 +32079,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -32888,7 +32094,7 @@ "array_dims": 0 }, { - "name": "n_tup_hot_upd", + "name": "write_lsn", "not_null": false, "is_array": false, "comment": "", @@ -32899,13 +32105,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -32914,7 +32120,7 @@ "array_dims": 0 }, { - "name": "n_live_tup", + "name": "flush_lsn", "not_null": false, "is_array": false, "comment": "", @@ -32925,13 +32131,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -32940,7 +32146,7 @@ "array_dims": 0 }, { - "name": "n_dead_tup", + "name": "replay_lsn", "not_null": false, "is_array": false, "comment": "", @@ -32951,13 +32157,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -32966,24 +32172,24 @@ "array_dims": 0 }, { - "name": "n_mod_since_analyze", + "name": "write_lag", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 16, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "interval" }, "is_sqlc_slice": false, "embed_table": null, @@ -32992,24 +32198,24 @@ "array_dims": 0 }, { - "name": "n_ins_since_vacuum", + "name": "flush_lag", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 16, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "interval" }, "is_sqlc_slice": false, "embed_table": null, @@ -33018,24 +32224,24 @@ "array_dims": 0 }, { - "name": "last_vacuum", + "name": "replay_lag", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 16, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "interval" }, "is_sqlc_slice": false, "embed_table": null, @@ -33044,24 +32250,24 @@ "array_dims": 0 }, { - "name": "last_autovacuum", + "name": "sync_priority", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -33070,24 +32276,24 @@ "array_dims": 0 }, { - "name": "last_analyze", + "name": "sync_state", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33096,7 +32302,7 @@ "array_dims": 0 }, { - "name": "last_autoanalyze", + "name": "reply_time", "not_null": false, "is_array": false, "comment": "", @@ -33107,7 +32313,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication" }, "table_alias": "", "type": { @@ -33120,26 +32326,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_replication_slots" + }, + "columns": [ { - "name": "vacuum_count", + "name": "slot_name", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33148,7 +32364,7 @@ "array_dims": 0 }, { - "name": "autovacuum_count", + "name": "spill_txns", "not_null": false, "is_array": false, "comment": "", @@ -33159,7 +32375,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { @@ -33174,7 +32390,7 @@ "array_dims": 0 }, { - "name": "analyze_count", + "name": "spill_count", "not_null": false, "is_array": false, "comment": "", @@ -33185,7 +32401,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { @@ -33200,7 +32416,7 @@ "array_dims": 0 }, { - "name": "autoanalyze_count", + "name": "spill_bytes", "not_null": false, "is_array": false, "comment": "", @@ -33211,7 +32427,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_sys_tables" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { @@ -33224,36 +32440,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_user_functions" - }, - "columns": [ + }, { - "name": "funcid", + "name": "stream_txns", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33262,24 +32468,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "stream_count", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33288,24 +32494,24 @@ "array_dims": 0 }, { - "name": "funcname", + "name": "stream_bytes", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33314,7 +32520,7 @@ "array_dims": 0 }, { - "name": "calls", + "name": "total_txns", "not_null": false, "is_array": false, "comment": "", @@ -33325,7 +32531,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { @@ -33340,7 +32546,7 @@ "array_dims": 0 }, { - "name": "total_time", + "name": "total_bytes", "not_null": false, "is_array": false, "comment": "", @@ -33351,13 +32557,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33366,7 +32572,7 @@ "array_dims": 0 }, { - "name": "self_time", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", @@ -33377,13 +32583,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_functions" + "name": "pg_stat_replication_slots" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -33398,28 +32604,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "columns": [ { - "name": "relid", + "name": "name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33428,24 +32634,24 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "blks_zeroed", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33454,24 +32660,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33480,24 +32686,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "blks_read", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33506,24 +32712,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "blks_written", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -33532,7 +32738,7 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "blks_exists", "not_null": false, "is_array": false, "comment": "", @@ -33543,7 +32749,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { @@ -33558,7 +32764,7 @@ "array_dims": 0 }, { - "name": "idx_tup_read", + "name": "flushes", "not_null": false, "is_array": false, "comment": "", @@ -33569,7 +32775,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { @@ -33584,7 +32790,7 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", + "name": "truncates", "not_null": false, "is_array": false, "comment": "", @@ -33595,7 +32801,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_indexes" + "name": "pg_stat_slru" }, "table_alias": "", "type": { @@ -33608,62 +32814,62 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_user_tables" - }, - "columns": [ + }, { - "name": "relid", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_slru" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_ssl" + }, + "columns": [ { - "name": "schemaname", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -33672,24 +32878,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "ssl", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -33698,24 +32904,24 @@ "array_dims": 0 }, { - "name": "seq_scan", + "name": "version", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33724,24 +32930,24 @@ "array_dims": 0 }, { - "name": "seq_tup_read", + "name": "cipher", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33750,24 +32956,24 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "bits", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -33776,24 +32982,24 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", + "name": "client_dn", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -33802,24 +33008,24 @@ "array_dims": 0 }, { - "name": "n_tup_ins", + "name": "client_serial", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "numeric" }, "is_sqlc_slice": false, "embed_table": null, @@ -33828,50 +33034,60 @@ "array_dims": 0 }, { - "name": "n_tup_upd", + "name": "issuer_dn", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_ssl" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_subscription" + }, + "columns": [ { - "name": "n_tup_del", + "name": "subid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -33880,24 +33096,24 @@ "array_dims": 0 }, { - "name": "n_tup_hot_upd", + "name": "subname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -33906,24 +33122,24 @@ "array_dims": 0 }, { - "name": "n_live_tup", + "name": "pid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -33932,24 +33148,24 @@ "array_dims": 0 }, { - "name": "n_dead_tup", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -33958,7 +33174,7 @@ "array_dims": 0 }, { - "name": "n_mod_since_analyze", + "name": "received_lsn", "not_null": false, "is_array": false, "comment": "", @@ -33969,13 +33185,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -33984,7 +33200,7 @@ "array_dims": 0 }, { - "name": "n_ins_since_vacuum", + "name": "last_msg_send_time", "not_null": false, "is_array": false, "comment": "", @@ -33995,13 +33211,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34010,7 +33226,7 @@ "array_dims": 0 }, { - "name": "last_vacuum", + "name": "last_msg_receipt_time", "not_null": false, "is_array": false, "comment": "", @@ -34021,7 +33237,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { @@ -34036,7 +33252,7 @@ "array_dims": 0 }, { - "name": "last_autovacuum", + "name": "latest_end_lsn", "not_null": false, "is_array": false, "comment": "", @@ -34047,13 +33263,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -34062,7 +33278,7 @@ "array_dims": 0 }, { - "name": "last_analyze", + "name": "latest_end_time", "not_null": false, "is_array": false, "comment": "", @@ -34073,7 +33289,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription" }, "table_alias": "", "type": { @@ -34086,26 +33302,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_subscription_stats" + }, + "columns": [ { - "name": "last_autoanalyze", + "name": "subid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -34114,24 +33340,24 @@ "array_dims": 0 }, { - "name": "vacuum_count", + "name": "subname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34140,7 +33366,7 @@ "array_dims": 0 }, { - "name": "autovacuum_count", + "name": "apply_error_count", "not_null": false, "is_array": false, "comment": "", @@ -34151,7 +33377,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription_stats" }, "table_alias": "", "type": { @@ -34166,7 +33392,7 @@ "array_dims": 0 }, { - "name": "analyze_count", + "name": "sync_error_count", "not_null": false, "is_array": false, "comment": "", @@ -34177,7 +33403,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription_stats" }, "table_alias": "", "type": { @@ -34192,7 +33418,7 @@ "array_dims": 0 }, { - "name": "autoanalyze_count", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", @@ -34203,13 +33429,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_user_tables" + "name": "pg_stat_subscription_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34224,28 +33450,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "columns": [ { - "name": "wal_records", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -34254,24 +33480,24 @@ "array_dims": 0 }, { - "name": "wal_fpi", + "name": "indexrelid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -34280,24 +33506,24 @@ "array_dims": 0 }, { - "name": "wal_bytes", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "numeric" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34306,24 +33532,24 @@ "array_dims": 0 }, { - "name": "wal_buffers_full", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34332,24 +33558,24 @@ "array_dims": 0 }, { - "name": "wal_write", + "name": "indexrelname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34358,7 +33584,7 @@ "array_dims": 0 }, { - "name": "wal_sync", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -34369,7 +33595,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { @@ -34384,33 +33610,7 @@ "array_dims": 0 }, { - "name": "wal_write_time", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_wal" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "float8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "wal_sync_time", + "name": "idx_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -34421,13 +33621,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34436,7 +33636,7 @@ "array_dims": 0 }, { - "name": "stats_reset", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", @@ -34447,13 +33647,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal" + "name": "pg_stat_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34468,11 +33668,11 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "columns": [ { - "name": "pid", + "name": "relid", "not_null": false, "is_array": false, "comment": "", @@ -34483,13 +33683,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -34498,24 +33698,24 @@ "array_dims": 0 }, { - "name": "status", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34524,24 +33724,24 @@ "array_dims": 0 }, { - "name": "receive_start_lsn", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -34550,24 +33750,24 @@ "array_dims": 0 }, { - "name": "receive_start_tli", + "name": "seq_scan", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34576,7 +33776,7 @@ "array_dims": 0 }, { - "name": "written_lsn", + "name": "seq_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -34587,13 +33787,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34602,7 +33802,7 @@ "array_dims": 0 }, { - "name": "flushed_lsn", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -34613,13 +33813,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34628,24 +33828,24 @@ "array_dims": 0 }, { - "name": "received_tli", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34654,7 +33854,7 @@ "array_dims": 0 }, { - "name": "last_msg_send_time", + "name": "n_tup_ins", "not_null": false, "is_array": false, "comment": "", @@ -34665,13 +33865,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34680,7 +33880,7 @@ "array_dims": 0 }, { - "name": "last_msg_receipt_time", + "name": "n_tup_upd", "not_null": false, "is_array": false, "comment": "", @@ -34691,13 +33891,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34706,7 +33906,7 @@ "array_dims": 0 }, { - "name": "latest_end_lsn", + "name": "n_tup_del", "not_null": false, "is_array": false, "comment": "", @@ -34717,13 +33917,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34732,7 +33932,7 @@ "array_dims": 0 }, { - "name": "latest_end_time", + "name": "n_tup_hot_upd", "not_null": false, "is_array": false, "comment": "", @@ -34743,13 +33943,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34758,24 +33958,24 @@ "array_dims": 0 }, { - "name": "slot_name", + "name": "n_live_tup", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34784,24 +33984,24 @@ "array_dims": 0 }, { - "name": "sender_host", + "name": "n_dead_tup", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34810,24 +34010,24 @@ "array_dims": 0 }, { - "name": "sender_port", + "name": "n_mod_since_analyze", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -34836,60 +34036,50 @@ "array_dims": 0 }, { - "name": "conninfo", + "name": "n_ins_since_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_wal_receiver" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" - }, - "columns": [ + }, { - "name": "relid", + "name": "last_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34898,24 +34088,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "last_autovacuum", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34924,24 +34114,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "last_analyze", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34950,7 +34140,7 @@ "array_dims": 0 }, { - "name": "seq_scan", + "name": "last_autoanalyze", "not_null": false, "is_array": false, "comment": "", @@ -34961,13 +34151,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -34976,7 +34166,7 @@ "array_dims": 0 }, { - "name": "seq_tup_read", + "name": "vacuum_count", "not_null": false, "is_array": false, "comment": "", @@ -34987,7 +34177,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { @@ -35002,7 +34192,7 @@ "array_dims": 0 }, { - "name": "idx_scan", + "name": "autovacuum_count", "not_null": false, "is_array": false, "comment": "", @@ -35013,7 +34203,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { @@ -35028,7 +34218,7 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", + "name": "analyze_count", "not_null": false, "is_array": false, "comment": "", @@ -35039,7 +34229,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { @@ -35054,7 +34244,7 @@ "array_dims": 0 }, { - "name": "n_tup_ins", + "name": "autoanalyze_count", "not_null": false, "is_array": false, "comment": "", @@ -35065,7 +34255,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_sys_tables" }, "table_alias": "", "type": { @@ -35078,114 +34268,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_user_functions" + }, + "columns": [ { - "name": "n_tup_upd", + "name": "funcid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "n_tup_del", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "n_tup_hot_upd", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_all_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" - }, - "columns": [ - { - "name": "relid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -35205,7 +34317,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { @@ -35220,7 +34332,7 @@ "array_dims": 0 }, { - "name": "relname", + "name": "funcname", "not_null": false, "is_array": false, "comment": "", @@ -35231,7 +34343,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { @@ -35246,59 +34358,7 @@ "array_dims": 0 }, { - "name": "seq_scan", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "seq_tup_read", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "idx_scan", + "name": "calls", "not_null": false, "is_array": false, "comment": "", @@ -35309,7 +34369,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { @@ -35324,7 +34384,7 @@ "array_dims": 0 }, { - "name": "idx_tup_fetch", + "name": "total_time", "not_null": false, "is_array": false, "comment": "", @@ -35335,13 +34395,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -35350,7 +34410,7 @@ "array_dims": 0 }, { - "name": "n_tup_ins", + "name": "self_time", "not_null": false, "is_array": false, "comment": "", @@ -35361,39 +34421,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_functions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_user_indexes" + }, + "columns": [ { - "name": "n_tup_upd", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -35402,24 +34472,24 @@ "array_dims": 0 }, { - "name": "n_tup_del", + "name": "indexrelid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -35428,60 +34498,24 @@ "array_dims": 0 }, { - "name": "n_tup_hot_upd", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_sys_tables" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "int8" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" - }, - "columns": [ - { - "name": "funcid", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -35490,7 +34524,7 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "relname", "not_null": false, "is_array": false, "comment": "", @@ -35501,7 +34535,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { @@ -35516,7 +34550,7 @@ "array_dims": 0 }, { - "name": "funcname", + "name": "indexrelname", "not_null": false, "is_array": false, "comment": "", @@ -35527,7 +34561,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { @@ -35542,7 +34576,7 @@ "array_dims": 0 }, { - "name": "calls", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -35553,7 +34587,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { @@ -35568,7 +34602,7 @@ "array_dims": 0 }, { - "name": "total_time", + "name": "idx_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -35579,13 +34613,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -35594,7 +34628,7 @@ "array_dims": 0 }, { - "name": "self_time", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", @@ -35605,13 +34639,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_functions" + "name": "pg_stat_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float8" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -35626,7 +34660,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "columns": [ { @@ -35641,7 +34675,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35667,7 +34701,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35693,7 +34727,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35719,7 +34753,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35745,7 +34779,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35771,7 +34805,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35797,7 +34831,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35823,7 +34857,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35849,7 +34883,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35875,7 +34909,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35901,7 +34935,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stat_xact_user_tables" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -35914,36 +34948,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_all_indexes" - }, - "columns": [ + }, { - "name": "relid", + "name": "n_live_tup", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -35952,24 +34976,24 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "n_dead_tup", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -35978,24 +35002,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "n_mod_since_analyze", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36004,24 +35028,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "n_ins_since_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36030,24 +35054,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "last_vacuum", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36056,7 +35080,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "last_autovacuum", "not_null": false, "is_array": false, "comment": "", @@ -36067,13 +35091,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36082,7 +35106,7 @@ "array_dims": 0 }, { - "name": "idx_blks_hit", + "name": "last_analyze", "not_null": false, "is_array": false, "comment": "", @@ -36093,49 +35117,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_indexes" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_all_sequences" - }, - "columns": [ + }, { - "name": "relid", + "name": "last_autoanalyze", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_sequences" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36144,24 +35158,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "vacuum_count", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_sequences" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36170,24 +35184,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "autovacuum_count", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_sequences" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36196,7 +35210,7 @@ "array_dims": 0 }, { - "name": "blks_read", + "name": "analyze_count", "not_null": false, "is_array": false, "comment": "", @@ -36207,7 +35221,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_sequences" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -36222,7 +35236,7 @@ "array_dims": 0 }, { - "name": "blks_hit", + "name": "autoanalyze_count", "not_null": false, "is_array": false, "comment": "", @@ -36233,7 +35247,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_sequences" + "name": "pg_stat_user_tables" }, "table_alias": "", "type": { @@ -36254,28 +35268,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "columns": [ { - "name": "relid", + "name": "wal_records", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36284,24 +35298,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "wal_fpi", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36310,24 +35324,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "wal_bytes", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "numeric" }, "is_sqlc_slice": false, "embed_table": null, @@ -36336,7 +35350,7 @@ "array_dims": 0 }, { - "name": "heap_blks_read", + "name": "wal_buffers_full", "not_null": false, "is_array": false, "comment": "", @@ -36347,7 +35361,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { @@ -36362,7 +35376,7 @@ "array_dims": 0 }, { - "name": "heap_blks_hit", + "name": "wal_write", "not_null": false, "is_array": false, "comment": "", @@ -36373,7 +35387,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { @@ -36388,7 +35402,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "wal_sync", "not_null": false, "is_array": false, "comment": "", @@ -36399,7 +35413,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { @@ -36414,7 +35428,7 @@ "array_dims": 0 }, { - "name": "idx_blks_hit", + "name": "wal_write_time", "not_null": false, "is_array": false, "comment": "", @@ -36425,13 +35439,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36440,7 +35454,7 @@ "array_dims": 0 }, { - "name": "toast_blks_read", + "name": "wal_sync_time", "not_null": false, "is_array": false, "comment": "", @@ -36451,13 +35465,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -36466,7 +35480,7 @@ "array_dims": 0 }, { - "name": "toast_blks_hit", + "name": "stats_reset", "not_null": false, "is_array": false, "comment": "", @@ -36477,13 +35491,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_wal_receiver" + }, + "columns": [ + { + "name": "pid", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_wal_receiver" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -36492,24 +35542,24 @@ "array_dims": 0 }, { - "name": "tidx_blks_read", + "name": "status", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -36518,7 +35568,7 @@ "array_dims": 0 }, { - "name": "tidx_blks_hit", + "name": "receive_start_lsn", "not_null": false, "is_array": false, "comment": "", @@ -36529,32 +35579,22 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_all_tables" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" - }, - "columns": [ + }, { - "name": "relid", + "name": "receive_start_tli", "not_null": false, "is_array": false, "comment": "", @@ -36565,13 +35605,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -36580,24 +35620,24 @@ "array_dims": 0 }, { - "name": "indexrelid", + "name": "written_lsn", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -36606,24 +35646,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "flushed_lsn", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -36632,24 +35672,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "received_tli", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -36658,24 +35698,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "last_msg_send_time", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36684,7 +35724,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "last_msg_receipt_time", "not_null": false, "is_array": false, "comment": "", @@ -36695,13 +35735,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36710,7 +35750,7 @@ "array_dims": 0 }, { - "name": "idx_blks_hit", + "name": "latest_end_lsn", "not_null": false, "is_array": false, "comment": "", @@ -36721,49 +35761,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_indexes" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" - }, - "columns": [ + }, { - "name": "relid", + "name": "latest_end_time", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -36772,24 +35802,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "slot_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -36798,24 +35828,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "sender_host", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -36824,24 +35854,24 @@ "array_dims": 0 }, { - "name": "blks_read", + "name": "sender_port", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -36850,24 +35880,24 @@ "array_dims": 0 }, { - "name": "blks_hit", + "name": "conninfo", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_sequences" + "name": "pg_stat_wal_receiver" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -36882,7 +35912,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "columns": [ { @@ -36897,7 +35927,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -36923,7 +35953,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -36949,7 +35979,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -36964,7 +35994,7 @@ "array_dims": 0 }, { - "name": "heap_blks_read", + "name": "seq_scan", "not_null": false, "is_array": false, "comment": "", @@ -36975,7 +36005,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -36990,7 +36020,7 @@ "array_dims": 0 }, { - "name": "heap_blks_hit", + "name": "seq_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -37001,7 +36031,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37016,7 +36046,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -37027,7 +36057,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37042,7 +36072,7 @@ "array_dims": 0 }, { - "name": "idx_blks_hit", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", @@ -37053,7 +36083,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37068,7 +36098,7 @@ "array_dims": 0 }, { - "name": "toast_blks_read", + "name": "n_tup_ins", "not_null": false, "is_array": false, "comment": "", @@ -37079,7 +36109,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37094,7 +36124,7 @@ "array_dims": 0 }, { - "name": "toast_blks_hit", + "name": "n_tup_upd", "not_null": false, "is_array": false, "comment": "", @@ -37105,7 +36135,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37120,7 +36150,7 @@ "array_dims": 0 }, { - "name": "tidx_blks_read", + "name": "n_tup_del", "not_null": false, "is_array": false, "comment": "", @@ -37131,7 +36161,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37146,7 +36176,7 @@ "array_dims": 0 }, { - "name": "tidx_blks_hit", + "name": "n_tup_hot_upd", "not_null": false, "is_array": false, "comment": "", @@ -37157,7 +36187,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_sys_tables" + "name": "pg_stat_xact_all_tables" }, "table_alias": "", "type": { @@ -37178,7 +36208,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "columns": [ { @@ -37193,33 +36223,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "oid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "indexrelid", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37245,7 +36249,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37271,7 +36275,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37286,24 +36290,24 @@ "array_dims": 0 }, { - "name": "indexrelname", + "name": "seq_scan", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37312,7 +36316,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "seq_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -37323,7 +36327,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37338,7 +36342,7 @@ "array_dims": 0 }, { - "name": "idx_blks_hit", + "name": "idx_scan", "not_null": false, "is_array": false, "comment": "", @@ -37349,7 +36353,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_indexes" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37362,36 +36366,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statio_user_sequences" - }, - "columns": [ + }, { - "name": "relid", + "name": "idx_tup_fetch", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_sequences" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37400,24 +36394,24 @@ "array_dims": 0 }, { - "name": "schemaname", + "name": "n_tup_ins", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_sequences" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37426,24 +36420,24 @@ "array_dims": 0 }, { - "name": "relname", + "name": "n_tup_upd", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_sequences" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37452,7 +36446,7 @@ "array_dims": 0 }, { - "name": "blks_read", + "name": "n_tup_del", "not_null": false, "is_array": false, "comment": "", @@ -37463,7 +36457,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_sequences" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37478,7 +36472,7 @@ "array_dims": 0 }, { - "name": "blks_hit", + "name": "n_tup_hot_upd", "not_null": false, "is_array": false, "comment": "", @@ -37489,7 +36483,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_sequences" + "name": "pg_stat_xact_sys_tables" }, "table_alias": "", "type": { @@ -37510,11 +36504,11 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "columns": [ { - "name": "relid", + "name": "funcid", "not_null": false, "is_array": false, "comment": "", @@ -37525,7 +36519,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { @@ -37551,7 +36545,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { @@ -37566,7 +36560,7 @@ "array_dims": 0 }, { - "name": "relname", + "name": "funcname", "not_null": false, "is_array": false, "comment": "", @@ -37577,7 +36571,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { @@ -37592,7 +36586,7 @@ "array_dims": 0 }, { - "name": "heap_blks_read", + "name": "calls", "not_null": false, "is_array": false, "comment": "", @@ -37603,7 +36597,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { @@ -37618,7 +36612,7 @@ "array_dims": 0 }, { - "name": "heap_blks_hit", + "name": "total_time", "not_null": false, "is_array": false, "comment": "", @@ -37629,13 +36623,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37644,7 +36638,7 @@ "array_dims": 0 }, { - "name": "idx_blks_read", + "name": "self_time", "not_null": false, "is_array": false, "comment": "", @@ -37655,39 +36649,49 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_functions" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "float8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stat_xact_user_tables" + }, + "columns": [ { - "name": "idx_blks_hit", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -37696,24 +36700,24 @@ "array_dims": 0 }, { - "name": "toast_blks_read", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -37722,24 +36726,24 @@ "array_dims": 0 }, { - "name": "toast_blks_hit", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int8" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -37748,7 +36752,7 @@ "array_dims": 0 }, { - "name": "tidx_blks_read", + "name": "seq_scan", "not_null": false, "is_array": false, "comment": "", @@ -37759,7 +36763,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { @@ -37774,7 +36778,7 @@ "array_dims": 0 }, { - "name": "tidx_blks_hit", + "name": "seq_tup_read", "not_null": false, "is_array": false, "comment": "", @@ -37785,7 +36789,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statio_user_tables" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { @@ -37798,36 +36802,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statistic" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "idx_scan", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37836,24 +36830,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "idx_tup_fetch", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37862,24 +36856,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "n_tup_ins", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37888,24 +36882,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "n_tup_upd", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37914,24 +36908,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "n_tup_del", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -37940,34 +36934,44 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "n_tup_hot_upd", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_stat_xact_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_all_indexes" + }, + "columns": [ { - "name": "starelid", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -37977,7 +36981,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { @@ -37992,24 +36996,24 @@ "array_dims": 0 }, { - "name": "staattnum", - "not_null": true, + "name": "indexrelid", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -38018,24 +37022,24 @@ "array_dims": 0 }, { - "name": "stainherit", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38044,24 +37048,24 @@ "array_dims": 0 }, { - "name": "stanullfrac", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38070,24 +37074,24 @@ "array_dims": 0 }, { - "name": "stawidth", - "not_null": true, + "name": "indexrelname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38096,24 +37100,24 @@ "array_dims": 0 }, { - "name": "stadistinct", - "not_null": true, + "name": "idx_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38122,50 +37126,60 @@ "array_dims": 0 }, { - "name": "stakind1", - "not_null": true, + "name": "idx_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_all_sequences" + }, + "columns": [ { - "name": "stakind2", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -38174,24 +37188,24 @@ "array_dims": 0 }, { - "name": "stakind3", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38200,24 +37214,24 @@ "array_dims": 0 }, { - "name": "stakind4", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38226,24 +37240,24 @@ "array_dims": 0 }, { - "name": "stakind5", - "not_null": true, + "name": "blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 2, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38252,34 +37266,44 @@ "array_dims": 0 }, { - "name": "staop1", - "not_null": true, + "name": "blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_all_tables" + }, + "columns": [ { - "name": "staop2", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -38289,7 +37313,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { @@ -38304,24 +37328,24 @@ "array_dims": 0 }, { - "name": "staop3", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38330,24 +37354,24 @@ "array_dims": 0 }, { - "name": "staop4", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38356,24 +37380,24 @@ "array_dims": 0 }, { - "name": "staop5", - "not_null": true, + "name": "heap_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38382,24 +37406,24 @@ "array_dims": 0 }, { - "name": "stacoll1", - "not_null": true, + "name": "heap_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38408,24 +37432,24 @@ "array_dims": 0 }, { - "name": "stacoll2", - "not_null": true, + "name": "idx_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38434,24 +37458,24 @@ "array_dims": 0 }, { - "name": "stacoll3", - "not_null": true, + "name": "idx_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38460,24 +37484,24 @@ "array_dims": 0 }, { - "name": "stacoll4", - "not_null": true, + "name": "toast_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38486,24 +37510,24 @@ "array_dims": 0 }, { - "name": "stacoll5", - "not_null": true, + "name": "toast_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38512,24 +37536,24 @@ "array_dims": 0 }, { - "name": "stanumbers1", + "name": "tidx_blks_read", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38538,50 +37562,60 @@ "array_dims": 0 }, { - "name": "stanumbers2", + "name": "tidx_blks_hit", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_all_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_sys_indexes" + }, + "columns": [ { - "name": "stanumbers3", + "name": "relid", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -38590,24 +37624,24 @@ "array_dims": 0 }, { - "name": "stanumbers4", + "name": "indexrelid", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -38616,24 +37650,24 @@ "array_dims": 0 }, { - "name": "stanumbers5", + "name": "schemaname", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38642,24 +37676,24 @@ "array_dims": 0 }, { - "name": "stavalues1", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38668,24 +37702,24 @@ "array_dims": 0 }, { - "name": "stavalues2", + "name": "indexrelname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38694,24 +37728,24 @@ "array_dims": 0 }, { - "name": "stavalues3", + "name": "idx_blks_read", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38720,86 +37754,86 @@ "array_dims": 0 }, { - "name": "stavalues4", + "name": "idx_blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_sys_sequences" + }, + "columns": [ { - "name": "stavalues5", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic" + "name": "pg_statio_sys_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_statistic_ext" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38808,24 +37842,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38834,24 +37868,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38860,34 +37894,44 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_sys_tables" + }, + "columns": [ { - "name": "xmin", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -38897,13 +37941,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -38912,24 +37956,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38938,24 +37982,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -38964,24 +38008,24 @@ "array_dims": 0 }, { - "name": "stxrelid", - "not_null": true, + "name": "heap_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -38990,24 +38034,24 @@ "array_dims": 0 }, { - "name": "stxname", - "not_null": true, + "name": "heap_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39016,24 +38060,24 @@ "array_dims": 0 }, { - "name": "stxnamespace", - "not_null": true, + "name": "idx_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39042,24 +38086,24 @@ "array_dims": 0 }, { - "name": "stxowner", - "not_null": true, + "name": "idx_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39068,24 +38112,24 @@ "array_dims": 0 }, { - "name": "stxstattarget", - "not_null": true, + "name": "toast_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39094,24 +38138,24 @@ "array_dims": 0 }, { - "name": "stxkeys", - "not_null": true, - "is_array": true, + "name": "toast_blks_hit", + "not_null": false, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2vector" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39120,24 +38164,24 @@ "array_dims": 0 }, { - "name": "stxkind", - "not_null": true, - "is_array": true, + "name": "tidx_blks_read", + "not_null": false, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_char" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39146,24 +38190,24 @@ "array_dims": 0 }, { - "name": "stxexprs", + "name": "tidx_blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext" + "name": "pg_statio_sys_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39178,12 +38222,12 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "columns": [ { - "name": "tableoid", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -39193,7 +38237,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { @@ -39208,8 +38252,8 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "indexrelid", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -39219,13 +38263,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39234,24 +38278,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -39260,24 +38304,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "relname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -39286,24 +38330,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "indexrelname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -39312,24 +38356,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "idx_blks_read", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39338,50 +38382,60 @@ "array_dims": 0 }, { - "name": "stxoid", - "not_null": true, + "name": "idx_blks_hit", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_indexes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statio_user_sequences" + }, + "columns": [ { - "name": "stxdinherit", - "not_null": true, + "name": "relid", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39390,24 +38444,24 @@ "array_dims": 0 }, { - "name": "stxdndistinct", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_ndistinct" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -39416,24 +38470,24 @@ "array_dims": 0 }, { - "name": "stxddependencies", + "name": "relname", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_dependencies" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -39442,24 +38496,24 @@ "array_dims": 0 }, { - "name": "stxdmcv", + "name": "blks_read", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_mcv_list" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39468,24 +38522,24 @@ "array_dims": 0 }, { - "name": "stxdexpr", + "name": "blks_hit", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_statistic_ext_data" + "name": "pg_statio_user_sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_pg_statistic" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39500,28 +38554,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "columns": [ { - "name": "schemaname", + "name": "relid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39530,7 +38584,7 @@ "array_dims": 0 }, { - "name": "tablename", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", @@ -39541,7 +38595,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { @@ -39556,7 +38610,7 @@ "array_dims": 0 }, { - "name": "attname", + "name": "relname", "not_null": false, "is_array": false, "comment": "", @@ -39567,7 +38621,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { @@ -39582,24 +38636,24 @@ "array_dims": 0 }, { - "name": "inherited", + "name": "heap_blks_read", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39608,24 +38662,24 @@ "array_dims": 0 }, { - "name": "null_frac", + "name": "heap_blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39634,24 +38688,24 @@ "array_dims": 0 }, { - "name": "avg_width", + "name": "idx_blks_read", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39660,24 +38714,24 @@ "array_dims": 0 }, { - "name": "n_distinct", + "name": "idx_blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39686,24 +38740,24 @@ "array_dims": 0 }, { - "name": "most_common_vals", + "name": "toast_blks_read", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39712,24 +38766,24 @@ "array_dims": 0 }, { - "name": "most_common_freqs", + "name": "toast_blks_hit", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39738,24 +38792,24 @@ "array_dims": 0 }, { - "name": "histogram_bounds", + "name": "tidx_blks_read", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, @@ -39764,50 +38818,60 @@ "array_dims": 0 }, { - "name": "correlation", + "name": "tidx_blks_hit", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statio_user_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "int8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statistic" + }, + "columns": [ { - "name": "most_common_elems", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39816,24 +38880,24 @@ "array_dims": 0 }, { - "name": "most_common_elem_freqs", - "not_null": false, - "is_array": true, + "name": "cmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39842,60 +38906,50 @@ "array_dims": 0 }, { - "name": "elem_count_histogram", - "not_null": false, - "is_array": true, + "name": "xmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stats_ext" - }, - "columns": [ + }, { - "name": "schemaname", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39904,24 +38958,24 @@ "array_dims": 0 }, { - "name": "tablename", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39930,24 +38984,24 @@ "array_dims": 0 }, { - "name": "statistics_schemaname", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39956,24 +39010,24 @@ "array_dims": 0 }, { - "name": "statistics_name", - "not_null": false, + "name": "starelid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -39982,24 +39036,24 @@ "array_dims": 0 }, { - "name": "statistics_owner", - "not_null": false, + "name": "staattnum", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40008,24 +39062,24 @@ "array_dims": 0 }, { - "name": "attnames", - "not_null": false, - "is_array": true, + "name": "stainherit", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -40034,24 +39088,24 @@ "array_dims": 0 }, { - "name": "exprs", - "not_null": false, - "is_array": true, + "name": "stanullfrac", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -40060,24 +39114,24 @@ "array_dims": 0 }, { - "name": "kinds", - "not_null": false, - "is_array": true, + "name": "stawidth", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_char" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -40086,24 +39140,24 @@ "array_dims": 0 }, { - "name": "inherited", - "not_null": false, + "name": "stadistinct", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -40112,24 +39166,24 @@ "array_dims": 0 }, { - "name": "n_distinct", - "not_null": false, + "name": "stakind1", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_ndistinct" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40138,24 +39192,24 @@ "array_dims": 0 }, { - "name": "dependencies", - "not_null": false, + "name": "stakind2", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_dependencies" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40164,24 +39218,24 @@ "array_dims": 0 }, { - "name": "most_common_vals", - "not_null": false, - "is_array": true, + "name": "stakind3", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40190,24 +39244,24 @@ "array_dims": 0 }, { - "name": "most_common_val_nulls", - "not_null": false, - "is_array": true, + "name": "stakind4", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_bool" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40216,24 +39270,24 @@ "array_dims": 0 }, { - "name": "most_common_freqs", - "not_null": false, - "is_array": true, + "name": "stakind5", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float8" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -40242,60 +39296,50 @@ "array_dims": 0 }, { - "name": "most_common_base_freqs", - "not_null": false, - "is_array": true, + "name": "staop1", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float8" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" - }, - "columns": [ + }, { - "name": "schemaname", - "not_null": false, + "name": "staop2", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40304,24 +39348,24 @@ "array_dims": 0 }, { - "name": "tablename", - "not_null": false, + "name": "staop3", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40330,24 +39374,24 @@ "array_dims": 0 }, { - "name": "statistics_schemaname", - "not_null": false, + "name": "staop4", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40356,24 +39400,24 @@ "array_dims": 0 }, { - "name": "statistics_name", - "not_null": false, + "name": "staop5", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40382,24 +39426,24 @@ "array_dims": 0 }, { - "name": "statistics_owner", - "not_null": false, + "name": "stacoll1", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40408,24 +39452,24 @@ "array_dims": 0 }, { - "name": "expr", - "not_null": false, + "name": "stacoll2", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40434,24 +39478,24 @@ "array_dims": 0 }, { - "name": "inherited", - "not_null": false, + "name": "stacoll3", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40460,8 +39504,8 @@ "array_dims": 0 }, { - "name": "null_frac", - "not_null": false, + "name": "stacoll4", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -40471,13 +39515,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40486,8 +39530,8 @@ "array_dims": 0 }, { - "name": "avg_width", - "not_null": false, + "name": "stacoll5", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -40497,13 +39541,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -40512,24 +39556,24 @@ "array_dims": 0 }, { - "name": "n_distinct", + "name": "stanumbers1", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -40538,9 +39582,9 @@ "array_dims": 0 }, { - "name": "most_common_vals", + "name": "stanumbers2", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -40549,13 +39593,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "anyarray" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -40564,7 +39608,7 @@ "array_dims": 0 }, { - "name": "most_common_freqs", + "name": "stanumbers3", "not_null": false, "is_array": true, "comment": "", @@ -40575,7 +39619,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { @@ -40590,7 +39634,59 @@ "array_dims": 0 }, { - "name": "histogram_bounds", + "name": "stanumbers4", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statistic" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_float4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "stanumbers5", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statistic" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_float4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "stavalues1", "not_null": false, "is_array": false, "comment": "", @@ -40601,7 +39697,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { @@ -40616,24 +39712,24 @@ "array_dims": 0 }, { - "name": "correlation", + "name": "stavalues2", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "float4" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -40642,7 +39738,7 @@ "array_dims": 0 }, { - "name": "most_common_elems", + "name": "stavalues3", "not_null": false, "is_array": false, "comment": "", @@ -40653,7 +39749,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { @@ -40668,9 +39764,9 @@ "array_dims": 0 }, { - "name": "most_common_elem_freqs", + "name": "stavalues4", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -40679,13 +39775,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -40694,9 +39790,9 @@ "array_dims": 0 }, { - "name": "elem_count_histogram", + "name": "stavalues5", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -40705,13 +39801,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_stats_ext_exprs" + "name": "pg_statistic" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_float4" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -40726,7 +39822,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "columns": [ { @@ -40741,7 +39837,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40767,7 +39863,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40793,7 +39889,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40819,7 +39915,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40845,7 +39941,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40871,7 +39967,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40897,7 +39993,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40912,7 +40008,7 @@ "array_dims": 0 }, { - "name": "subdbid", + "name": "stxrelid", "not_null": true, "is_array": false, "comment": "", @@ -40923,7 +40019,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40938,33 +40034,7 @@ "array_dims": 0 }, { - "name": "subskiplsn", - "not_null": true, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_subscription" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_lsn" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "subname", + "name": "stxname", "not_null": true, "is_array": false, "comment": "", @@ -40975,7 +40045,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -40990,7 +40060,7 @@ "array_dims": 0 }, { - "name": "subowner", + "name": "stxnamespace", "not_null": true, "is_array": false, "comment": "", @@ -41001,7 +40071,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { @@ -41016,76 +40086,24 @@ "array_dims": 0 }, { - "name": "subenabled", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_subscription" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "subbinary", - "not_null": true, - "is_array": false, - "comment": "", - "length": 1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_subscription" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "substream", + "name": "stxowner", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -41094,24 +40112,24 @@ "array_dims": 0 }, { - "name": "subtwophasestate", + "name": "stxstattarget", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41120,24 +40138,24 @@ "array_dims": 0 }, { - "name": "subdisableonerr", + "name": "stxkeys", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, @@ -41146,9 +40164,9 @@ "array_dims": 0 }, { - "name": "subconninfo", + "name": "stxkind", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -41157,13 +40175,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_char" }, "is_sqlc_slice": false, "embed_table": null, @@ -41172,50 +40190,60 @@ "array_dims": 0 }, { - "name": "subslotname", + "name": "stxexprs", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_statistic_ext_data" + }, + "columns": [ { - "name": "subsynccommit", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -41224,43 +40252,33 @@ "array_dims": 0 }, { - "name": "subpublications", + "name": "cmax", "not_null": true, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_subscription_rel" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -41271,13 +40289,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -41286,7 +40304,7 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -41297,7 +40315,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { @@ -41312,7 +40330,7 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -41323,7 +40341,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { @@ -41338,24 +40356,24 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -41364,7 +40382,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "stxoid", "not_null": true, "is_array": false, "comment": "", @@ -41375,13 +40393,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -41390,24 +40408,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "stxdinherit", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -41416,24 +40434,24 @@ "array_dims": 0 }, { - "name": "srsubid", - "not_null": true, + "name": "stxdndistinct", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "pg_ndistinct" }, "is_sqlc_slice": false, "embed_table": null, @@ -41442,24 +40460,24 @@ "array_dims": 0 }, { - "name": "srrelid", - "not_null": true, + "name": "stxddependencies", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "pg_dependencies" }, "is_sqlc_slice": false, "embed_table": null, @@ -41468,24 +40486,24 @@ "array_dims": 0 }, { - "name": "srsubstate", - "not_null": true, + "name": "stxdmcv", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "pg_mcv_list" }, "is_sqlc_slice": false, "embed_table": null, @@ -41494,24 +40512,24 @@ "array_dims": 0 }, { - "name": "srsublsn", + "name": "stxdexpr", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 8, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_subscription_rel" + "name": "pg_statistic_ext_data" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_lsn" + "name": "_pg_statistic" }, "is_sqlc_slice": false, "embed_table": null, @@ -41526,7 +40544,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "columns": [ { @@ -41541,7 +40559,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { @@ -41567,7 +40585,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { @@ -41582,7 +40600,7 @@ "array_dims": 0 }, { - "name": "tableowner", + "name": "attname", "not_null": false, "is_array": false, "comment": "", @@ -41593,7 +40611,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { @@ -41608,24 +40626,24 @@ "array_dims": 0 }, { - "name": "tablespace", + "name": "inherited", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -41634,24 +40652,24 @@ "array_dims": 0 }, { - "name": "hasindexes", + "name": "null_frac", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41660,24 +40678,24 @@ "array_dims": 0 }, { - "name": "hasrules", + "name": "avg_width", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41686,24 +40704,24 @@ "array_dims": 0 }, { - "name": "hastriggers", + "name": "n_distinct", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41712,60 +40730,50 @@ "array_dims": 0 }, { - "name": "rowsecurity", + "name": "most_common_vals", "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tables" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_tablespace" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, - "is_array": false, + "name": "most_common_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41774,24 +40782,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "histogram_bounds", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -41800,8 +40808,8 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "correlation", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -41811,13 +40819,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41826,24 +40834,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "most_common_elems", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -41852,24 +40860,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, - "is_array": false, + "name": "most_common_elem_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -41878,50 +40886,60 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, - "is_array": false, + "name": "elem_count_histogram", + "not_null": false, + "is_array": true, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stats_ext" + }, + "columns": [ { - "name": "oid", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -41930,8 +40948,8 @@ "array_dims": 0 }, { - "name": "spcname", - "not_null": true, + "name": "tablename", + "not_null": false, "is_array": false, "comment": "", "length": 64, @@ -41941,7 +40959,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats_ext" }, "table_alias": "", "type": { @@ -41956,24 +40974,24 @@ "array_dims": 0 }, { - "name": "spcowner", - "not_null": true, + "name": "statistics_schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -41982,24 +41000,24 @@ "array_dims": 0 }, { - "name": "spcacl", + "name": "statistics_name", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42008,45 +41026,35 @@ "array_dims": 0 }, { - "name": "spcoptions", + "name": "statistics_owner", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_tablespace" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_timezone_abbrevs" - }, - "columns": [ + }, { - "name": "abbrev", + "name": "attnames", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -42055,13 +41063,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_abbrevs" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "_name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42070,24 +41078,24 @@ "array_dims": 0 }, { - "name": "utc_offset", + "name": "exprs", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 16, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_abbrevs" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "interval" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -42096,60 +41104,50 @@ "array_dims": 0 }, { - "name": "is_dst", + "name": "kinds", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_abbrevs" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_timezone_names" - }, - "columns": [ + }, { - "name": "name", + "name": "inherited", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_names" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -42158,7 +41156,7 @@ "array_dims": 0 }, { - "name": "abbrev", + "name": "n_distinct", "not_null": false, "is_array": false, "comment": "", @@ -42169,13 +41167,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_names" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "pg_ndistinct" }, "is_sqlc_slice": false, "embed_table": null, @@ -42184,24 +41182,24 @@ "array_dims": 0 }, { - "name": "utc_offset", + "name": "dependencies", "not_null": false, "is_array": false, "comment": "", - "length": 16, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_names" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "interval" + "name": "pg_dependencies" }, "is_sqlc_slice": false, "embed_table": null, @@ -42210,60 +41208,50 @@ "array_dims": 0 }, { - "name": "is_dst", + "name": "most_common_vals", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_timezone_names" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_transform" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, - "is_array": false, + "name": "most_common_val_nulls", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -42272,24 +41260,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, - "is_array": false, + "name": "most_common_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "_float8" }, "is_sqlc_slice": false, "embed_table": null, @@ -42298,50 +41286,60 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, - "is_array": false, + "name": "most_common_base_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "_float8" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_stats_ext_exprs" + }, + "columns": [ { - "name": "cmin", - "not_null": true, + "name": "schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42350,24 +41348,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "tablename", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42376,24 +41374,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "statistics_schemaname", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42402,24 +41400,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "statistics_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42428,24 +41426,24 @@ "array_dims": 0 }, { - "name": "trftype", - "not_null": true, + "name": "statistics_owner", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -42454,24 +41452,24 @@ "array_dims": 0 }, { - "name": "trflang", - "not_null": true, + "name": "expr", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -42480,24 +41478,24 @@ "array_dims": 0 }, { - "name": "trffromsql", - "not_null": true, + "name": "inherited", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -42506,8 +41504,8 @@ "array_dims": 0 }, { - "name": "trftosql", - "not_null": true, + "name": "null_frac", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -42517,33 +41515,23 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_transform" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_trigger" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "avg_width", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -42553,13 +41541,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -42568,8 +41556,8 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "n_distinct", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -42579,13 +41567,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -42594,24 +41582,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "most_common_vals", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -42620,24 +41608,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, - "is_array": false, + "name": "most_common_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -42646,24 +41634,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "histogram_bounds", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -42672,24 +41660,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "correlation", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -42698,24 +41686,24 @@ "array_dims": 0 }, { - "name": "oid", - "not_null": true, + "name": "most_common_elems", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "anyarray" }, "is_sqlc_slice": false, "embed_table": null, @@ -42724,24 +41712,24 @@ "array_dims": 0 }, { - "name": "tgrelid", - "not_null": true, - "is_array": false, + "name": "most_common_elem_freqs", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, @@ -42750,50 +41738,60 @@ "array_dims": 0 }, { - "name": "tgparentid", - "not_null": true, - "is_array": false, + "name": "elem_count_histogram", + "not_null": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_stats_ext_exprs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "_float4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, - { - "name": "tgname", - "not_null": true, - "is_array": false, - "comment": "", - "length": 64, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_subscription" + }, + "columns": [ + { + "name": "tableoid", + "not_null": true, + "is_array": false, + "comment": "", + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42802,7 +41800,7 @@ "array_dims": 0 }, { - "name": "tgfoid", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -42813,13 +41811,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42828,24 +41826,24 @@ "array_dims": 0 }, { - "name": "tgtype", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42854,24 +41852,24 @@ "array_dims": 0 }, { - "name": "tgenabled", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42880,24 +41878,24 @@ "array_dims": 0 }, { - "name": "tgisinternal", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42906,24 +41904,24 @@ "array_dims": 0 }, { - "name": "tgconstrrelid", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -42932,7 +41930,7 @@ "array_dims": 0 }, { - "name": "tgconstrindid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -42943,7 +41941,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { @@ -42958,7 +41956,7 @@ "array_dims": 0 }, { - "name": "tgconstraint", + "name": "subdbid", "not_null": true, "is_array": false, "comment": "", @@ -42969,7 +41967,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { @@ -42984,24 +41982,24 @@ "array_dims": 0 }, { - "name": "tgdeferrable", + "name": "subskiplsn", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_lsn" }, "is_sqlc_slice": false, "embed_table": null, @@ -43010,24 +42008,24 @@ "array_dims": 0 }, { - "name": "tginitdeferred", + "name": "subname", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43036,24 +42034,24 @@ "array_dims": 0 }, { - "name": "tgnargs", + "name": "subowner", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43062,24 +42060,24 @@ "array_dims": 0 }, { - "name": "tgattr", + "name": "subenabled", "not_null": true, - "is_array": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2vector" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43088,24 +42086,24 @@ "array_dims": 0 }, { - "name": "tgargs", + "name": "subbinary", "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bytea" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43114,24 +42112,24 @@ "array_dims": 0 }, { - "name": "tgqual", - "not_null": false, + "name": "substream", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43140,24 +42138,24 @@ "array_dims": 0 }, { - "name": "tgoldtable", - "not_null": false, + "name": "subtwophasestate", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -43166,60 +42164,50 @@ "array_dims": 0 }, { - "name": "tgnewtable", - "not_null": false, + "name": "subdisableonerr", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_trigger" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_ts_config" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "subconninfo", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -43228,24 +42216,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "subslotname", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43254,24 +42242,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "subsynccommit", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -43280,33 +42268,43 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "subpublications", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_subscription_rel" + }, + "columns": [ { - "name": "xmin", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -43317,13 +42315,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43332,24 +42330,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43358,7 +42356,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -43369,13 +42367,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43384,24 +42382,24 @@ "array_dims": 0 }, { - "name": "cfgname", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43410,7 +42408,7 @@ "array_dims": 0 }, { - "name": "cfgnamespace", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -43421,13 +42419,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43436,24 +42434,24 @@ "array_dims": 0 }, { - "name": "cfgowner", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -43462,7 +42460,7 @@ "array_dims": 0 }, { - "name": "cfgparser", + "name": "srsubid", "not_null": true, "is_array": false, "comment": "", @@ -43473,7 +42471,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { @@ -43486,19 +42484,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_ts_config_map" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "srrelid", "not_null": true, "is_array": false, "comment": "", @@ -43509,7 +42497,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { @@ -43524,24 +42512,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "srsubstate", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -43550,24 +42538,60 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "srsublsn", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_subscription_rel" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "pg_lsn" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_tables" + }, + "columns": [ + { + "name": "schemaname", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_tables" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43576,24 +42600,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "tablename", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43602,24 +42626,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "tableowner", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43628,24 +42652,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "tablespace", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -43654,24 +42678,24 @@ "array_dims": 0 }, { - "name": "mapcfg", - "not_null": true, + "name": "hasindexes", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43680,24 +42704,24 @@ "array_dims": 0 }, { - "name": "maptokentype", - "not_null": true, + "name": "hasrules", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43706,24 +42730,24 @@ "array_dims": 0 }, { - "name": "mapseqno", - "not_null": true, + "name": "hastriggers", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int4" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43732,24 +42756,24 @@ "array_dims": 0 }, { - "name": "mapdict", - "not_null": true, + "name": "rowsecurity", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_config_map" + "name": "pg_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -43764,7 +42788,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "columns": [ { @@ -43779,7 +42803,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43805,7 +42829,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43831,7 +42855,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43857,7 +42881,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43883,7 +42907,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43909,7 +42933,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43935,7 +42959,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43950,7 +42974,7 @@ "array_dims": 0 }, { - "name": "dictname", + "name": "spcname", "not_null": true, "is_array": false, "comment": "", @@ -43961,7 +42985,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -43976,7 +43000,7 @@ "array_dims": 0 }, { - "name": "dictnamespace", + "name": "spcowner", "not_null": true, "is_array": false, "comment": "", @@ -43987,7 +43011,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_tablespace" }, "table_alias": "", "type": { @@ -44002,24 +43026,86 @@ "array_dims": 0 }, { - "name": "dictowner", - "not_null": true, + "name": "spcacl", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_tablespace" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_aclitem" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "spcoptions", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_tablespace" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_timezone_abbrevs" + }, + "columns": [ + { + "name": "abbrev", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_timezone_abbrevs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -44028,24 +43114,24 @@ "array_dims": 0 }, { - "name": "dicttemplate", - "not_null": true, + "name": "utc_offset", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 16, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_timezone_abbrevs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "interval" }, "is_sqlc_slice": false, "embed_table": null, @@ -44054,24 +43140,24 @@ "array_dims": 0 }, { - "name": "dictinitoption", + "name": "is_dst", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_dict" + "name": "pg_timezone_abbrevs" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -44086,28 +43172,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_timezone_names" }, "columns": [ { - "name": "tableoid", - "not_null": true, + "name": "name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_timezone_names" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -44116,24 +43202,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "abbrev", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_timezone_names" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -44142,24 +43228,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "utc_offset", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 16, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_timezone_names" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "interval" }, "is_sqlc_slice": false, "embed_table": null, @@ -44168,7 +43254,43 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "is_dst", + "not_null": false, + "is_array": false, + "comment": "", + "length": 1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_timezone_names" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "bool" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_transform" + }, + "columns": [ + { + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -44179,13 +43301,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44194,7 +43316,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -44205,13 +43327,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44220,24 +43342,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44246,7 +43368,7 @@ "array_dims": 0 }, { - "name": "oid", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -44257,13 +43379,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44272,24 +43394,24 @@ "array_dims": 0 }, { - "name": "prsname", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44298,24 +43420,24 @@ "array_dims": 0 }, { - "name": "prsnamespace", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44324,7 +43446,7 @@ "array_dims": 0 }, { - "name": "prsstart", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -44335,13 +43457,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44350,7 +43472,7 @@ "array_dims": 0 }, { - "name": "prstoken", + "name": "trftype", "not_null": true, "is_array": false, "comment": "", @@ -44361,13 +43483,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44376,7 +43498,7 @@ "array_dims": 0 }, { - "name": "prsend", + "name": "trflang", "not_null": true, "is_array": false, "comment": "", @@ -44387,13 +43509,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44402,7 +43524,7 @@ "array_dims": 0 }, { - "name": "prsheadline", + "name": "trffromsql", "not_null": true, "is_array": false, "comment": "", @@ -44413,7 +43535,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { @@ -44428,7 +43550,7 @@ "array_dims": 0 }, { - "name": "prslextype", + "name": "trftosql", "not_null": true, "is_array": false, "comment": "", @@ -44439,7 +43561,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_parser" + "name": "pg_transform" }, "table_alias": "", "type": { @@ -44460,7 +43582,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "columns": [ { @@ -44475,7 +43597,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44501,7 +43623,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44527,7 +43649,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44553,7 +43675,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44579,7 +43701,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44605,7 +43727,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44631,7 +43753,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44646,24 +43768,24 @@ "array_dims": 0 }, { - "name": "tmplname", + "name": "tgrelid", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44672,7 +43794,7 @@ "array_dims": 0 }, { - "name": "tmplnamespace", + "name": "tgparentid", "not_null": true, "is_array": false, "comment": "", @@ -44683,7 +43805,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { @@ -44698,24 +43820,24 @@ "array_dims": 0 }, { - "name": "tmplinit", + "name": "tgname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -44724,7 +43846,7 @@ "array_dims": 0 }, { - "name": "tmpllexize", + "name": "tgfoid", "not_null": true, "is_array": false, "comment": "", @@ -44735,49 +43857,39 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_ts_template" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_type" - }, - "columns": [ + }, { - "name": "tableoid", + "name": "tgtype", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -44786,24 +43898,24 @@ "array_dims": 0 }, { - "name": "cmax", + "name": "tgenabled", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -44812,24 +43924,24 @@ "array_dims": 0 }, { - "name": "xmax", + "name": "tgisinternal", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -44838,7 +43950,7 @@ "array_dims": 0 }, { - "name": "cmin", + "name": "tgconstrrelid", "not_null": true, "is_array": false, "comment": "", @@ -44849,13 +43961,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44864,7 +43976,7 @@ "array_dims": 0 }, { - "name": "xmin", + "name": "tgconstrindid", "not_null": true, "is_array": false, "comment": "", @@ -44875,13 +43987,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44890,24 +44002,24 @@ "array_dims": 0 }, { - "name": "ctid", + "name": "tgconstraint", "not_null": true, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -44916,24 +44028,24 @@ "array_dims": 0 }, { - "name": "oid", + "name": "tgdeferrable", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -44942,24 +44054,24 @@ "array_dims": 0 }, { - "name": "typname", + "name": "tginitdeferred", "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -44968,24 +44080,24 @@ "array_dims": 0 }, { - "name": "typnamespace", + "name": "tgnargs", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -44994,24 +44106,24 @@ "array_dims": 0 }, { - "name": "typowner", + "name": "tgattr", "not_null": true, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "int2vector" }, "is_sqlc_slice": false, "embed_table": null, @@ -45020,24 +44132,24 @@ "array_dims": 0 }, { - "name": "typlen", + "name": "tgargs", "not_null": true, "is_array": false, "comment": "", - "length": 2, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "int2" + "name": "bytea" }, "is_sqlc_slice": false, "embed_table": null, @@ -45046,24 +44158,24 @@ "array_dims": 0 }, { - "name": "typbyval", - "not_null": true, + "name": "tgqual", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -45072,24 +44184,24 @@ "array_dims": 0 }, { - "name": "typtype", - "not_null": true, + "name": "tgoldtable", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -45098,50 +44210,60 @@ "array_dims": 0 }, { - "name": "typcategory", - "not_null": true, + "name": "tgnewtable", + "not_null": false, "is_array": false, "comment": "", - "length": 1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_trigger" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_ts_config" + }, + "columns": [ { - "name": "typispreferred", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45150,24 +44272,24 @@ "array_dims": 0 }, { - "name": "typisdefined", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45176,24 +44298,24 @@ "array_dims": 0 }, { - "name": "typdelim", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45202,7 +44324,7 @@ "array_dims": 0 }, { - "name": "typrelid", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", @@ -45213,13 +44335,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45228,7 +44350,7 @@ "array_dims": 0 }, { - "name": "typsubscript", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", @@ -45239,13 +44361,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45254,24 +44376,24 @@ "array_dims": 0 }, { - "name": "typelem", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45280,7 +44402,7 @@ "array_dims": 0 }, { - "name": "typarray", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -45291,7 +44413,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { @@ -45306,24 +44428,24 @@ "array_dims": 0 }, { - "name": "typinput", + "name": "cfgname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -45332,7 +44454,7 @@ "array_dims": 0 }, { - "name": "typoutput", + "name": "cfgnamespace", "not_null": true, "is_array": false, "comment": "", @@ -45343,13 +44465,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45358,7 +44480,7 @@ "array_dims": 0 }, { - "name": "typreceive", + "name": "cfgowner", "not_null": true, "is_array": false, "comment": "", @@ -45369,13 +44491,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45384,7 +44506,7 @@ "array_dims": 0 }, { - "name": "typsend", + "name": "cfgparser", "not_null": true, "is_array": false, "comment": "", @@ -45395,22 +44517,32 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_ts_config_map" + }, + "columns": [ { - "name": "typmodin", + "name": "tableoid", "not_null": true, "is_array": false, "comment": "", @@ -45421,13 +44553,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45436,7 +44568,7 @@ "array_dims": 0 }, { - "name": "typmodout", + "name": "cmax", "not_null": true, "is_array": false, "comment": "", @@ -45447,13 +44579,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45462,7 +44594,7 @@ "array_dims": 0 }, { - "name": "typanalyze", + "name": "xmax", "not_null": true, "is_array": false, "comment": "", @@ -45473,13 +44605,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "regproc" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45488,24 +44620,24 @@ "array_dims": 0 }, { - "name": "typalign", + "name": "cmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45514,24 +44646,24 @@ "array_dims": 0 }, { - "name": "typstorage", + "name": "xmin", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "char" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45540,24 +44672,24 @@ "array_dims": 0 }, { - "name": "typnotnull", + "name": "ctid", "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45566,7 +44698,7 @@ "array_dims": 0 }, { - "name": "typbasetype", + "name": "mapcfg", "not_null": true, "is_array": false, "comment": "", @@ -45577,7 +44709,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { @@ -45592,7 +44724,7 @@ "array_dims": 0 }, { - "name": "typtypmod", + "name": "maptokentype", "not_null": true, "is_array": false, "comment": "", @@ -45603,7 +44735,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { @@ -45618,7 +44750,7 @@ "array_dims": 0 }, { - "name": "typndims", + "name": "mapseqno", "not_null": true, "is_array": false, "comment": "", @@ -45629,7 +44761,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { @@ -45644,7 +44776,7 @@ "array_dims": 0 }, { - "name": "typcollation", + "name": "mapdict", "not_null": true, "is_array": false, "comment": "", @@ -45655,7 +44787,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_config_map" }, "table_alias": "", "type": { @@ -45668,26 +44800,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_ts_dict" + }, + "columns": [ { - "name": "typdefaultbin", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_node_tree" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45696,24 +44838,24 @@ "array_dims": 0 }, { - "name": "typdefault", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45722,60 +44864,50 @@ "array_dims": 0 }, { - "name": "typacl", - "not_null": false, - "is_array": true, + "name": "xmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_type" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_aclitem" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_user" - }, - "columns": [ + }, { - "name": "usename", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45784,8 +44916,8 @@ "array_dims": 0 }, { - "name": "usesysid", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -45795,13 +44927,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45810,24 +44942,24 @@ "array_dims": 0 }, { - "name": "usecreatedb", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45836,24 +44968,24 @@ "array_dims": 0 }, { - "name": "usesuper", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45862,24 +44994,24 @@ "array_dims": 0 }, { - "name": "userepl", - "not_null": false, + "name": "dictname", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -45888,24 +45020,24 @@ "array_dims": 0 }, { - "name": "usebypassrls", - "not_null": false, + "name": "dictnamespace", + "not_null": true, "is_array": false, "comment": "", - "length": 1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "bool" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45914,24 +45046,24 @@ "array_dims": 0 }, { - "name": "passwd", - "not_null": false, + "name": "dictowner", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45940,24 +45072,24 @@ "array_dims": 0 }, { - "name": "valuntil", - "not_null": false, + "name": "dicttemplate", + "not_null": true, "is_array": false, "comment": "", - "length": 8, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "timestamptz" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -45966,9 +45098,9 @@ "array_dims": 0 }, { - "name": "useconfig", + "name": "dictinitoption", "not_null": false, - "is_array": true, + "is_array": false, "comment": "", "length": -1, "is_named_param": false, @@ -45977,13 +45109,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user" + "name": "pg_ts_dict" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -45998,7 +45130,7 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "columns": [ { @@ -46013,7 +45145,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46039,7 +45171,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46065,7 +45197,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46091,7 +45223,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46117,7 +45249,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46143,7 +45275,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46169,7 +45301,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46184,24 +45316,24 @@ "array_dims": 0 }, { - "name": "umuser", + "name": "prsname", "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -46210,7 +45342,7 @@ "array_dims": 0 }, { - "name": "umserver", + "name": "prsnamespace", "not_null": true, "is_array": false, "comment": "", @@ -46221,7 +45353,7 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mapping" + "name": "pg_ts_parser" }, "table_alias": "", "type": { @@ -46236,44 +45368,8 @@ "array_dims": 0 }, { - "name": "umoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_user_mapping" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "_text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_user_mappings" - }, - "columns": [ - { - "name": "umid", - "not_null": false, + "name": "prsstart", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -46283,13 +45379,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mappings" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46298,8 +45394,8 @@ "array_dims": 0 }, { - "name": "srvid", - "not_null": false, + "name": "prstoken", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -46309,13 +45405,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mappings" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46324,24 +45420,24 @@ "array_dims": 0 }, { - "name": "srvname", - "not_null": false, + "name": "prsend", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mappings" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46350,8 +45446,8 @@ "array_dims": 0 }, { - "name": "umuser", - "not_null": false, + "name": "prsheadline", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -46361,13 +45457,13 @@ "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mappings" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46376,50 +45472,24 @@ "array_dims": 0 }, { - "name": "usename", - "not_null": false, + "name": "prslextype", + "not_null": true, "is_array": false, "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "pg_catalog", - "name": "pg_user_mappings" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "name" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "umoptions", - "not_null": false, - "is_array": true, - "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_user_mappings" + "name": "pg_ts_parser" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46434,28 +45504,28 @@ "rel": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_views" + "name": "pg_ts_template" }, "columns": [ { - "name": "schemaname", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_views" + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46464,24 +45534,24 @@ "array_dims": 0 }, { - "name": "viewname", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_views" + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46490,24 +45560,24 @@ "array_dims": 0 }, { - "name": "viewowner", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_views" + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46516,52 +45586,34 @@ "array_dims": 0 }, { - "name": "definition", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "pg_catalog", - "name": "pg_views" + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - } - ], - "enums": [], - "composite_types": [] - }, - { - "comment": "", - "name": "information_schema", - "tables": [ - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" - }, - "columns": [ + }, { - "name": "oid", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -46570,14 +45622,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46586,24 +45638,24 @@ "array_dims": 0 }, { - "name": "fdwowner", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46612,24 +45664,24 @@ "array_dims": 0 }, { - "name": "fdwoptions", - "not_null": false, - "is_array": true, + "name": "oid", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46638,8 +45690,8 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_catalog", - "not_null": false, + "name": "tmplname", + "not_null": true, "is_array": false, "comment": "", "length": 64, @@ -46648,14 +45700,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -46664,24 +45716,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_name", - "not_null": false, + "name": "tmplnamespace", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46690,24 +45742,24 @@ "array_dims": 0 }, { - "name": "authorization_identifier", - "not_null": false, + "name": "tmplinit", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46716,24 +45768,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_language", - "not_null": false, + "name": "tmpllexize", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_data_wrappers" + "schema": "pg_catalog", + "name": "pg_ts_template" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -46747,13 +45799,13 @@ { "rel": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "columns": [ { - "name": "oid", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -46762,8 +45814,8 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { @@ -46778,24 +45830,24 @@ "array_dims": 0 }, { - "name": "srvoptions", - "not_null": false, - "is_array": true, + "name": "cmax", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46804,24 +45856,24 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46830,24 +45882,24 @@ "array_dims": 0 }, { - "name": "foreign_server_name", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46856,24 +45908,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_catalog", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46882,24 +45934,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_name", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46908,24 +45960,24 @@ "array_dims": 0 }, { - "name": "foreign_server_type", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -46934,24 +45986,24 @@ "array_dims": 0 }, { - "name": "foreign_server_version", - "not_null": false, + "name": "typname", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -46960,60 +46012,50 @@ "array_dims": 0 }, { - "name": "authorization_identifier", - "not_null": false, + "name": "typnamespace", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_servers" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_table_columns" - }, - "columns": [ + }, { - "name": "nspname", - "not_null": false, + "name": "typowner", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_table_columns" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -47022,24 +46064,24 @@ "array_dims": 0 }, { - "name": "relname", - "not_null": false, + "name": "typlen", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 2, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_table_columns" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "int2" }, "is_sqlc_slice": false, "embed_table": null, @@ -47048,24 +46090,24 @@ "array_dims": 0 }, { - "name": "attname", - "not_null": false, + "name": "typbyval", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_table_columns" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "name" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47074,60 +46116,50 @@ "array_dims": 0 }, { - "name": "attfdwoptions", - "not_null": false, - "is_array": true, + "name": "typtype", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_table_columns" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" - }, - "columns": [ + }, { - "name": "foreign_table_catalog", - "not_null": false, + "name": "typcategory", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -47136,24 +46168,24 @@ "array_dims": 0 }, { - "name": "foreign_table_schema", - "not_null": false, + "name": "typispreferred", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47162,24 +46194,24 @@ "array_dims": 0 }, { - "name": "foreign_table_name", - "not_null": false, + "name": "typisdefined", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47188,24 +46220,24 @@ "array_dims": 0 }, { - "name": "ftoptions", - "not_null": false, - "is_array": true, + "name": "typdelim", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -47214,24 +46246,24 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", - "not_null": false, + "name": "typrelid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -47240,24 +46272,24 @@ "array_dims": 0 }, { - "name": "foreign_server_name", - "not_null": false, + "name": "typsubscript", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47266,44 +46298,34 @@ "array_dims": 0 }, { - "name": "authorization_identifier", - "not_null": false, + "name": "typelem", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_foreign_tables" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" - }, - "columns": [ + }, { - "name": "oid", - "not_null": false, + "name": "typarray", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -47312,8 +46334,8 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { @@ -47328,24 +46350,24 @@ "array_dims": 0 }, { - "name": "umoptions", - "not_null": false, - "is_array": true, + "name": "typinput", + "not_null": true, + "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "_text" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47354,8 +46376,8 @@ "array_dims": 0 }, { - "name": "umuser", - "not_null": false, + "name": "typoutput", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -47364,14 +46386,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47380,24 +46402,24 @@ "array_dims": 0 }, { - "name": "authorization_identifier", - "not_null": false, + "name": "typreceive", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47406,24 +46428,24 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", - "not_null": false, + "name": "typsend", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47432,24 +46454,24 @@ "array_dims": 0 }, { - "name": "foreign_server_name", - "not_null": false, + "name": "typmodin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47458,60 +46480,50 @@ "array_dims": 0 }, { - "name": "srvowner", - "not_null": false, + "name": "typmodout", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "_pg_user_mappings" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "administrable_role_authorizations" - }, - "columns": [ + }, { - "name": "grantee", - "not_null": false, + "name": "typanalyze", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "administrable_role_authorizations" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "regproc" }, "is_sqlc_slice": false, "embed_table": null, @@ -47520,24 +46532,24 @@ "array_dims": 0 }, { - "name": "role_name", - "not_null": false, + "name": "typalign", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "administrable_role_authorizations" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, @@ -47546,60 +46558,50 @@ "array_dims": 0 }, { - "name": "is_grantable", - "not_null": false, + "name": "typstorage", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "administrable_role_authorizations" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "char" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "applicable_roles" - }, - "columns": [ + }, { - "name": "grantee", - "not_null": false, + "name": "typnotnull", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "applicable_roles" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47608,24 +46610,24 @@ "array_dims": 0 }, { - "name": "role_name", - "not_null": false, + "name": "typbasetype", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "applicable_roles" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -47634,60 +46636,50 @@ "array_dims": 0 }, { - "name": "is_grantable", - "not_null": false, + "name": "typtypmod", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "applicable_roles" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" - }, - "columns": [ + }, { - "name": "udt_catalog", - "not_null": false, + "name": "typndims", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, @@ -47696,24 +46688,24 @@ "array_dims": 0 }, { - "name": "udt_schema", - "not_null": false, + "name": "typcollation", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -47722,24 +46714,24 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "typdefaultbin", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "pg_node_tree" }, "is_sqlc_slice": false, "embed_table": null, @@ -47748,24 +46740,24 @@ "array_dims": 0 }, { - "name": "attribute_name", + "name": "typdefault", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -47774,50 +46766,60 @@ "array_dims": 0 }, { - "name": "ordinal_position", + "name": "typacl", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_type" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "_aclitem" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_user" + }, + "columns": [ { - "name": "attribute_default", + "name": "usename", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -47826,24 +46828,24 @@ "array_dims": 0 }, { - "name": "is_nullable", + "name": "usesysid", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -47852,24 +46854,24 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "usecreatedb", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47878,24 +46880,24 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "usesuper", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47904,24 +46906,24 @@ "array_dims": 0 }, { - "name": "character_octet_length", + "name": "userepl", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47930,24 +46932,24 @@ "array_dims": 0 }, { - "name": "character_set_catalog", + "name": "usebypassrls", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, @@ -47956,24 +46958,24 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "passwd", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, @@ -47982,24 +46984,24 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "valuntil", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "timestamptz" }, "is_sqlc_slice": false, "embed_table": null, @@ -48008,50 +47010,60 @@ "array_dims": 0 }, { - "name": "collation_catalog", + "name": "useconfig", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_user_mapping" + }, + "columns": [ { - "name": "collation_schema", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48060,24 +47072,24 @@ "array_dims": 0 }, { - "name": "collation_name", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48086,8 +47098,8 @@ "array_dims": 0 }, { - "name": "numeric_precision", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -48096,14 +47108,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48112,8 +47124,8 @@ "array_dims": 0 }, { - "name": "numeric_precision_radix", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -48122,14 +47134,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48138,8 +47150,8 @@ "array_dims": 0 }, { - "name": "numeric_scale", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -48148,14 +47160,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48164,24 +47176,24 @@ "array_dims": 0 }, { - "name": "datetime_precision", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 4, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48190,24 +47202,24 @@ "array_dims": 0 }, { - "name": "interval_type", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48216,8 +47228,8 @@ "array_dims": 0 }, { - "name": "interval_precision", - "not_null": false, + "name": "umuser", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -48226,14 +47238,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48242,24 +47254,24 @@ "array_dims": 0 }, { - "name": "attribute_udt_catalog", - "not_null": false, + "name": "umserver", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48268,76 +47280,60 @@ "array_dims": 0 }, { - "name": "attribute_udt_schema", + "name": "umoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "attribute_udt_name", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mapping" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "pg_catalog", + "name": "pg_user_mappings" + }, + "columns": [ { - "name": "scope_catalog", + "name": "umid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48346,24 +47342,24 @@ "array_dims": 0 }, { - "name": "scope_schema", + "name": "srvid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48372,7 +47368,7 @@ "array_dims": 0 }, { - "name": "scope_name", + "name": "srvname", "not_null": false, "is_array": false, "comment": "", @@ -48382,14 +47378,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -48398,7 +47394,7 @@ "array_dims": 0 }, { - "name": "maximum_cardinality", + "name": "umuser", "not_null": false, "is_array": false, "comment": "", @@ -48408,14 +47404,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48424,7 +47420,7 @@ "array_dims": 0 }, { - "name": "dtd_identifier", + "name": "usename", "not_null": false, "is_array": false, "comment": "", @@ -48434,14 +47430,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -48450,9 +47446,9 @@ "array_dims": 0 }, { - "name": "is_derived_reference_attribute", + "name": "umoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -48460,14 +47456,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "attributes" + "schema": "pg_catalog", + "name": "pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -48481,12 +47477,12 @@ { "rel": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "character_sets" + "schema": "pg_catalog", + "name": "pg_views" }, "columns": [ { - "name": "character_set_catalog", + "name": "schemaname", "not_null": false, "is_array": false, "comment": "", @@ -48496,14 +47492,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "character_sets" + "schema": "pg_catalog", + "name": "pg_views" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -48512,7 +47508,7 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "viewname", "not_null": false, "is_array": false, "comment": "", @@ -48522,14 +47518,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "character_sets" + "schema": "pg_catalog", + "name": "pg_views" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -48538,7 +47534,7 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "viewowner", "not_null": false, "is_array": false, "comment": "", @@ -48548,14 +47544,14 @@ "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "character_sets" + "schema": "pg_catalog", + "name": "pg_views" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -48564,50 +47560,68 @@ "array_dims": 0 }, { - "name": "character_repertoire", + "name": "definition", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", - "schema": "information_schema", - "name": "character_sets" + "schema": "pg_catalog", + "name": "pg_views" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + } + ], + "enums": [], + "composite_types": [] + }, + { + "comment": "", + "name": "information_schema", + "tables": [ + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "_pg_foreign_data_wrappers" + }, + "columns": [ { - "name": "form_of_use", + "name": "oid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "character_sets" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48616,24 +47630,24 @@ "array_dims": 0 }, { - "name": "default_collate_catalog", + "name": "fdwowner", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "character_sets" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48642,24 +47656,24 @@ "array_dims": 0 }, { - "name": "default_collate_schema", + "name": "fdwoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "character_sets" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -48668,7 +47682,7 @@ "array_dims": 0 }, { - "name": "default_collate_name", + "name": "foreign_data_wrapper_catalog", "not_null": false, "is_array": false, "comment": "", @@ -48679,7 +47693,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "character_sets" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { @@ -48692,19 +47706,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "check_constraint_routine_usage" - }, - "columns": [ + }, { - "name": "constraint_catalog", + "name": "foreign_data_wrapper_name", "not_null": false, "is_array": false, "comment": "", @@ -48715,7 +47719,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { @@ -48730,7 +47734,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "authorization_identifier", "not_null": false, "is_array": false, "comment": "", @@ -48741,7 +47745,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { @@ -48756,50 +47760,60 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "foreign_data_wrapper_language", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_data_wrappers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "_pg_foreign_servers" + }, + "columns": [ { - "name": "specific_catalog", + "name": "oid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -48808,24 +47822,24 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "srvoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -48834,7 +47848,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -48845,7 +47859,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraint_routine_usage" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -48858,19 +47872,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "check_constraints" - }, - "columns": [ + }, { - "name": "constraint_catalog", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", @@ -48881,7 +47885,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraints" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -48896,7 +47900,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "foreign_data_wrapper_catalog", "not_null": false, "is_array": false, "comment": "", @@ -48907,7 +47911,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraints" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -48922,7 +47926,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "foreign_data_wrapper_name", "not_null": false, "is_array": false, "comment": "", @@ -48933,7 +47937,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraints" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -48948,7 +47952,7 @@ "array_dims": 0 }, { - "name": "check_clause", + "name": "foreign_server_type", "not_null": false, "is_array": false, "comment": "", @@ -48959,7 +47963,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "check_constraints" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -48972,36 +47976,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "collation_character_set_applicability" - }, - "columns": [ + }, { - "name": "collation_catalog", + "name": "foreign_server_version", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -49010,7 +48004,7 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "authorization_identifier", "not_null": false, "is_array": false, "comment": "", @@ -49021,7 +48015,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_servers" }, "table_alias": "", "type": { @@ -49034,9 +48028,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "_pg_foreign_table_columns" + }, + "columns": [ { - "name": "collation_name", + "name": "nspname", "not_null": false, "is_array": false, "comment": "", @@ -49047,13 +48051,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_table_columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -49062,7 +48066,7 @@ "array_dims": 0 }, { - "name": "character_set_catalog", + "name": "relname", "not_null": false, "is_array": false, "comment": "", @@ -49073,13 +48077,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_table_columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -49088,7 +48092,7 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "attname", "not_null": false, "is_array": false, "comment": "", @@ -49099,13 +48103,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_table_columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "name" }, "is_sqlc_slice": false, "embed_table": null, @@ -49114,24 +48118,24 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "attfdwoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collation_character_set_applicability" + "name": "_pg_foreign_table_columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, @@ -49146,11 +48150,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collations" + "name": "_pg_foreign_tables" }, "columns": [ { - "name": "collation_catalog", + "name": "foreign_table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -49161,7 +48165,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collations" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49176,7 +48180,7 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "foreign_table_schema", "not_null": false, "is_array": false, "comment": "", @@ -49187,7 +48191,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collations" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49202,7 +48206,7 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "foreign_table_name", "not_null": false, "is_array": false, "comment": "", @@ -49213,7 +48217,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collations" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49228,9 +48232,9 @@ "array_dims": 0 }, { - "name": "pad_attribute", + "name": "ftoptions", "not_null": false, - "is_array": false, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -49239,32 +48243,22 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "collations" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "_text" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_column_usage" - }, - "columns": [ + }, { - "name": "table_catalog", + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -49275,7 +48269,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_column_usage" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49290,7 +48284,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", @@ -49301,7 +48295,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_column_usage" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49316,7 +48310,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "authorization_identifier", "not_null": false, "is_array": false, "comment": "", @@ -49327,7 +48321,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_column_usage" + "name": "_pg_foreign_tables" }, "table_alias": "", "type": { @@ -49340,26 +48334,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "_pg_user_mappings" + }, + "columns": [ { - "name": "column_name", + "name": "oid", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_column_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -49368,43 +48372,59 @@ "array_dims": 0 }, { - "name": "dependent_column", + "name": "umoptions", + "not_null": false, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "_pg_user_mappings" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "_text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "umuser", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_column_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_domain_usage" - }, - "columns": [ + }, { - "name": "domain_catalog", + "name": "authorization_identifier", "not_null": false, "is_array": false, "comment": "", @@ -49415,7 +48435,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { @@ -49430,7 +48450,7 @@ "array_dims": 0 }, { - "name": "domain_schema", + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -49441,7 +48461,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { @@ -49456,7 +48476,7 @@ "array_dims": 0 }, { - "name": "domain_name", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", @@ -49467,7 +48487,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { @@ -49482,7 +48502,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "srvowner", "not_null": false, "is_array": false, "comment": "", @@ -49493,7 +48513,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "_pg_user_mappings" }, "table_alias": "", "type": { @@ -49506,9 +48526,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "administrable_role_authorizations" + }, + "columns": [ { - "name": "table_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -49519,7 +48549,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "administrable_role_authorizations" }, "table_alias": "", "type": { @@ -49534,7 +48564,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "role_name", "not_null": false, "is_array": false, "comment": "", @@ -49545,7 +48575,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "administrable_role_authorizations" }, "table_alias": "", "type": { @@ -49560,24 +48590,24 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_domain_usage" + "name": "administrable_role_authorizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -49592,11 +48622,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_options" + "name": "applicable_roles" }, "columns": [ { - "name": "table_catalog", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -49607,7 +48637,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_options" + "name": "applicable_roles" }, "table_alias": "", "type": { @@ -49622,7 +48652,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "role_name", "not_null": false, "is_array": false, "comment": "", @@ -49633,7 +48663,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_options" + "name": "applicable_roles" }, "table_alias": "", "type": { @@ -49648,102 +48678,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_options" + "name": "applicable_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "column_name", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_options" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "option_name", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_options" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "option_value", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_options" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -49758,11 +48710,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "columns": [ { - "name": "grantor", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", @@ -49773,7 +48725,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { @@ -49788,7 +48740,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -49799,7 +48751,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { @@ -49814,7 +48766,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -49825,7 +48777,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { @@ -49840,7 +48792,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "attribute_name", "not_null": false, "is_array": false, "comment": "", @@ -49851,7 +48803,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { @@ -49866,24 +48818,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "ordinal_position", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -49892,24 +48844,24 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "attribute_default", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -49918,7 +48870,7 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "is_nullable", "not_null": false, "is_array": false, "comment": "", @@ -49929,13 +48881,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -49944,7 +48896,7 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", @@ -49955,49 +48907,39 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_privileges" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "column_udt_usage" - }, - "columns": [ + }, { - "name": "udt_catalog", + "name": "character_maximum_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50006,24 +48948,24 @@ "array_dims": 0 }, { - "name": "udt_schema", + "name": "character_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50032,7 +48974,7 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50043,7 +48985,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { @@ -50058,7 +49000,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "character_set_schema", "not_null": false, "is_array": false, "comment": "", @@ -50069,7 +49011,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { @@ -50084,7 +49026,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "character_set_name", "not_null": false, "is_array": false, "comment": "", @@ -50095,7 +49037,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { @@ -50110,7 +49052,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50121,7 +49063,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { @@ -50136,7 +49078,7 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", @@ -50147,7 +49089,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "column_udt_usage" + "name": "attributes" }, "table_alias": "", "type": { @@ -50160,19 +49102,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "columns" - }, - "columns": [ + }, { - "name": "table_catalog", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", @@ -50183,7 +49115,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { @@ -50198,24 +49130,24 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "numeric_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50224,24 +49156,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "numeric_precision_radix", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50250,24 +49182,24 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "numeric_scale", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50276,7 +49208,7 @@ "array_dims": 0 }, { - "name": "ordinal_position", + "name": "datetime_precision", "not_null": false, "is_array": false, "comment": "", @@ -50287,7 +49219,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { @@ -50302,7 +49234,7 @@ "array_dims": 0 }, { - "name": "column_default", + "name": "interval_type", "not_null": false, "is_array": false, "comment": "", @@ -50313,7 +49245,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { @@ -50328,24 +49260,24 @@ "array_dims": 0 }, { - "name": "is_nullable", + "name": "interval_precision", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -50354,24 +49286,24 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "attribute_udt_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50380,24 +49312,24 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "attribute_udt_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50406,24 +49338,24 @@ "array_dims": 0 }, { - "name": "character_octet_length", + "name": "attribute_udt_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50432,24 +49364,24 @@ "array_dims": 0 }, { - "name": "numeric_precision", + "name": "scope_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50458,24 +49390,24 @@ "array_dims": 0 }, { - "name": "numeric_precision_radix", + "name": "scope_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50484,24 +49416,24 @@ "array_dims": 0 }, { - "name": "numeric_scale", + "name": "scope_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50510,7 +49442,7 @@ "array_dims": 0 }, { - "name": "datetime_precision", + "name": "maximum_cardinality", "not_null": false, "is_array": false, "comment": "", @@ -50521,7 +49453,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { @@ -50536,24 +49468,24 @@ "array_dims": 0 }, { - "name": "interval_type", + "name": "dtd_identifier", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -50562,31 +49494,41 @@ "array_dims": 0 }, { - "name": "interval_precision", + "name": "is_derived_reference_attribute", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "attributes" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "character_sets" + }, + "columns": [ { "name": "character_set_catalog", "not_null": false, @@ -50599,7 +49541,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50625,7 +49567,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50651,7 +49593,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50666,7 +49608,7 @@ "array_dims": 0 }, { - "name": "collation_catalog", + "name": "character_repertoire", "not_null": false, "is_array": false, "comment": "", @@ -50677,7 +49619,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50692,7 +49634,7 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "form_of_use", "not_null": false, "is_array": false, "comment": "", @@ -50703,7 +49645,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50718,7 +49660,7 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "default_collate_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50729,7 +49671,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50744,7 +49686,7 @@ "array_dims": 0 }, { - "name": "domain_catalog", + "name": "default_collate_schema", "not_null": false, "is_array": false, "comment": "", @@ -50755,7 +49697,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50770,7 +49712,7 @@ "array_dims": 0 }, { - "name": "domain_schema", + "name": "default_collate_name", "not_null": false, "is_array": false, "comment": "", @@ -50781,7 +49723,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "character_sets" }, "table_alias": "", "type": { @@ -50794,9 +49736,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "check_constraint_routine_usage" + }, + "columns": [ { - "name": "domain_name", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50807,7 +49759,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50822,7 +49774,7 @@ "array_dims": 0 }, { - "name": "udt_catalog", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -50833,7 +49785,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50848,7 +49800,7 @@ "array_dims": 0 }, { - "name": "udt_schema", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", @@ -50859,7 +49811,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50874,7 +49826,7 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50885,7 +49837,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50900,7 +49852,7 @@ "array_dims": 0 }, { - "name": "scope_catalog", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", @@ -50911,7 +49863,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50926,7 +49878,7 @@ "array_dims": 0 }, { - "name": "scope_schema", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", @@ -50937,7 +49889,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraint_routine_usage" }, "table_alias": "", "type": { @@ -50950,9 +49902,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "check_constraints" + }, + "columns": [ { - "name": "scope_name", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -50963,7 +49925,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraints" }, "table_alias": "", "type": { @@ -50978,24 +49940,24 @@ "array_dims": 0 }, { - "name": "maximum_cardinality", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51004,7 +49966,7 @@ "array_dims": 0 }, { - "name": "dtd_identifier", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", @@ -51015,7 +49977,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraints" }, "table_alias": "", "type": { @@ -51030,7 +49992,7 @@ "array_dims": 0 }, { - "name": "is_self_referencing", + "name": "check_clause", "not_null": false, "is_array": false, "comment": "", @@ -51041,39 +50003,49 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "check_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "collation_character_set_applicability" + }, + "columns": [ { - "name": "is_identity", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51082,24 +50054,24 @@ "array_dims": 0 }, { - "name": "identity_generation", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51108,24 +50080,24 @@ "array_dims": 0 }, { - "name": "identity_start", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51134,24 +50106,24 @@ "array_dims": 0 }, { - "name": "identity_increment", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51160,24 +50132,24 @@ "array_dims": 0 }, { - "name": "identity_maximum", + "name": "character_set_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51186,50 +50158,60 @@ "array_dims": 0 }, { - "name": "identity_minimum", + "name": "character_set_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collation_character_set_applicability" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "collations" + }, + "columns": [ { - "name": "identity_cycle", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51238,24 +50220,24 @@ "array_dims": 0 }, { - "name": "is_generated", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51264,24 +50246,24 @@ "array_dims": 0 }, { - "name": "generation_expression", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -51290,7 +50272,7 @@ "array_dims": 0 }, { - "name": "is_updatable", + "name": "pad_attribute", "not_null": false, "is_array": false, "comment": "", @@ -51301,13 +50283,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "columns" + "name": "collations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -51322,7 +50304,7 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" }, "columns": [ { @@ -51337,7 +50319,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" }, "table_alias": "", "type": { @@ -51363,7 +50345,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" }, "table_alias": "", "type": { @@ -51389,7 +50371,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" }, "table_alias": "", "type": { @@ -51415,7 +50397,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" }, "table_alias": "", "type": { @@ -51430,7 +50412,7 @@ "array_dims": 0 }, { - "name": "constraint_catalog", + "name": "dependent_column", "not_null": false, "is_array": false, "comment": "", @@ -51441,7 +50423,43 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "column_domain_usage" + }, + "columns": [ + { + "name": "domain_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51456,7 +50474,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "domain_schema", "not_null": false, "is_array": false, "comment": "", @@ -51467,7 +50485,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51482,7 +50500,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "domain_name", "not_null": false, "is_array": false, "comment": "", @@ -51493,7 +50511,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_column_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51506,17 +50524,7 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "constraint_table_usage" - }, - "columns": [ + }, { "name": "table_catalog", "not_null": false, @@ -51529,7 +50537,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51555,7 +50563,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51581,7 +50589,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51596,7 +50604,7 @@ "array_dims": 0 }, { - "name": "constraint_catalog", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -51607,7 +50615,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_domain_usage" }, "table_alias": "", "type": { @@ -51620,9 +50628,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "column_options" + }, + "columns": [ { - "name": "constraint_schema", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -51633,7 +50651,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_options" }, "table_alias": "", "type": { @@ -51648,7 +50666,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -51659,7 +50677,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "constraint_table_usage" + "name": "column_options" }, "table_alias": "", "type": { @@ -51672,19 +50690,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "data_type_privileges" - }, - "columns": [ + }, { - "name": "object_catalog", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -51695,7 +50703,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "data_type_privileges" + "name": "column_options" }, "table_alias": "", "type": { @@ -51710,7 +50718,7 @@ "array_dims": 0 }, { - "name": "object_schema", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -51721,7 +50729,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "data_type_privileges" + "name": "column_options" }, "table_alias": "", "type": { @@ -51736,7 +50744,7 @@ "array_dims": 0 }, { - "name": "object_name", + "name": "option_name", "not_null": false, "is_array": false, "comment": "", @@ -51747,7 +50755,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "data_type_privileges" + "name": "column_options" }, "table_alias": "", "type": { @@ -51762,7 +50770,7 @@ "array_dims": 0 }, { - "name": "object_type", + "name": "option_value", "not_null": false, "is_array": false, "comment": "", @@ -51773,7 +50781,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "data_type_privileges" + "name": "column_options" }, "table_alias": "", "type": { @@ -51786,32 +50794,6 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, - { - "name": "dtd_identifier", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "data_type_privileges" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 } ], "comment": "" @@ -51820,11 +50802,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "columns": [ { - "name": "constraint_catalog", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -51835,7 +50817,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51850,7 +50832,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -51861,7 +50843,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51876,7 +50858,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -51887,7 +50869,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51902,7 +50884,7 @@ "array_dims": 0 }, { - "name": "domain_catalog", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -51913,7 +50895,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51928,7 +50910,7 @@ "array_dims": 0 }, { - "name": "domain_schema", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -51939,7 +50921,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51954,7 +50936,7 @@ "array_dims": 0 }, { - "name": "domain_name", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -51965,7 +50947,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -51980,7 +50962,7 @@ "array_dims": 0 }, { - "name": "is_deferrable", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", @@ -51991,13 +50973,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -52006,7 +50988,7 @@ "array_dims": 0 }, { - "name": "initially_deferred", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", @@ -52017,7 +50999,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_constraints" + "name": "column_privileges" }, "table_alias": "", "type": { @@ -52038,7 +51020,7 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "columns": [ { @@ -52053,7 +51035,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52079,7 +51061,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52105,7 +51087,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52120,7 +51102,7 @@ "array_dims": 0 }, { - "name": "domain_catalog", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -52131,7 +51113,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52146,7 +51128,7 @@ "array_dims": 0 }, { - "name": "domain_schema", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -52157,7 +51139,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52172,7 +51154,7 @@ "array_dims": 0 }, { - "name": "domain_name", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -52183,7 +51165,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domain_udt_usage" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52196,19 +51178,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "domains" - }, - "columns": [ + }, { - "name": "domain_catalog", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -52219,7 +51191,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "column_udt_usage" }, "table_alias": "", "type": { @@ -52232,9 +51204,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "columns": [ { - "name": "domain_schema", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -52245,7 +51227,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52260,7 +51242,7 @@ "array_dims": 0 }, { - "name": "domain_name", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -52271,7 +51253,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52286,24 +51268,24 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -52312,24 +51294,24 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -52338,7 +51320,7 @@ "array_dims": 0 }, { - "name": "character_octet_length", + "name": "ordinal_position", "not_null": false, "is_array": false, "comment": "", @@ -52349,7 +51331,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52364,50 +51346,24 @@ "array_dims": 0 }, { - "name": "character_set_catalog", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "domains" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "character_set_schema", + "name": "column_default", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -52416,24 +51372,24 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "is_nullable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -52442,24 +51398,24 @@ "array_dims": 0 }, { - "name": "collation_catalog", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -52468,24 +51424,24 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "character_maximum_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -52494,24 +51450,24 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "character_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -52531,7 +51487,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52557,7 +51513,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52583,7 +51539,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52609,7 +51565,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52635,7 +51591,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52661,7 +51617,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52676,24 +51632,232 @@ "array_dims": 0 }, { - "name": "domain_default", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_set_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_set_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "domain_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "domain_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "domain_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "columns" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -52713,7 +51877,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52739,7 +51903,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52765,7 +51929,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52791,7 +51955,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52817,7 +51981,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52843,7 +52007,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52869,7 +52033,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52895,7 +52059,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "domains" + "name": "columns" }, "table_alias": "", "type": { @@ -52908,36 +52072,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "element_types" - }, - "columns": [ + }, { - "name": "object_catalog", + "name": "is_self_referencing", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -52946,24 +52100,24 @@ "array_dims": 0 }, { - "name": "object_schema", + "name": "is_identity", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -52972,24 +52126,24 @@ "array_dims": 0 }, { - "name": "object_name", + "name": "identity_generation", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -52998,7 +52152,7 @@ "array_dims": 0 }, { - "name": "object_type", + "name": "identity_start", "not_null": false, "is_array": false, "comment": "", @@ -53009,7 +52163,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { @@ -53024,24 +52178,24 @@ "array_dims": 0 }, { - "name": "collection_type_identifier", + "name": "identity_increment", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -53050,7 +52204,7 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "identity_maximum", "not_null": false, "is_array": false, "comment": "", @@ -53061,7 +52215,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { @@ -53076,24 +52230,24 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "identity_minimum", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -53102,24 +52256,24 @@ "array_dims": 0 }, { - "name": "character_octet_length", + "name": "identity_cycle", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -53128,24 +52282,24 @@ "array_dims": 0 }, { - "name": "character_set_catalog", + "name": "is_generated", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -53154,24 +52308,24 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "generation_expression", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -53180,33 +52334,43 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "is_updatable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "columns" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "constraint_column_usage" + }, + "columns": [ { - "name": "collation_catalog", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -53217,7 +52381,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { @@ -53232,7 +52396,7 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -53243,7 +52407,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { @@ -53258,7 +52422,7 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -53269,7 +52433,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { @@ -53284,24 +52448,24 @@ "array_dims": 0 }, { - "name": "numeric_precision", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53310,24 +52474,24 @@ "array_dims": 0 }, { - "name": "numeric_precision_radix", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53336,24 +52500,24 @@ "array_dims": 0 }, { - "name": "numeric_scale", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53362,50 +52526,60 @@ "array_dims": 0 }, { - "name": "datetime_precision", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "constraint_table_usage" + }, + "columns": [ { - "name": "interval_type", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53414,24 +52588,24 @@ "array_dims": 0 }, { - "name": "interval_precision", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53440,24 +52614,24 @@ "array_dims": 0 }, { - "name": "domain_default", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53466,7 +52640,7 @@ "array_dims": 0 }, { - "name": "udt_catalog", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -53477,7 +52651,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { @@ -53492,7 +52666,7 @@ "array_dims": 0 }, { - "name": "udt_schema", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -53503,7 +52677,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { @@ -53518,7 +52692,7 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", @@ -53529,7 +52703,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "constraint_table_usage" }, "table_alias": "", "type": { @@ -53542,9 +52716,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "data_type_privileges" + }, + "columns": [ { - "name": "scope_catalog", + "name": "object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -53555,7 +52739,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "data_type_privileges" }, "table_alias": "", "type": { @@ -53570,7 +52754,7 @@ "array_dims": 0 }, { - "name": "scope_schema", + "name": "object_schema", "not_null": false, "is_array": false, "comment": "", @@ -53581,7 +52765,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "data_type_privileges" }, "table_alias": "", "type": { @@ -53596,7 +52780,7 @@ "array_dims": 0 }, { - "name": "scope_name", + "name": "object_name", "not_null": false, "is_array": false, "comment": "", @@ -53607,7 +52791,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "data_type_privileges" }, "table_alias": "", "type": { @@ -53622,24 +52806,24 @@ "array_dims": 0 }, { - "name": "maximum_cardinality", + "name": "object_type", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "data_type_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -53659,7 +52843,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "element_types" + "name": "data_type_privileges" }, "table_alias": "", "type": { @@ -53680,11 +52864,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "enabled_roles" + "name": "domain_constraints" }, "columns": [ { - "name": "role_name", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -53695,7 +52879,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "enabled_roles" + "name": "domain_constraints" }, "table_alias": "", "type": { @@ -53708,19 +52892,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "foreign_data_wrapper_options" - }, - "columns": [ + }, { - "name": "foreign_data_wrapper_catalog", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -53731,7 +52905,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrapper_options" + "name": "domain_constraints" }, "table_alias": "", "type": { @@ -53746,7 +52920,7 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_name", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", @@ -53757,7 +52931,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrapper_options" + "name": "domain_constraints" }, "table_alias": "", "type": { @@ -53772,7 +52946,7 @@ "array_dims": 0 }, { - "name": "option_name", + "name": "domain_catalog", "not_null": false, "is_array": false, "comment": "", @@ -53783,7 +52957,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrapper_options" + "name": "domain_constraints" }, "table_alias": "", "type": { @@ -53798,43 +52972,33 @@ "array_dims": 0 }, { - "name": "option_value", + "name": "domain_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrapper_options" + "name": "domain_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "foreign_data_wrappers" - }, - "columns": [ + }, { - "name": "foreign_data_wrapper_catalog", + "name": "domain_name", "not_null": false, "is_array": false, "comment": "", @@ -53845,7 +53009,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrappers" + "name": "domain_constraints" }, "table_alias": "", "type": { @@ -53860,24 +53024,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_name", + "name": "is_deferrable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrappers" + "name": "domain_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -53886,50 +53050,60 @@ "array_dims": 0 }, { - "name": "authorization_identifier", + "name": "initially_deferred", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrappers" + "name": "domain_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "domain_udt_usage" + }, + "columns": [ { - "name": "library_name", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrappers" + "name": "domain_udt_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -53938,43 +53112,33 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_language", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_data_wrappers" + "name": "domain_udt_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "foreign_server_options" - }, - "columns": [ + }, { - "name": "foreign_server_catalog", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -53985,7 +53149,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_server_options" + "name": "domain_udt_usage" }, "table_alias": "", "type": { @@ -54000,7 +53164,7 @@ "array_dims": 0 }, { - "name": "foreign_server_name", + "name": "domain_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54011,7 +53175,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_server_options" + "name": "domain_udt_usage" }, "table_alias": "", "type": { @@ -54026,7 +53190,7 @@ "array_dims": 0 }, { - "name": "option_name", + "name": "domain_schema", "not_null": false, "is_array": false, "comment": "", @@ -54037,7 +53201,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_server_options" + "name": "domain_udt_usage" }, "table_alias": "", "type": { @@ -54052,24 +53216,24 @@ "array_dims": 0 }, { - "name": "option_value", + "name": "domain_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_server_options" + "name": "domain_udt_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -54084,11 +53248,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "columns": [ { - "name": "foreign_server_catalog", + "name": "domain_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54099,7 +53263,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { @@ -54114,7 +53278,7 @@ "array_dims": 0 }, { - "name": "foreign_server_name", + "name": "domain_schema", "not_null": false, "is_array": false, "comment": "", @@ -54125,7 +53289,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { @@ -54140,7 +53304,7 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_catalog", + "name": "domain_name", "not_null": false, "is_array": false, "comment": "", @@ -54151,7 +53315,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { @@ -54166,24 +53330,24 @@ "array_dims": 0 }, { - "name": "foreign_data_wrapper_name", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -54192,24 +53356,24 @@ "array_dims": 0 }, { - "name": "foreign_server_type", + "name": "character_maximum_length", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54218,24 +53382,24 @@ "array_dims": 0 }, { - "name": "foreign_server_version", + "name": "character_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54244,7 +53408,7 @@ "array_dims": 0 }, { - "name": "authorization_identifier", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54255,7 +53419,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_servers" + "name": "domains" }, "table_alias": "", "type": { @@ -54268,19 +53432,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "foreign_table_options" - }, - "columns": [ + }, { - "name": "foreign_table_catalog", + "name": "character_set_schema", "not_null": false, "is_array": false, "comment": "", @@ -54291,7 +53445,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_table_options" + "name": "domains" }, "table_alias": "", "type": { @@ -54306,7 +53460,7 @@ "array_dims": 0 }, { - "name": "foreign_table_schema", + "name": "character_set_name", "not_null": false, "is_array": false, "comment": "", @@ -54317,7 +53471,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_table_options" + "name": "domains" }, "table_alias": "", "type": { @@ -54332,7 +53486,7 @@ "array_dims": 0 }, { - "name": "foreign_table_name", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54343,7 +53497,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_table_options" + "name": "domains" }, "table_alias": "", "type": { @@ -54358,7 +53512,7 @@ "array_dims": 0 }, { - "name": "option_name", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", @@ -54369,7 +53523,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_table_options" + "name": "domains" }, "table_alias": "", "type": { @@ -54384,60 +53538,50 @@ "array_dims": 0 }, { - "name": "option_value", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_table_options" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "foreign_tables" - }, - "columns": [ + }, { - "name": "foreign_table_catalog", + "name": "numeric_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_tables" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54446,24 +53590,24 @@ "array_dims": 0 }, { - "name": "foreign_table_schema", + "name": "numeric_precision_radix", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_tables" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54472,24 +53616,24 @@ "array_dims": 0 }, { - "name": "foreign_table_name", + "name": "numeric_scale", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_tables" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54498,24 +53642,24 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", + "name": "datetime_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_tables" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -54524,96 +53668,76 @@ "array_dims": 0 }, { - "name": "foreign_server_name", + "name": "interval_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "foreign_tables" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "information_schema_catalog_name" - }, - "columns": [ + }, { - "name": "catalog_name", + "name": "interval_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "information_schema_catalog_name" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "key_column_usage" - }, - "columns": [ + }, { - "name": "constraint_catalog", + "name": "domain_default", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -54622,7 +53746,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54633,7 +53757,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54648,7 +53772,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -54659,7 +53783,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54674,7 +53798,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -54685,7 +53809,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54700,7 +53824,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "scope_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54711,7 +53835,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54726,7 +53850,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "scope_schema", "not_null": false, "is_array": false, "comment": "", @@ -54737,7 +53861,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54752,7 +53876,7 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "scope_name", "not_null": false, "is_array": false, "comment": "", @@ -54763,7 +53887,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54778,7 +53902,7 @@ "array_dims": 0 }, { - "name": "ordinal_position", + "name": "maximum_cardinality", "not_null": false, "is_array": false, "comment": "", @@ -54789,7 +53913,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { @@ -54804,24 +53928,24 @@ "array_dims": 0 }, { - "name": "position_in_unique_constraint", + "name": "dtd_identifier", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "key_column_usage" + "name": "domains" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -54836,11 +53960,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "columns": [ { - "name": "specific_catalog", + "name": "object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -54851,7 +53975,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -54866,7 +53990,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "object_schema", "not_null": false, "is_array": false, "comment": "", @@ -54877,7 +54001,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -54892,7 +54016,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "object_name", "not_null": false, "is_array": false, "comment": "", @@ -54903,7 +54027,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -54918,33 +54042,7 @@ "array_dims": 0 }, { - "name": "ordinal_position", - "not_null": false, - "is_array": false, - "comment": "", - "length": 4, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "parameters" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "cardinal_number" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "parameter_mode", + "name": "object_type", "not_null": false, "is_array": false, "comment": "", @@ -54955,7 +54053,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -54970,59 +54068,7 @@ "array_dims": 0 }, { - "name": "is_result", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "parameters" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "yes_or_no" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "as_locator", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "parameters" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "yes_or_no" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "parameter_name", + "name": "collection_type_identifier", "not_null": false, "is_array": false, "comment": "", @@ -55033,7 +54079,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55059,7 +54105,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55085,7 +54131,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55111,7 +54157,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55137,7 +54183,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55163,7 +54209,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55189,7 +54235,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55215,7 +54261,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55241,7 +54287,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55267,7 +54313,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55293,7 +54339,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55319,7 +54365,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55345,7 +54391,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55371,7 +54417,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55397,7 +54443,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55423,7 +54469,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55437,6 +54483,32 @@ "unsigned": false, "array_dims": 0 }, + { + "name": "domain_default", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "element_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, { "name": "udt_catalog", "not_null": false, @@ -55449,7 +54521,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55475,7 +54547,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55501,7 +54573,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55527,7 +54599,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55553,7 +54625,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55579,7 +54651,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55605,7 +54677,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55631,7 +54703,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "element_types" }, "table_alias": "", "type": { @@ -55644,26 +54716,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "enabled_roles" + }, + "columns": [ { - "name": "parameter_default", + "name": "role_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "parameters" + "name": "enabled_roles" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -55678,11 +54760,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrapper_options" }, "columns": [ { - "name": "constraint_catalog", + "name": "foreign_data_wrapper_catalog", "not_null": false, "is_array": false, "comment": "", @@ -55693,7 +54775,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrapper_options" }, "table_alias": "", "type": { @@ -55708,7 +54790,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "foreign_data_wrapper_name", "not_null": false, "is_array": false, "comment": "", @@ -55719,7 +54801,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrapper_options" }, "table_alias": "", "type": { @@ -55734,7 +54816,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "option_name", "not_null": false, "is_array": false, "comment": "", @@ -55745,7 +54827,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrapper_options" }, "table_alias": "", "type": { @@ -55760,33 +54842,43 @@ "array_dims": 0 }, { - "name": "unique_constraint_catalog", + "name": "option_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrapper_options" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_data_wrappers" + }, + "columns": [ { - "name": "unique_constraint_schema", + "name": "foreign_data_wrapper_catalog", "not_null": false, "is_array": false, "comment": "", @@ -55797,7 +54889,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrappers" }, "table_alias": "", "type": { @@ -55812,7 +54904,7 @@ "array_dims": 0 }, { - "name": "unique_constraint_name", + "name": "foreign_data_wrapper_name", "not_null": false, "is_array": false, "comment": "", @@ -55823,7 +54915,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrappers" }, "table_alias": "", "type": { @@ -55838,24 +54930,24 @@ "array_dims": 0 }, { - "name": "match_option", + "name": "authorization_identifier", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrappers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -55864,7 +54956,7 @@ "array_dims": 0 }, { - "name": "update_rule", + "name": "library_name", "not_null": false, "is_array": false, "comment": "", @@ -55875,7 +54967,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrappers" }, "table_alias": "", "type": { @@ -55890,7 +54982,7 @@ "array_dims": 0 }, { - "name": "delete_rule", + "name": "foreign_data_wrapper_language", "not_null": false, "is_array": false, "comment": "", @@ -55901,7 +54993,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "referential_constraints" + "name": "foreign_data_wrappers" }, "table_alias": "", "type": { @@ -55922,11 +55014,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_server_options" }, "columns": [ { - "name": "grantor", + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -55937,7 +55029,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_server_options" }, "table_alias": "", "type": { @@ -55952,7 +55044,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", @@ -55963,7 +55055,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_server_options" }, "table_alias": "", "type": { @@ -55978,7 +55070,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "option_name", "not_null": false, "is_array": false, "comment": "", @@ -55989,7 +55081,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_server_options" }, "table_alias": "", "type": { @@ -56004,7 +55096,43 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "option_value", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_server_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_servers" + }, + "columns": [ + { + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56015,7 +55143,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_servers" }, "table_alias": "", "type": { @@ -56030,7 +55158,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", @@ -56041,7 +55169,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_servers" }, "table_alias": "", "type": { @@ -56056,7 +55184,7 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "foreign_data_wrapper_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56067,7 +55195,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_servers" }, "table_alias": "", "type": { @@ -56082,7 +55210,33 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "foreign_data_wrapper_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_servers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "foreign_server_type", "not_null": false, "is_array": false, "comment": "", @@ -56093,7 +55247,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_servers" }, "table_alias": "", "type": { @@ -56108,7 +55262,7 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "foreign_server_version", "not_null": false, "is_array": false, "comment": "", @@ -56119,13 +55273,39 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_column_grants" + "name": "foreign_servers" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "authorization_identifier", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_servers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -56140,11 +55320,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_table_options" }, "columns": [ { - "name": "grantor", + "name": "foreign_table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56155,7 +55335,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_table_options" }, "table_alias": "", "type": { @@ -56170,7 +55350,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "foreign_table_schema", "not_null": false, "is_array": false, "comment": "", @@ -56181,7 +55361,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_table_options" }, "table_alias": "", "type": { @@ -56196,7 +55376,7 @@ "array_dims": 0 }, { - "name": "specific_catalog", + "name": "foreign_table_name", "not_null": false, "is_array": false, "comment": "", @@ -56207,7 +55387,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_table_options" }, "table_alias": "", "type": { @@ -56222,7 +55402,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "option_name", "not_null": false, "is_array": false, "comment": "", @@ -56233,7 +55413,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_table_options" }, "table_alias": "", "type": { @@ -56248,7 +55428,43 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "option_value", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_table_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "foreign_tables" + }, + "columns": [ + { + "name": "foreign_table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56259,7 +55475,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_tables" }, "table_alias": "", "type": { @@ -56274,7 +55490,7 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "foreign_table_schema", "not_null": false, "is_array": false, "comment": "", @@ -56285,7 +55501,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_tables" }, "table_alias": "", "type": { @@ -56300,7 +55516,7 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "foreign_table_name", "not_null": false, "is_array": false, "comment": "", @@ -56311,7 +55527,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_tables" }, "table_alias": "", "type": { @@ -56326,7 +55542,7 @@ "array_dims": 0 }, { - "name": "routine_name", + "name": "foreign_server_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56337,7 +55553,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_tables" }, "table_alias": "", "type": { @@ -56352,50 +55568,60 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "foreign_server_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "foreign_tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "information_schema_catalog_name" + }, + "columns": [ { - "name": "is_grantable", + "name": "catalog_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_routine_grants" + "name": "information_schema_catalog_name" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -56410,11 +55636,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "columns": [ { - "name": "grantor", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56425,7 +55651,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { @@ -56440,7 +55666,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -56451,7 +55677,33 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "constraint_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "key_column_usage" }, "table_alias": "", "type": { @@ -56477,7 +55729,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { @@ -56503,7 +55755,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { @@ -56529,7 +55781,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { @@ -56544,24 +55796,24 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -56570,24 +55822,24 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "ordinal_position", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -56596,24 +55848,24 @@ "array_dims": 0 }, { - "name": "with_hierarchy", + "name": "position_in_unique_constraint", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_table_grants" + "name": "key_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -56628,11 +55880,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "columns": [ { - "name": "grantor", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56643,7 +55895,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56658,7 +55910,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", @@ -56669,7 +55921,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56684,7 +55936,7 @@ "array_dims": 0 }, { - "name": "udt_catalog", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", @@ -56695,7 +55947,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56710,24 +55962,24 @@ "array_dims": 0 }, { - "name": "udt_schema", + "name": "ordinal_position", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -56736,24 +55988,24 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "parameter_mode", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -56762,7 +56014,7 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "is_result", "not_null": false, "is_array": false, "comment": "", @@ -56773,13 +56025,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -56788,7 +56040,7 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "as_locator", "not_null": false, "is_array": false, "comment": "", @@ -56799,7 +56051,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_udt_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56812,19 +56064,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "role_usage_grants" - }, - "columns": [ + }, { - "name": "grantor", + "name": "parameter_name", "not_null": false, "is_array": false, "comment": "", @@ -56835,7 +56077,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56850,24 +56092,24 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -56876,24 +56118,24 @@ "array_dims": 0 }, { - "name": "object_catalog", + "name": "character_maximum_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -56902,24 +56144,24 @@ "array_dims": 0 }, { - "name": "object_schema", + "name": "character_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -56928,7 +56170,7 @@ "array_dims": 0 }, { - "name": "object_name", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", @@ -56939,7 +56181,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { @@ -56954,24 +56196,24 @@ "array_dims": 0 }, { - "name": "object_type", + "name": "character_set_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -56980,24 +56222,24 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "character_set_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -57006,43 +56248,33 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "role_usage_grants" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "routine_column_usage" - }, - "columns": [ + }, { - "name": "specific_catalog", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", @@ -57053,7 +56285,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { @@ -57068,7 +56300,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", @@ -57079,7 +56311,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { @@ -57094,24 +56326,24 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "numeric_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57120,24 +56352,24 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "numeric_precision_radix", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57146,24 +56378,24 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "numeric_scale", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57172,24 +56404,24 @@ "array_dims": 0 }, { - "name": "routine_name", + "name": "datetime_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57198,24 +56430,24 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "interval_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -57224,24 +56456,24 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "interval_precision", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57250,7 +56482,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", @@ -57261,7 +56493,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { @@ -57276,7 +56508,7 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -57287,7 +56519,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_column_usage" + "name": "parameters" }, "table_alias": "", "type": { @@ -57300,19 +56532,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "routine_privileges" - }, - "columns": [ + }, { - "name": "grantor", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -57323,7 +56545,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { @@ -57338,7 +56560,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "scope_catalog", "not_null": false, "is_array": false, "comment": "", @@ -57349,7 +56571,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { @@ -57364,7 +56586,7 @@ "array_dims": 0 }, { - "name": "specific_catalog", + "name": "scope_schema", "not_null": false, "is_array": false, "comment": "", @@ -57375,7 +56597,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { @@ -57390,7 +56612,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "scope_name", "not_null": false, "is_array": false, "comment": "", @@ -57401,7 +56623,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { @@ -57416,24 +56638,24 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "maximum_cardinality", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -57442,7 +56664,7 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "dtd_identifier", "not_null": false, "is_array": false, "comment": "", @@ -57453,7 +56675,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { @@ -57468,33 +56690,43 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "parameter_default", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "parameters" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "referential_constraints" + }, + "columns": [ { - "name": "routine_name", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -57505,7 +56737,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "referential_constraints" }, "table_alias": "", "type": { @@ -57520,24 +56752,24 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "referential_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -57546,43 +56778,33 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_privileges" + "name": "referential_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "routine_routine_usage" - }, - "columns": [ + }, { - "name": "specific_catalog", + "name": "unique_constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -57593,7 +56815,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { @@ -57608,7 +56830,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "unique_constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -57619,7 +56841,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { @@ -57634,7 +56856,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "unique_constraint_name", "not_null": false, "is_array": false, "comment": "", @@ -57645,7 +56867,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { @@ -57660,24 +56882,24 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "match_option", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -57686,24 +56908,24 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "update_rule", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -57712,24 +56934,24 @@ "array_dims": 0 }, { - "name": "routine_name", + "name": "delete_rule", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_routine_usage" + "name": "referential_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -57744,11 +56966,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "columns": [ { - "name": "specific_catalog", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -57759,7 +56981,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57774,7 +56996,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -57785,7 +57007,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57800,7 +57022,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -57811,7 +57033,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57826,7 +57048,7 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -57837,7 +57059,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57852,7 +57074,7 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -57863,7 +57085,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57878,7 +57100,7 @@ "array_dims": 0 }, { - "name": "routine_name", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -57889,7 +57111,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { @@ -57904,24 +57126,24 @@ "array_dims": 0 }, { - "name": "sequence_catalog", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_column_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -57930,7 +57152,43 @@ "array_dims": 0 }, { - "name": "sequence_schema", + "name": "is_grantable", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "role_column_grants" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "role_routine_grants" + }, + "columns": [ + { + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -57941,7 +57199,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -57956,7 +57214,7 @@ "array_dims": 0 }, { - "name": "sequence_name", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -57967,7 +57225,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_sequence_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -57980,17 +57238,7 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "routine_table_usage" - }, - "columns": [ + }, { "name": "specific_catalog", "not_null": false, @@ -58003,7 +57251,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58029,7 +57277,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58055,7 +57303,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58081,7 +57329,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58107,7 +57355,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58133,33 +57381,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "table_catalog", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { @@ -58174,24 +57396,24 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -58200,24 +57422,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routine_table_usage" + "name": "role_routine_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -58232,11 +57454,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "columns": [ { - "name": "specific_catalog", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -58247,7 +57469,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { @@ -58262,7 +57484,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -58273,7 +57495,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { @@ -58288,7 +57510,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -58299,7 +57521,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { @@ -58314,7 +57536,7 @@ "array_dims": 0 }, { - "name": "routine_catalog", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -58325,7 +57547,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { @@ -58340,7 +57562,7 @@ "array_dims": 0 }, { - "name": "routine_schema", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -58351,7 +57573,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { @@ -58366,24 +57588,24 @@ "array_dims": 0 }, { - "name": "routine_name", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -58392,7 +57614,7 @@ "array_dims": 0 }, { - "name": "routine_type", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", @@ -58403,13 +57625,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -58418,33 +57640,43 @@ "array_dims": 0 }, { - "name": "module_catalog", + "name": "with_hierarchy", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_table_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "role_udt_grants" + }, + "columns": [ { - "name": "module_schema", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -58455,7 +57687,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58470,7 +57702,7 @@ "array_dims": 0 }, { - "name": "module_name", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -58481,7 +57713,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58507,7 +57739,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58533,7 +57765,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58559,7 +57791,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58574,7 +57806,7 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", @@ -58585,7 +57817,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { @@ -58600,50 +57832,60 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_udt_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "role_usage_grants" + }, + "columns": [ { - "name": "character_octet_length", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58652,7 +57894,7 @@ "array_dims": 0 }, { - "name": "character_set_catalog", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -58663,7 +57905,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { @@ -58678,7 +57920,7 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -58689,7 +57931,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { @@ -58704,7 +57946,7 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "object_schema", "not_null": false, "is_array": false, "comment": "", @@ -58715,7 +57957,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { @@ -58730,7 +57972,7 @@ "array_dims": 0 }, { - "name": "collation_catalog", + "name": "object_name", "not_null": false, "is_array": false, "comment": "", @@ -58741,7 +57983,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { @@ -58756,24 +57998,24 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "object_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -58782,24 +58024,24 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -58808,50 +58050,60 @@ "array_dims": 0 }, { - "name": "numeric_precision", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "role_usage_grants" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routine_column_usage" + }, + "columns": [ { - "name": "numeric_precision_radix", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58860,24 +58112,24 @@ "array_dims": 0 }, { - "name": "numeric_scale", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58886,24 +58138,24 @@ "array_dims": 0 }, { - "name": "datetime_precision", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58912,24 +58164,24 @@ "array_dims": 0 }, { - "name": "interval_type", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58938,24 +58190,24 @@ "array_dims": 0 }, { - "name": "interval_precision", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -58964,7 +58216,7 @@ "array_dims": 0 }, { - "name": "type_udt_catalog", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", @@ -58975,7 +58227,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { @@ -58990,7 +58242,7 @@ "array_dims": 0 }, { - "name": "type_udt_schema", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -59001,7 +58253,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { @@ -59016,7 +58268,7 @@ "array_dims": 0 }, { - "name": "type_udt_name", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -59027,7 +58279,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { @@ -59042,7 +58294,7 @@ "array_dims": 0 }, { - "name": "scope_catalog", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -59053,7 +58305,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { @@ -59068,7 +58320,7 @@ "array_dims": 0 }, { - "name": "scope_schema", + "name": "column_name", "not_null": false, "is_array": false, "comment": "", @@ -59079,7 +58331,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_column_usage" }, "table_alias": "", "type": { @@ -59092,9 +58344,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routine_privileges" + }, + "columns": [ { - "name": "scope_name", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -59105,7 +58367,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { @@ -59120,24 +58382,24 @@ "array_dims": 0 }, { - "name": "maximum_cardinality", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59146,7 +58408,7 @@ "array_dims": 0 }, { - "name": "dtd_identifier", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", @@ -59157,7 +58419,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { @@ -59172,24 +58434,24 @@ "array_dims": 0 }, { - "name": "routine_body", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59198,24 +58460,24 @@ "array_dims": 0 }, { - "name": "routine_definition", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59224,24 +58486,24 @@ "array_dims": 0 }, { - "name": "external_name", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59250,24 +58512,24 @@ "array_dims": 0 }, { - "name": "external_language", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59276,24 +58538,24 @@ "array_dims": 0 }, { - "name": "parameter_style", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59302,7 +58564,7 @@ "array_dims": 0 }, { - "name": "is_deterministic", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", @@ -59313,13 +58575,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -59328,7 +58590,7 @@ "array_dims": 0 }, { - "name": "sql_data_access", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", @@ -59339,39 +58601,49 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routine_routine_usage" + }, + "columns": [ { - "name": "is_null_call", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59380,24 +58652,24 @@ "array_dims": 0 }, { - "name": "sql_path", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59406,24 +58678,24 @@ "array_dims": 0 }, { - "name": "schema_level_routine", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59432,24 +58704,24 @@ "array_dims": 0 }, { - "name": "max_dynamic_result_sets", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59458,24 +58730,24 @@ "array_dims": 0 }, { - "name": "is_user_defined_cast", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59484,50 +58756,60 @@ "array_dims": 0 }, { - "name": "is_implicitly_invocable", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_routine_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routine_sequence_usage" + }, + "columns": [ { - "name": "security_type", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59536,7 +58818,7 @@ "array_dims": 0 }, { - "name": "to_sql_specific_catalog", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", @@ -59547,7 +58829,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { @@ -59562,7 +58844,7 @@ "array_dims": 0 }, { - "name": "to_sql_specific_schema", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", @@ -59573,7 +58855,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { @@ -59588,7 +58870,7 @@ "array_dims": 0 }, { - "name": "to_sql_specific_name", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", @@ -59599,7 +58881,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { @@ -59614,24 +58896,24 @@ "array_dims": 0 }, { - "name": "as_locator", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59640,24 +58922,24 @@ "array_dims": 0 }, { - "name": "created", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "time_stamp" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59666,24 +58948,24 @@ "array_dims": 0 }, { - "name": "last_altered", + "name": "sequence_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 8, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "time_stamp" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59692,24 +58974,24 @@ "array_dims": 0 }, { - "name": "new_savepoint_level", + "name": "sequence_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59718,50 +59000,60 @@ "array_dims": 0 }, { - "name": "is_udt_dependent", + "name": "sequence_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_sequence_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routine_table_usage" + }, + "columns": [ { - "name": "result_cast_from_data_type", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59770,24 +59062,24 @@ "array_dims": 0 }, { - "name": "result_cast_as_locator", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59796,24 +59088,24 @@ "array_dims": 0 }, { - "name": "result_cast_char_max_length", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59822,24 +59114,24 @@ "array_dims": 0 }, { - "name": "result_cast_char_octet_length", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -59848,7 +59140,7 @@ "array_dims": 0 }, { - "name": "result_cast_char_set_catalog", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", @@ -59859,7 +59151,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { @@ -59874,7 +59166,7 @@ "array_dims": 0 }, { - "name": "result_cast_char_set_schema", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", @@ -59885,7 +59177,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { @@ -59900,7 +59192,7 @@ "array_dims": 0 }, { - "name": "result_cast_char_set_name", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -59911,7 +59203,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { @@ -59926,7 +59218,7 @@ "array_dims": 0 }, { - "name": "result_cast_collation_catalog", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -59937,7 +59229,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { @@ -59952,7 +59244,7 @@ "array_dims": 0 }, { - "name": "result_cast_collation_schema", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -59963,7 +59255,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "routines" + "name": "routine_table_usage" }, "table_alias": "", "type": { @@ -59976,9 +59268,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "routines" + }, + "columns": [ { - "name": "result_cast_collation_name", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", @@ -60004,11 +59306,11 @@ "array_dims": 0 }, { - "name": "result_cast_numeric_precision", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60021,7 +59323,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60030,11 +59332,11 @@ "array_dims": 0 }, { - "name": "result_cast_numeric_precision_radix", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60047,7 +59349,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60056,11 +59358,11 @@ "array_dims": 0 }, { - "name": "result_cast_numeric_scale", + "name": "routine_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60073,7 +59375,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60082,11 +59384,11 @@ "array_dims": 0 }, { - "name": "result_cast_datetime_precision", + "name": "routine_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60099,7 +59401,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60108,11 +59410,11 @@ "array_dims": 0 }, { - "name": "result_cast_interval_type", + "name": "routine_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60125,7 +59427,7 @@ "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60134,11 +59436,11 @@ "array_dims": 0 }, { - "name": "result_cast_interval_precision", + "name": "routine_type", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60151,7 +59453,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -60160,7 +59462,7 @@ "array_dims": 0 }, { - "name": "result_cast_type_udt_catalog", + "name": "module_catalog", "not_null": false, "is_array": false, "comment": "", @@ -60186,7 +59488,7 @@ "array_dims": 0 }, { - "name": "result_cast_type_udt_schema", + "name": "module_schema", "not_null": false, "is_array": false, "comment": "", @@ -60212,7 +59514,7 @@ "array_dims": 0 }, { - "name": "result_cast_type_udt_name", + "name": "module_name", "not_null": false, "is_array": false, "comment": "", @@ -60238,7 +59540,7 @@ "array_dims": 0 }, { - "name": "result_cast_scope_catalog", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", @@ -60264,7 +59566,7 @@ "array_dims": 0 }, { - "name": "result_cast_scope_schema", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -60290,7 +59592,7 @@ "array_dims": 0 }, { - "name": "result_cast_scope_name", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -60316,11 +59618,11 @@ "array_dims": 0 }, { - "name": "result_cast_maximum_cardinality", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60333,7 +59635,7 @@ "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -60342,11 +59644,11 @@ "array_dims": 0 }, { - "name": "result_cast_dtd_identifier", + "name": "character_maximum_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", @@ -60359,69 +59661,7 @@ "type": { "catalog": "", "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "schemata" - }, - "columns": [ - { - "name": "catalog_name", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "schemata" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "schema_name", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "schemata" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -60430,24 +59670,24 @@ "array_dims": 0 }, { - "name": "schema_owner", + "name": "character_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "schemata" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -60456,7 +59696,7 @@ "array_dims": 0 }, { - "name": "default_character_set_catalog", + "name": "character_set_catalog", "not_null": false, "is_array": false, "comment": "", @@ -60467,7 +59707,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "schemata" + "name": "routines" }, "table_alias": "", "type": { @@ -60482,7 +59722,7 @@ "array_dims": 0 }, { - "name": "default_character_set_schema", + "name": "character_set_schema", "not_null": false, "is_array": false, "comment": "", @@ -60493,7 +59733,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "schemata" + "name": "routines" }, "table_alias": "", "type": { @@ -60508,7 +59748,7 @@ "array_dims": 0 }, { - "name": "default_character_set_name", + "name": "character_set_name", "not_null": false, "is_array": false, "comment": "", @@ -60519,7 +59759,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "schemata" + "name": "routines" }, "table_alias": "", "type": { @@ -60534,43 +59774,7 @@ "array_dims": 0 }, { - "name": "sql_path", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "schemata" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "character_data" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sequences" - }, - "columns": [ - { - "name": "sequence_catalog", + "name": "collation_catalog", "not_null": false, "is_array": false, "comment": "", @@ -60581,7 +59785,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60596,7 +59800,7 @@ "array_dims": 0 }, { - "name": "sequence_schema", + "name": "collation_schema", "not_null": false, "is_array": false, "comment": "", @@ -60607,7 +59811,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60622,7 +59826,7 @@ "array_dims": 0 }, { - "name": "sequence_name", + "name": "collation_name", "not_null": false, "is_array": false, "comment": "", @@ -60633,7 +59837,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60647,32 +59851,6 @@ "unsigned": false, "array_dims": 0 }, - { - "name": "data_type", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sequences" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "character_data" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, { "name": "numeric_precision", "not_null": false, @@ -60685,7 +59863,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60711,7 +59889,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60737,7 +59915,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60752,24 +59930,24 @@ "array_dims": 0 }, { - "name": "start_value", + "name": "datetime_precision", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -60778,7 +59956,7 @@ "array_dims": 0 }, { - "name": "minimum_value", + "name": "interval_type", "not_null": false, "is_array": false, "comment": "", @@ -60789,7 +59967,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { @@ -60804,24 +59982,24 @@ "array_dims": 0 }, { - "name": "maximum_value", + "name": "interval_precision", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -60830,24 +60008,24 @@ "array_dims": 0 }, { - "name": "increment", + "name": "type_udt_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60856,60 +60034,50 @@ "array_dims": 0 }, { - "name": "cycle_option", + "name": "type_udt_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sequences" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sql_features" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "type_udt_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60918,24 +60086,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "scope_catalog", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60944,24 +60112,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "scope_schema", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60970,24 +60138,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "scope_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -60996,8 +60164,8 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "maximum_cardinality", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -61007,13 +60175,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61022,24 +60190,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "dtd_identifier", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61048,7 +60216,7 @@ "array_dims": 0 }, { - "name": "feature_id", + "name": "routine_body", "not_null": false, "is_array": false, "comment": "", @@ -61059,7 +60227,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { @@ -61074,7 +60242,7 @@ "array_dims": 0 }, { - "name": "feature_name", + "name": "routine_definition", "not_null": false, "is_array": false, "comment": "", @@ -61085,7 +60253,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { @@ -61100,7 +60268,7 @@ "array_dims": 0 }, { - "name": "sub_feature_id", + "name": "external_name", "not_null": false, "is_array": false, "comment": "", @@ -61111,7 +60279,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { @@ -61126,7 +60294,7 @@ "array_dims": 0 }, { - "name": "sub_feature_name", + "name": "external_language", "not_null": false, "is_array": false, "comment": "", @@ -61137,7 +60305,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { @@ -61152,7 +60320,7 @@ "array_dims": 0 }, { - "name": "is_supported", + "name": "parameter_style", "not_null": false, "is_array": false, "comment": "", @@ -61163,13 +60331,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -61178,7 +60346,7 @@ "array_dims": 0 }, { - "name": "is_verified_by", + "name": "is_deterministic", "not_null": false, "is_array": false, "comment": "", @@ -61189,13 +60357,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61204,7 +60372,7 @@ "array_dims": 0 }, { - "name": "comments", + "name": "sql_data_access", "not_null": false, "is_array": false, "comment": "", @@ -61215,7 +60383,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_features" + "name": "routines" }, "table_alias": "", "type": { @@ -61228,36 +60396,26 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sql_implementation_info" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "is_null_call", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61266,24 +60424,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "sql_path", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -61292,24 +60450,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "schema_level_routine", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61318,8 +60476,8 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "max_dynamic_result_sets", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -61329,13 +60487,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61344,24 +60502,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "is_user_defined_cast", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61370,24 +60528,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "is_implicitly_invocable", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61396,7 +60554,7 @@ "array_dims": 0 }, { - "name": "implementation_info_id", + "name": "security_type", "not_null": false, "is_array": false, "comment": "", @@ -61407,7 +60565,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { @@ -61422,24 +60580,24 @@ "array_dims": 0 }, { - "name": "implementation_info_name", + "name": "to_sql_specific_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61448,24 +60606,24 @@ "array_dims": 0 }, { - "name": "integer_value", + "name": "to_sql_specific_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61474,24 +60632,24 @@ "array_dims": 0 }, { - "name": "character_value", + "name": "to_sql_specific_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61500,7 +60658,7 @@ "array_dims": 0 }, { - "name": "comments", + "name": "as_locator", "not_null": false, "is_array": false, "comment": "", @@ -61511,49 +60669,39 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_implementation_info" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sql_parts" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "created", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "time_stamp" }, "is_sqlc_slice": false, "embed_table": null, @@ -61562,24 +60710,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "last_altered", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 8, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "time_stamp" }, "is_sqlc_slice": false, "embed_table": null, @@ -61588,24 +60736,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "new_savepoint_level", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61614,24 +60762,24 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "is_udt_dependent", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61640,24 +60788,24 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "result_cast_from_data_type", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -61666,24 +60814,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "result_cast_as_locator", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -61692,24 +60840,24 @@ "array_dims": 0 }, { - "name": "feature_id", + "name": "result_cast_char_max_length", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61718,24 +60866,24 @@ "array_dims": 0 }, { - "name": "feature_name", + "name": "result_cast_char_octet_length", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61744,24 +60892,24 @@ "array_dims": 0 }, { - "name": "is_supported", + "name": "result_cast_char_set_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61770,24 +60918,24 @@ "array_dims": 0 }, { - "name": "is_verified_by", + "name": "result_cast_char_set_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61796,60 +60944,50 @@ "array_dims": 0 }, { - "name": "comments", + "name": "result_cast_char_set_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_parts" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "sql_sizing" - }, - "columns": [ + }, { - "name": "tableoid", - "not_null": true, + "name": "result_cast_collation_catalog", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "oid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61858,24 +60996,24 @@ "array_dims": 0 }, { - "name": "cmax", - "not_null": true, + "name": "result_cast_collation_schema", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61884,24 +61022,24 @@ "array_dims": 0 }, { - "name": "xmax", - "not_null": true, + "name": "result_cast_collation_name", + "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -61910,8 +61048,8 @@ "array_dims": 0 }, { - "name": "cmin", - "not_null": true, + "name": "result_cast_numeric_precision", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -61921,13 +61059,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cid" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61936,8 +61074,8 @@ "array_dims": 0 }, { - "name": "xmin", - "not_null": true, + "name": "result_cast_numeric_precision_radix", + "not_null": false, "is_array": false, "comment": "", "length": 4, @@ -61947,13 +61085,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "xid" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61962,24 +61100,24 @@ "array_dims": 0 }, { - "name": "ctid", - "not_null": true, + "name": "result_cast_numeric_scale", + "not_null": false, "is_array": false, "comment": "", - "length": 6, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "tid" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -61988,7 +61126,7 @@ "array_dims": 0 }, { - "name": "sizing_id", + "name": "result_cast_datetime_precision", "not_null": false, "is_array": false, "comment": "", @@ -61999,7 +61137,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { @@ -62014,7 +61152,7 @@ "array_dims": 0 }, { - "name": "sizing_name", + "name": "result_cast_interval_type", "not_null": false, "is_array": false, "comment": "", @@ -62025,7 +61163,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { @@ -62040,7 +61178,7 @@ "array_dims": 0 }, { - "name": "supported_value", + "name": "result_cast_interval_precision", "not_null": false, "is_array": false, "comment": "", @@ -62051,7 +61189,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { @@ -62066,43 +61204,33 @@ "array_dims": 0 }, { - "name": "comments", + "name": "result_cast_type_udt_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "sql_sizing" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "table_constraints" - }, - "columns": [ + }, { - "name": "constraint_catalog", + "name": "result_cast_type_udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -62113,7 +61241,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { @@ -62128,7 +61256,7 @@ "array_dims": 0 }, { - "name": "constraint_schema", + "name": "result_cast_type_udt_name", "not_null": false, "is_array": false, "comment": "", @@ -62139,7 +61267,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { @@ -62154,7 +61282,7 @@ "array_dims": 0 }, { - "name": "constraint_name", + "name": "result_cast_scope_catalog", "not_null": false, "is_array": false, "comment": "", @@ -62165,7 +61293,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { @@ -62180,7 +61308,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "result_cast_scope_schema", "not_null": false, "is_array": false, "comment": "", @@ -62191,7 +61319,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { @@ -62206,7 +61334,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "result_cast_scope_name", "not_null": false, "is_array": false, "comment": "", @@ -62217,7 +61345,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { @@ -62232,24 +61360,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "result_cast_maximum_cardinality", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -62258,50 +61386,60 @@ "array_dims": 0 }, { - "name": "constraint_type", + "name": "result_cast_dtd_identifier", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "routines" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "schemata" + }, + "columns": [ { - "name": "is_deferrable", + "name": "catalog_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "schemata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -62310,24 +61448,24 @@ "array_dims": 0 }, { - "name": "initially_deferred", + "name": "schema_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "schemata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -62336,24 +61474,24 @@ "array_dims": 0 }, { - "name": "enforced", + "name": "schema_owner", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "schemata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -62362,43 +61500,33 @@ "array_dims": 0 }, { - "name": "nulls_distinct", + "name": "default_character_set_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_constraints" + "name": "schemata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "table_privileges" - }, - "columns": [ + }, { - "name": "grantor", + "name": "default_character_set_schema", "not_null": false, "is_array": false, "comment": "", @@ -62409,7 +61537,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "schemata" }, "table_alias": "", "type": { @@ -62424,7 +61552,7 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "default_character_set_name", "not_null": false, "is_array": false, "comment": "", @@ -62435,7 +61563,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "schemata" }, "table_alias": "", "type": { @@ -62450,33 +61578,43 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "sql_path", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "schemata" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "sequences" + }, + "columns": [ { - "name": "table_schema", + "name": "sequence_catalog", "not_null": false, "is_array": false, "comment": "", @@ -62487,7 +61625,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "sequences" }, "table_alias": "", "type": { @@ -62502,7 +61640,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "sequence_schema", "not_null": false, "is_array": false, "comment": "", @@ -62513,7 +61651,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "sequences" }, "table_alias": "", "type": { @@ -62528,24 +61666,24 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "sequence_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -62554,7 +61692,7 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "data_type", "not_null": false, "is_array": false, "comment": "", @@ -62565,13 +61703,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -62580,60 +61718,50 @@ "array_dims": 0 }, { - "name": "with_hierarchy", + "name": "numeric_precision", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "table_privileges" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "tables" - }, - "columns": [ + }, { - "name": "table_catalog", + "name": "numeric_precision_radix", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -62642,24 +61770,24 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "numeric_scale", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -62668,24 +61796,24 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "start_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -62694,7 +61822,7 @@ "array_dims": 0 }, { - "name": "table_type", + "name": "minimum_value", "not_null": false, "is_array": false, "comment": "", @@ -62705,7 +61833,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { @@ -62720,24 +61848,24 @@ "array_dims": 0 }, { - "name": "self_referencing_column_name", + "name": "maximum_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -62746,7 +61874,7 @@ "array_dims": 0 }, { - "name": "reference_generation", + "name": "increment", "not_null": false, "is_array": false, "comment": "", @@ -62757,7 +61885,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { @@ -62772,50 +61900,60 @@ "array_dims": 0 }, { - "name": "user_defined_type_catalog", + "name": "cycle_option", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sequences" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "sql_features" + }, + "columns": [ { - "name": "user_defined_type_schema", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -62824,24 +61962,24 @@ "array_dims": 0 }, { - "name": "user_defined_type_name", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -62850,24 +61988,24 @@ "array_dims": 0 }, { - "name": "is_insertable_into", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -62876,24 +62014,24 @@ "array_dims": 0 }, { - "name": "is_typed", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -62902,60 +62040,50 @@ "array_dims": 0 }, { - "name": "commit_action", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "tables" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "transforms" - }, - "columns": [ + }, { - "name": "udt_catalog", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -62964,24 +62092,24 @@ "array_dims": 0 }, { - "name": "udt_schema", + "name": "feature_id", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -62990,24 +62118,24 @@ "array_dims": 0 }, { - "name": "udt_name", + "name": "feature_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63016,24 +62144,24 @@ "array_dims": 0 }, { - "name": "specific_catalog", + "name": "sub_feature_id", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63042,24 +62170,24 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "sub_feature_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63068,24 +62196,24 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "is_supported", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -63094,24 +62222,24 @@ "array_dims": 0 }, { - "name": "group_name", + "name": "is_verified_by", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63120,7 +62248,7 @@ "array_dims": 0 }, { - "name": "transform_type", + "name": "comments", "not_null": false, "is_array": false, "comment": "", @@ -63131,7 +62259,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "transforms" + "name": "sql_features" }, "table_alias": "", "type": { @@ -63152,28 +62280,28 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "columns": [ { - "name": "trigger_catalog", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63182,24 +62310,24 @@ "array_dims": 0 }, { - "name": "trigger_schema", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63208,24 +62336,24 @@ "array_dims": 0 }, { - "name": "trigger_name", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63234,24 +62362,24 @@ "array_dims": 0 }, { - "name": "event_object_catalog", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63260,24 +62388,24 @@ "array_dims": 0 }, { - "name": "event_object_schema", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63286,24 +62414,24 @@ "array_dims": 0 }, { - "name": "event_object_table", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63312,60 +62440,50 @@ "array_dims": 0 }, { - "name": "event_object_column", + "name": "implementation_info_id", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggered_update_columns" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "triggers" - }, - "columns": [ + }, { - "name": "trigger_catalog", + "name": "implementation_info_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63374,24 +62492,24 @@ "array_dims": 0 }, { - "name": "trigger_schema", + "name": "integer_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -63400,24 +62518,24 @@ "array_dims": 0 }, { - "name": "trigger_name", + "name": "character_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_implementation_info" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63426,7 +62544,7 @@ "array_dims": 0 }, { - "name": "event_manipulation", + "name": "comments", "not_null": false, "is_array": false, "comment": "", @@ -63437,7 +62555,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_implementation_info" }, "table_alias": "", "type": { @@ -63450,26 +62568,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "sql_parts" + }, + "columns": [ { - "name": "event_object_catalog", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63478,24 +62606,24 @@ "array_dims": 0 }, { - "name": "event_object_schema", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63504,24 +62632,24 @@ "array_dims": 0 }, { - "name": "event_object_table", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63530,8 +62658,8 @@ "array_dims": 0 }, { - "name": "action_order", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", "length": 4, @@ -63541,13 +62669,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63556,24 +62684,24 @@ "array_dims": 0 }, { - "name": "action_condition", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63582,24 +62710,24 @@ "array_dims": 0 }, { - "name": "action_statement", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63608,7 +62736,7 @@ "array_dims": 0 }, { - "name": "action_orientation", + "name": "feature_id", "not_null": false, "is_array": false, "comment": "", @@ -63619,7 +62747,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { @@ -63634,7 +62762,7 @@ "array_dims": 0 }, { - "name": "action_timing", + "name": "feature_name", "not_null": false, "is_array": false, "comment": "", @@ -63645,7 +62773,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { @@ -63660,24 +62788,24 @@ "array_dims": 0 }, { - "name": "action_reference_old_table", + "name": "is_supported", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -63686,24 +62814,24 @@ "array_dims": 0 }, { - "name": "action_reference_new_table", + "name": "is_verified_by", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63712,76 +62840,24 @@ "array_dims": 0 }, { - "name": "action_reference_old_row", + "name": "comments", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "triggers" + "name": "sql_parts" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "action_reference_new_row", - "not_null": false, - "is_array": false, - "comment": "", - "length": 64, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "triggers" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "sql_identifier" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "created", - "not_null": false, - "is_array": false, - "comment": "", - "length": 8, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "triggers" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "time_stamp" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -63796,28 +62872,28 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "columns": [ { - "name": "grantor", - "not_null": false, + "name": "tableoid", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "oid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63826,24 +62902,24 @@ "array_dims": 0 }, { - "name": "grantee", - "not_null": false, + "name": "cmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63852,24 +62928,24 @@ "array_dims": 0 }, { - "name": "udt_catalog", - "not_null": false, + "name": "xmax", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63878,24 +62954,24 @@ "array_dims": 0 }, { - "name": "udt_schema", - "not_null": false, + "name": "cmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63904,24 +62980,24 @@ "array_dims": 0 }, { - "name": "udt_name", - "not_null": false, + "name": "xmin", + "not_null": true, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "xid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63930,24 +63006,24 @@ "array_dims": 0 }, { - "name": "privilege_type", - "not_null": false, + "name": "ctid", + "not_null": true, "is_array": false, "comment": "", - "length": -1, + "length": 6, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "tid" }, "is_sqlc_slice": false, "embed_table": null, @@ -63956,60 +63032,50 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "sizing_id", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "udt_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "usage_privileges" - }, - "columns": [ + }, { - "name": "grantor", + "name": "sizing_name", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -64018,24 +63084,24 @@ "array_dims": 0 }, { - "name": "grantee", + "name": "supported_value", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": 4, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "cardinal_number" }, "is_sqlc_slice": false, "embed_table": null, @@ -64044,33 +63110,43 @@ "array_dims": 0 }, { - "name": "object_catalog", + "name": "comments", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "sql_sizing" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "table_constraints" + }, + "columns": [ { - "name": "object_schema", + "name": "constraint_catalog", "not_null": false, "is_array": false, "comment": "", @@ -64081,7 +63157,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "table_constraints" }, "table_alias": "", "type": { @@ -64096,7 +63172,7 @@ "array_dims": 0 }, { - "name": "object_name", + "name": "constraint_schema", "not_null": false, "is_array": false, "comment": "", @@ -64107,7 +63183,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "table_constraints" }, "table_alias": "", "type": { @@ -64122,24 +63198,24 @@ "array_dims": 0 }, { - "name": "object_type", + "name": "constraint_name", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64148,24 +63224,24 @@ "array_dims": 0 }, { - "name": "privilege_type", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64174,43 +63250,33 @@ "array_dims": 0 }, { - "name": "is_grantable", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "usage_privileges" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "user_defined_types" - }, - "columns": [ + }, { - "name": "user_defined_type_catalog", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -64221,7 +63287,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { @@ -64236,24 +63302,24 @@ "array_dims": 0 }, { - "name": "user_defined_type_schema", + "name": "constraint_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -64262,24 +63328,24 @@ "array_dims": 0 }, { - "name": "user_defined_type_name", + "name": "is_deferrable", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -64288,7 +63354,7 @@ "array_dims": 0 }, { - "name": "user_defined_type_category", + "name": "initially_deferred", "not_null": false, "is_array": false, "comment": "", @@ -64299,13 +63365,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -64314,7 +63380,7 @@ "array_dims": 0 }, { - "name": "is_instantiable", + "name": "enforced", "not_null": false, "is_array": false, "comment": "", @@ -64325,7 +63391,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { @@ -64340,7 +63406,7 @@ "array_dims": 0 }, { - "name": "is_final", + "name": "nulls_distinct", "not_null": false, "is_array": false, "comment": "", @@ -64351,7 +63417,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_constraints" }, "table_alias": "", "type": { @@ -64364,26 +63430,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "table_privileges" + }, + "columns": [ { - "name": "ordering_form", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64392,24 +63468,24 @@ "array_dims": 0 }, { - "name": "ordering_category", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", - "length": -1, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64418,7 +63494,7 @@ "array_dims": 0 }, { - "name": "ordering_routine_catalog", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", @@ -64429,7 +63505,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { @@ -64444,7 +63520,7 @@ "array_dims": 0 }, { - "name": "ordering_routine_schema", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -64455,7 +63531,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { @@ -64470,7 +63546,7 @@ "array_dims": 0 }, { - "name": "ordering_routine_name", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -64481,7 +63557,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { @@ -64496,7 +63572,7 @@ "array_dims": 0 }, { - "name": "reference_type", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", @@ -64507,7 +63583,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { @@ -64522,7 +63598,7 @@ "array_dims": 0 }, { - "name": "data_type", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", @@ -64533,13 +63609,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "character_data" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -64548,50 +63624,60 @@ "array_dims": 0 }, { - "name": "character_maximum_length", + "name": "with_hierarchy", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "table_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "tables" + }, + "columns": [ { - "name": "character_octet_length", + "name": "table_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64600,7 +63686,7 @@ "array_dims": 0 }, { - "name": "character_set_catalog", + "name": "table_schema", "not_null": false, "is_array": false, "comment": "", @@ -64611,7 +63697,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { @@ -64626,7 +63712,7 @@ "array_dims": 0 }, { - "name": "character_set_schema", + "name": "table_name", "not_null": false, "is_array": false, "comment": "", @@ -64637,7 +63723,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { @@ -64652,24 +63738,24 @@ "array_dims": 0 }, { - "name": "character_set_name", + "name": "table_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -64678,7 +63764,7 @@ "array_dims": 0 }, { - "name": "collation_catalog", + "name": "self_referencing_column_name", "not_null": false, "is_array": false, "comment": "", @@ -64689,7 +63775,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { @@ -64704,24 +63790,24 @@ "array_dims": 0 }, { - "name": "collation_schema", + "name": "reference_generation", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -64730,7 +63816,7 @@ "array_dims": 0 }, { - "name": "collation_name", + "name": "user_defined_type_catalog", "not_null": false, "is_array": false, "comment": "", @@ -64741,7 +63827,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { @@ -64756,24 +63842,24 @@ "array_dims": 0 }, { - "name": "numeric_precision", + "name": "user_defined_type_schema", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64782,24 +63868,24 @@ "array_dims": 0 }, { - "name": "numeric_precision_radix", + "name": "user_defined_type_name", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64808,24 +63894,24 @@ "array_dims": 0 }, { - "name": "numeric_scale", + "name": "is_insertable_into", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -64834,24 +63920,24 @@ "array_dims": 0 }, { - "name": "datetime_precision", + "name": "is_typed", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -64860,7 +63946,7 @@ "array_dims": 0 }, { - "name": "interval_type", + "name": "commit_action", "not_null": false, "is_array": false, "comment": "", @@ -64871,7 +63957,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "tables" }, "table_alias": "", "type": { @@ -64884,26 +63970,36 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "transforms" + }, + "columns": [ { - "name": "interval_precision", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", - "length": 4, + "length": 64, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "transforms" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "cardinal_number" + "name": "sql_identifier" }, "is_sqlc_slice": false, "embed_table": null, @@ -64912,7 +64008,7 @@ "array_dims": 0 }, { - "name": "source_dtd_identifier", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -64923,7 +64019,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "transforms" }, "table_alias": "", "type": { @@ -64938,7 +64034,7 @@ "array_dims": 0 }, { - "name": "ref_dtd_identifier", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -64949,7 +64045,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_defined_types" + "name": "transforms" }, "table_alias": "", "type": { @@ -64962,19 +64058,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "user_mapping_options" - }, - "columns": [ + }, { - "name": "authorization_identifier", + "name": "specific_catalog", "not_null": false, "is_array": false, "comment": "", @@ -64985,7 +64071,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mapping_options" + "name": "transforms" }, "table_alias": "", "type": { @@ -65000,7 +64086,7 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", + "name": "specific_schema", "not_null": false, "is_array": false, "comment": "", @@ -65011,7 +64097,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mapping_options" + "name": "transforms" }, "table_alias": "", "type": { @@ -65026,7 +64112,7 @@ "array_dims": 0 }, { - "name": "foreign_server_name", + "name": "specific_name", "not_null": false, "is_array": false, "comment": "", @@ -65037,7 +64123,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mapping_options" + "name": "transforms" }, "table_alias": "", "type": { @@ -65052,7 +64138,7 @@ "array_dims": 0 }, { - "name": "option_name", + "name": "group_name", "not_null": false, "is_array": false, "comment": "", @@ -65063,7 +64149,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mapping_options" + "name": "transforms" }, "table_alias": "", "type": { @@ -65078,7 +64164,7 @@ "array_dims": 0 }, { - "name": "option_value", + "name": "transform_type", "not_null": false, "is_array": false, "comment": "", @@ -65089,7 +64175,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mapping_options" + "name": "transforms" }, "table_alias": "", "type": { @@ -65110,11 +64196,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mappings" + "name": "triggered_update_columns" }, "columns": [ { - "name": "authorization_identifier", + "name": "trigger_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65125,7 +64211,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mappings" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65140,7 +64226,7 @@ "array_dims": 0 }, { - "name": "foreign_server_catalog", + "name": "trigger_schema", "not_null": false, "is_array": false, "comment": "", @@ -65151,7 +64237,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mappings" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65166,7 +64252,7 @@ "array_dims": 0 }, { - "name": "foreign_server_name", + "name": "trigger_name", "not_null": false, "is_array": false, "comment": "", @@ -65177,7 +64263,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "user_mappings" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65190,19 +64276,9 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "view_column_usage" - }, - "columns": [ + }, { - "name": "view_catalog", + "name": "event_object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65213,7 +64289,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65228,7 +64304,7 @@ "array_dims": 0 }, { - "name": "view_schema", + "name": "event_object_schema", "not_null": false, "is_array": false, "comment": "", @@ -65239,7 +64315,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65254,7 +64330,7 @@ "array_dims": 0 }, { - "name": "view_name", + "name": "event_object_table", "not_null": false, "is_array": false, "comment": "", @@ -65265,7 +64341,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65280,7 +64356,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "event_object_column", "not_null": false, "is_array": false, "comment": "", @@ -65291,7 +64367,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggered_update_columns" }, "table_alias": "", "type": { @@ -65304,9 +64380,19 @@ "original_name": "", "unsigned": false, "array_dims": 0 - }, + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "columns": [ { - "name": "table_schema", + "name": "trigger_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65317,7 +64403,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65332,7 +64418,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "trigger_schema", "not_null": false, "is_array": false, "comment": "", @@ -65343,7 +64429,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65358,7 +64444,7 @@ "array_dims": 0 }, { - "name": "column_name", + "name": "trigger_name", "not_null": false, "is_array": false, "comment": "", @@ -65369,7 +64455,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_column_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65382,19 +64468,35 @@ "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - }, - { - "rel": { - "catalog": "pg_catalog", - "schema": "information_schema", - "name": "view_routine_usage" - }, - "columns": [ + }, { - "name": "table_catalog", + "name": "event_manipulation", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "event_object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65405,7 +64507,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65420,7 +64522,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "event_object_schema", "not_null": false, "is_array": false, "comment": "", @@ -65431,7 +64533,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65446,7 +64548,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "event_object_table", "not_null": false, "is_array": false, "comment": "", @@ -65457,7 +64559,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65472,7 +64574,137 @@ "array_dims": 0 }, { - "name": "specific_catalog", + "name": "action_order", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "action_condition", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "action_statement", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "action_orientation", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "action_timing", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "action_reference_old_table", "not_null": false, "is_array": false, "comment": "", @@ -65483,7 +64715,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65498,7 +64730,7 @@ "array_dims": 0 }, { - "name": "specific_schema", + "name": "action_reference_new_table", "not_null": false, "is_array": false, "comment": "", @@ -65509,7 +64741,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65524,7 +64756,7 @@ "array_dims": 0 }, { - "name": "specific_name", + "name": "action_reference_old_row", "not_null": false, "is_array": false, "comment": "", @@ -65535,7 +64767,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_routine_usage" + "name": "triggers" }, "table_alias": "", "type": { @@ -65548,6 +64780,58 @@ "original_name": "", "unsigned": false, "array_dims": 0 + }, + { + "name": "action_reference_new_row", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "created", + "not_null": false, + "is_array": false, + "comment": "", + "length": 8, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "triggers" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "time_stamp" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 } ], "comment": "" @@ -65556,11 +64840,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "columns": [ { - "name": "view_catalog", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -65571,7 +64855,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { @@ -65586,7 +64870,7 @@ "array_dims": 0 }, { - "name": "view_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -65597,7 +64881,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { @@ -65612,7 +64896,7 @@ "array_dims": 0 }, { - "name": "view_name", + "name": "udt_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65623,7 +64907,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { @@ -65638,7 +64922,7 @@ "array_dims": 0 }, { - "name": "table_catalog", + "name": "udt_schema", "not_null": false, "is_array": false, "comment": "", @@ -65649,7 +64933,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { @@ -65664,7 +64948,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "udt_name", "not_null": false, "is_array": false, "comment": "", @@ -65675,7 +64959,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { @@ -65690,24 +64974,50 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", - "length": 64, + "length": -1, "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "view_table_usage" + "name": "udt_privileges" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "sql_identifier" + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_grantable", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "udt_privileges" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" }, "is_sqlc_slice": false, "embed_table": null, @@ -65722,11 +65032,11 @@ "rel": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "columns": [ { - "name": "table_catalog", + "name": "grantor", "not_null": false, "is_array": false, "comment": "", @@ -65737,7 +65047,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65752,7 +65062,7 @@ "array_dims": 0 }, { - "name": "table_schema", + "name": "grantee", "not_null": false, "is_array": false, "comment": "", @@ -65763,7 +65073,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65778,7 +65088,7 @@ "array_dims": 0 }, { - "name": "table_name", + "name": "object_catalog", "not_null": false, "is_array": false, "comment": "", @@ -65789,7 +65099,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65804,7 +65114,59 @@ "array_dims": 0 }, { - "name": "view_definition", + "name": "object_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "usage_privileges" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "object_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "usage_privileges" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "object_type", "not_null": false, "is_array": false, "comment": "", @@ -65815,7 +65177,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65830,7 +65192,7 @@ "array_dims": 0 }, { - "name": "check_option", + "name": "privilege_type", "not_null": false, "is_array": false, "comment": "", @@ -65841,7 +65203,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65856,7 +65218,7 @@ "array_dims": 0 }, { - "name": "is_updatable", + "name": "is_grantable", "not_null": false, "is_array": false, "comment": "", @@ -65867,7 +65229,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "usage_privileges" }, "table_alias": "", "type": { @@ -65880,9 +65242,97 @@ "original_name": "", "unsigned": false, "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "columns": [ + { + "name": "user_defined_type_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 }, { - "name": "is_insertable_into", + "name": "user_defined_type_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "user_defined_type_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "user_defined_type_category", "not_null": false, "is_array": false, "comment": "", @@ -65893,13 +65343,13 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "user_defined_types" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, @@ -65908,7 +65358,7 @@ "array_dims": 0 }, { - "name": "is_trigger_updatable", + "name": "is_instantiable", "not_null": false, "is_array": false, "comment": "", @@ -65919,7 +65369,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "user_defined_types" }, "table_alias": "", "type": { @@ -65934,7 +65384,7 @@ "array_dims": 0 }, { - "name": "is_trigger_deletable", + "name": "is_final", "not_null": false, "is_array": false, "comment": "", @@ -65945,7 +65395,7 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "user_defined_types" }, "table_alias": "", "type": { @@ -65960,7 +65410,7 @@ "array_dims": 0 }, { - "name": "is_trigger_insertable_into", + "name": "ordering_form", "not_null": false, "is_array": false, "comment": "", @@ -65971,45 +65421,3042 @@ "table": { "catalog": "pg_catalog", "schema": "information_schema", - "name": "views" + "name": "user_defined_types" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "yes_or_no" + "name": "character_data" }, "is_sqlc_slice": false, "embed_table": null, "original_name": "", "unsigned": false, "array_dims": 0 - } - ], - "comment": "" - } - ], - "enums": [], - "composite_types": [] - } - ] - }, - "queries": [ - { - "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users WHERE uid = $1", - "name": "GetUserByID", - "cmd": ":one", - "columns": [ - { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { + }, + { + "name": "ordering_category", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "ordering_routine_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "ordering_routine_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "ordering_routine_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "reference_type", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "data_type", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_maximum_length", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_octet_length", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_set_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_set_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "character_set_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "collation_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "numeric_precision", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "numeric_precision_radix", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "numeric_scale", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "datetime_precision", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "interval_type", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "interval_precision", + "not_null": false, + "is_array": false, + "comment": "", + "length": 4, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "cardinal_number" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "source_dtd_identifier", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "ref_dtd_identifier", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_defined_types" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "columns": [ + { + "name": "authorization_identifier", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "foreign_server_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "foreign_server_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "option_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "option_value", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mapping_options" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mappings" + }, + "columns": [ + { + "name": "authorization_identifier", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mappings" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "foreign_server_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mappings" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "foreign_server_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "user_mappings" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "columns": [ + { + "name": "view_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "view_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "view_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "column_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_column_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "columns": [ + { + "name": "table_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "specific_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "specific_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "specific_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_routine_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "columns": [ + { + "name": "view_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "view_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "view_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "view_table_usage" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + }, + { + "rel": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "columns": [ + { + "name": "table_catalog", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_schema", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "table_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": 64, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "sql_identifier" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "view_definition", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "check_option", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "character_data" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_updatable", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_insertable_into", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_trigger_updatable", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_trigger_deletable", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "is_trigger_insertable_into", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "pg_catalog", + "schema": "information_schema", + "name": "views" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "yes_or_no" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], + "comment": "" + } + ], + "enums": [], + "composite_types": [] + } + ] + }, + "queries": [ + { + "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users WHERE uid = $1", + "name": "GetUserByID", + "cmd": ":one", + "columns": [ + { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "first_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_created", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users WHERE personal_email = $1 OR school_email = $1", + "name": "GetUserByEmail", + "cmd": ":one", + "columns": [ + { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "first_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_created", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users ORDER BY last_name, first_name LIMIT $1 OFFSET $2", + "name": "ListUsers", + "cmd": ":many", + "columns": [ + { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "first_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_created", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "limit", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": null, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "integer" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, + "column": { + "name": "offset", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": null, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "integer" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "INSERT INTO users (first_name, last_name, personal_email, school_email, phone, grad_year, role)\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified", + "name": "CreateUser", + "cmd": ":one", + "columns": [ + { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "first_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_created", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "first_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, + "column": { + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 3, + "column": { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 4, + "column": { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 5, + "column": { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 6, + "column": { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 7, + "column": { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "users" + } + }, + { + "text": "UPDATE users\nSET first_name = COALESCE($2, first_name),\n last_name = COALESCE($3, last_name),\n personal_email = COALESCE($4, personal_email),\n school_email = COALESCE($5, school_email),\n phone = COALESCE($6, phone),\n grad_year = COALESCE($7, grad_year),\n role = COALESCE($8, role)\nWHERE uid = $1\nRETURNING uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified", + "name": "UpdateUser", + "cmd": ":one", + "columns": [ + { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { "catalog": "", "schema": "", "name": "users" @@ -66290,150 +68737,263 @@ "unsigned": false, "array_dims": 0 } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users WHERE personal_email = $1 OR school_email = $1", - "name": "GetUserByEmail", - "cmd": ":one", - "columns": [ + }, { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 + "number": 2, + "column": { + "name": "first_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "first_name", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "first_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "first_name", - "unsigned": false, - "array_dims": 0 + "number": 3, + "column": { + "name": "last_name", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "last_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_name", - "unsigned": false, - "array_dims": 0 + "number": 4, + "column": { + "name": "personal_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "personal_email", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "personal_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "personal_email", - "unsigned": false, - "array_dims": 0 + "number": 5, + "column": { + "name": "school_email", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "school_email", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "school_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "school_email", - "unsigned": false, - "array_dims": 0 + "number": 6, + "column": { + "name": "phone", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 7, + "column": { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.int4" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "grad_year", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "phone", - "not_null": false, + "number": 8, + "column": { + "name": "role", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": true, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "user_role" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "role", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "DELETE FROM users WHERE uid = $1", + "name": "DeleteUser", + "cmd": ":exec", + "columns": [], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT oid, name, date_created, date_modified FROM organizations WHERE oid = $1", + "name": "GetOrganizationByID", + "cmd": ":one", + "columns": [ + { + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -66443,49 +69003,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "phone", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "grad_year", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "int4" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "grad_year", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "role", - "not_null": false, + "name": "name", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -66495,17 +69029,17 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "user_role" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "role", + "original_name": "name", "unsigned": false, "array_dims": 0 }, @@ -66521,7 +69055,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66547,7 +69081,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66566,8 +69100,8 @@ { "number": 1, "column": { - "name": "personal_email", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -66577,17 +69111,17 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "personal_email", + "original_name": "oid", "unsigned": false, "array_dims": 0 } @@ -66598,12 +69132,12 @@ "insert_into_table": null }, { - "text": "SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users ORDER BY last_name, first_name LIMIT $1 OFFSET $2", - "name": "ListUsers", + "text": "SELECT oid, name, date_created, date_modified FROM organizations ORDER BY name LIMIT $1 OFFSET $2", + "name": "ListOrganizations", "cmd": ":many", "columns": [ { - "name": "uid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -66614,7 +69148,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66624,38 +69158,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "first_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "first_name", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "last_name", + "name": "name", "not_null": true, "is_array": false, "comment": "", @@ -66666,85 +69174,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_name", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "personal_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "personal_email", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "school_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "school_email", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "phone", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66754,59 +69184,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "grad_year", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "grad_year", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "role", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "user_role" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "role", + "original_name": "name", "unsigned": false, "array_dims": 0 }, @@ -66822,7 +69200,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66848,7 +69226,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66920,12 +69298,12 @@ "insert_into_table": null }, { - "text": "INSERT INTO users (first_name, last_name, personal_email, school_email, phone, grad_year, role)\nVALUES ($1, $2, $3, $4, $5, $6, $7)\nRETURNING uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified", - "name": "CreateUser", + "text": "INSERT INTO organizations (name)\nVALUES ($1)\nRETURNING oid, name, date_created, date_modified", + "name": "CreateOrganization", "cmd": ":one", "columns": [ { - "name": "uid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -66936,7 +69314,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -66946,38 +69324,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "first_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "first_name", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "last_name", + "name": "name", "not_null": true, "is_array": false, "comment": "", @@ -66988,33 +69340,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_name", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "personal_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -67024,12 +69350,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "personal_email", + "original_name": "name", "unsigned": false, "array_dims": 0 }, { - "name": "school_email", + "name": "date_created", "not_null": false, "is_array": false, "comment": "", @@ -67040,22 +69366,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "school_email", + "original_name": "date_created", "unsigned": false, "array_dims": 0 }, { - "name": "phone", + "name": "date_modified", "not_null": false, "is_array": false, "comment": "", @@ -67066,49 +69392,68 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", + "original_name": "date_modified", "unsigned": false, "array_dims": 0 - }, + } + ], + "params": [ { - "name": "grad_year", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "grad_year", - "unsigned": false, - "array_dims": 0 - }, + "number": 1, + "column": { + "name": "name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "name", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "organizations" + } + }, + { + "text": "UPDATE organizations\nSET name = COALESCE($2, name)\nWHERE oid = $1\nRETURNING oid, name, date_created, date_modified", + "name": "UpdateOrganization", + "cmd": ":one", + "columns": [ { - "name": "role", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -67118,23 +69463,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "user_role" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "role", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", - "not_null": false, + "name": "name", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -67144,22 +69489,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "name", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "date_created", "not_null": false, "is_array": false, "comment": "", @@ -67170,7 +69515,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -67179,105 +69524,44 @@ "name": "date" }, "is_sqlc_slice": false, - "embed_table": null, - "original_name": "date_modified", - "unsigned": false, - "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "first_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "first_name", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 2, - "column": { - "name": "last_name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_name", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 3, - "column": { - "name": "personal_email", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "personal_email", - "unsigned": false, - "array_dims": 0 - } + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 }, { - "number": 4, + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, "column": { - "name": "school_email", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -67286,37 +69570,37 @@ "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "users" + "schema": "", + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "school_email", + "original_name": "oid", "unsigned": false, "array_dims": 0 } }, { - "number": 5, + "number": 2, "column": { - "name": "phone", + "name": "name", "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { @@ -67326,16 +69610,27 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", + "original_name": "name", "unsigned": false, "array_dims": 0 } - }, + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "DELETE FROM organizations WHERE oid = $1", + "name": "DeleteOrganization", + "cmd": ":exec", + "columns": [], + "params": [ { - "number": 6, + "number": 1, "column": { - "name": "grad_year", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -67343,48 +69638,19 @@ "is_func_call": false, "scope": "", "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { "catalog": "", "schema": "", - "name": "pg_catalog.int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "grad_year", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 7, - "column": { - "name": "role", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" + "name": "organizations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "user_role" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "role", + "original_name": "oid", "unsigned": false, "array_dims": 0 } @@ -67392,16 +69658,12 @@ ], "comments": [], "filename": "queries.sql", - "insert_into_table": { - "catalog": "", - "schema": "", - "name": "users" - } + "insert_into_table": null }, { - "text": "UPDATE users\nSET first_name = COALESCE($2, first_name),\n last_name = COALESCE($3, last_name),\n personal_email = COALESCE($4, personal_email),\n school_email = COALESCE($5, school_email),\n phone = COALESCE($6, phone),\n grad_year = COALESCE($7, grad_year),\n role = COALESCE($8, role)\nWHERE uid = $1\nRETURNING uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified", - "name": "UpdateUser", - "cmd": ":one", + "text": "SELECT u.uid, u.first_name, u.last_name, u.personal_email, u.school_email, u.phone, u.grad_year, u.role, u.date_created, u.date_modified, om.is_admin, om.date_joined, om.last_active\nFROM users u\nJOIN org_members om ON u.uid = om.uid\nWHERE om.oid = $1\nORDER BY u.last_name, u.first_name", + "name": "GetOrgMembers", + "cmd": ":many", "columns": [ { "name": "uid", @@ -67662,13 +69924,91 @@ "original_name": "date_modified", "unsigned": false, "array_dims": 0 + }, + { + "name": "is_admin", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "bool" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "is_admin", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_joined", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_joined", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "last_active", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_active", + "unsigned": false, + "array_dims": 0 } ], "params": [ { "number": 1, "column": { - "name": "uid", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -67679,7 +70019,47 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "oid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "INSERT INTO org_members (uid, oid, is_admin)\nVALUES ($1, $2, $3)\nON CONFLICT (uid, oid) DO UPDATE SET is_admin = $3", + "name": "AddOrgMember", + "cmd": ":exec", + "columns": [], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "org_members" }, "table_alias": "", "type": { @@ -67697,28 +70077,28 @@ { "number": 2, "column": { - "name": "first_name", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "users" + "name": "org_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "first_name", + "original_name": "oid", "unsigned": false, "array_dims": 0 } @@ -67726,187 +70106,368 @@ { "number": 3, "column": { - "name": "last_name", + "name": "is_admin", "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "users" + "name": "org_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "pg_catalog.bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "last_name", + "original_name": "is_admin", "unsigned": false, "array_dims": 0 } - }, + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "org_members" + } + }, + { + "text": "DELETE FROM org_members WHERE uid = $1 AND oid = $2", + "name": "RemoveOrgMember", + "cmd": ":exec", + "columns": [], + "params": [ { - "number": 4, + "number": 1, "column": { - "name": "personal_email", - "not_null": false, + "name": "uid", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "users" + "schema": "", + "name": "org_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "personal_email", + "original_name": "uid", "unsigned": false, "array_dims": 0 } }, { - "number": 5, + "number": 2, "column": { - "name": "school_email", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "users" + "schema": "", + "name": "org_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "school_email", + "original_name": "oid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT is_admin FROM org_members WHERE uid = $1 AND oid = $2", + "name": "IsOrgAdmin", + "cmd": ":one", + "columns": [ + { + "name": "is_admin", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "bool" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "is_admin", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", "unsigned": false, "array_dims": 0 } }, { - "number": 6, + "number": 2, "column": { - "name": "phone", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "users" + "schema": "", + "name": "org_members" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", + "original_name": "oid", "unsigned": false, "array_dims": 0 } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT o.oid, o.name, o.date_created, o.date_modified, om.is_admin, om.date_joined\nFROM organizations o\nJOIN org_members om ON o.oid = om.oid\nWHERE om.uid = $1\nORDER BY o.name", + "name": "GetUserOrganizations", + "cmd": ":many", + "columns": [ + { + "name": "oid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "oid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_created", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_created", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "date_modified", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "organizations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_modified", + "unsigned": false, + "array_dims": 0 }, { - "number": 7, - "column": { - "name": "grad_year", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": true, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_catalog.int4" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "grad_year", - "unsigned": false, - "array_dims": 0 - } + "name": "is_admin", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "pg_catalog", + "name": "bool" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "is_admin", + "unsigned": false, + "array_dims": 0 }, { - "number": 8, - "column": { - "name": "role", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": true, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "user_role" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "role", - "unsigned": false, - "array_dims": 0 - } + "name": "date_joined", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "org_members" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_joined", + "unsigned": false, + "array_dims": 0 } ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "DELETE FROM users WHERE uid = $1", - "name": "DeleteUser", - "cmd": ":exec", - "columns": [], "params": [ { "number": 1, @@ -67922,7 +70483,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "org_members" }, "table_alias": "", "type": { @@ -67943,12 +70504,12 @@ "insert_into_table": null }, { - "text": "SELECT oid, name, date_created, date_modified FROM organizations WHERE oid = $1", - "name": "GetOrganizationByID", + "text": "SELECT eid, location, event_time, description, date_created, date_modified, title, org_ids FROM events_with_org_ids WHERE eid = $1", + "name": "GetEventByID", "cmd": ":one", "columns": [ { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -67959,7 +70520,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -67969,13 +70530,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 }, { - "name": "name", - "not_null": true, + "name": "location", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -67985,7 +70546,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -67995,7 +70556,59 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "location", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "event_time", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.timestamp" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "event_time", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "description", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "description", "unsigned": false, "array_dims": 0 }, @@ -68011,7 +70624,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68037,7 +70650,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68050,13 +70663,65 @@ "original_name": "date_modified", "unsigned": false, "array_dims": 0 + }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "org_ids", + "not_null": true, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "org_ids", + "unsigned": false, + "array_dims": 1 } ], "params": [ { "number": 1, "column": { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -68067,7 +70732,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68077,7 +70742,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 } @@ -68088,12 +70753,12 @@ "insert_into_table": null }, { - "text": "SELECT oid, name, date_created, date_modified FROM organizations ORDER BY name LIMIT $1 OFFSET $2", - "name": "ListOrganizations", + "text": "SELECT eid, location, event_time, description, date_created, date_modified, title, org_ids FROM events_with_org_ids ORDER BY event_time DESC LIMIT $1 OFFSET $2", + "name": "ListEvents", "cmd": ":many", "columns": [ { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -68104,7 +70769,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68114,13 +70779,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 }, { - "name": "name", - "not_null": true, + "name": "location", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68130,7 +70795,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68140,7 +70805,59 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "location", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "event_time", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.timestamp" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "event_time", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "description", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "description", "unsigned": false, "array_dims": 0 }, @@ -68156,7 +70873,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68182,7 +70899,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68195,6 +70912,58 @@ "original_name": "date_modified", "unsigned": false, "array_dims": 0 + }, + { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "org_ids", + "not_null": true, + "is_array": true, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events_with_org_ids" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "org_ids", + "unsigned": false, + "array_dims": 1 } ], "params": [ @@ -68254,12 +71023,12 @@ "insert_into_table": null }, { - "text": "INSERT INTO organizations (name)\nVALUES ($1)\nRETURNING oid, name, date_created, date_modified", - "name": "CreateOrganization", - "cmd": ":one", + "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, e.title, e.org_ids\nFROM events_with_org_ids e\nJOIN event_hosting eh ON e.eid = eh.eid\nWHERE eh.oid = $1\nORDER BY e.event_time DESC\nLIMIT $2 OFFSET $3", + "name": "ListEventsByOrg", + "cmd": ":many", "columns": [ { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -68270,7 +71039,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68280,13 +71049,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 }, { - "name": "name", - "not_null": true, + "name": "location", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68296,7 +71065,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -68306,12 +71075,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "location", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "event_time", "not_null": false, "is_array": false, "comment": "", @@ -68322,22 +71091,22 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "pg_catalog.timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "event_time", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "description", "not_null": false, "is_array": false, "comment": "", @@ -68348,68 +71117,23 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "description", "unsigned": false, "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "name", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "organizations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "name", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": { - "catalog": "", - "schema": "", - "name": "organizations" - } - }, - { - "text": "UPDATE organizations\nSET name = COALESCE($2, name)\nWHERE oid = $1\nRETURNING oid, name, date_created, date_modified", - "name": "UpdateOrganization", - "cmd": ":one", - "columns": [ + }, { - "name": "oid", - "not_null": true, + "name": "date_created", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68419,23 +71143,23 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "date_created", "unsigned": false, "array_dims": 0 }, { - "name": "name", - "not_null": true, + "name": "date_modified", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68445,22 +71169,22 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "date_modified", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "title", "not_null": false, "is_array": false, "comment": "", @@ -68471,24 +71195,24 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "title", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", - "not_null": false, - "is_array": false, + "name": "org_ids", + "not_null": true, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -68497,19 +71221,19 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "org_ids", "unsigned": false, - "array_dims": 0 + "array_dims": 1 } ], "params": [ @@ -68527,7 +71251,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "event_hosting" }, "table_alias": "", "type": { @@ -68545,47 +71269,32 @@ { "number": 2, "column": { - "name": "name", - "not_null": false, + "name": "limit", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "organizations" - }, + "table": null, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "integer" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "", "unsigned": false, "array_dims": 0 } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "DELETE FROM organizations WHERE oid = $1", - "name": "DeleteOrganization", - "cmd": ":exec", - "columns": [], - "params": [ + }, { - "number": 1, + "number": 3, "column": { - "name": "oid", + "name": "offset", "not_null": true, "is_array": false, "comment": "", @@ -68593,20 +71302,16 @@ "is_named_param": false, "is_func_call": false, "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "organizations" - }, + "table": null, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "integer" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "", "unsigned": false, "array_dims": 0 } @@ -68617,13 +71322,39 @@ "insert_into_table": null }, { - "text": "SELECT u.uid, u.first_name, u.last_name, u.personal_email, u.school_email, u.phone, u.grad_year, u.role, u.date_created, u.date_modified, om.is_admin, om.date_joined, om.last_active\nFROM users u\nJOIN org_members om ON u.uid = om.uid\nWHERE om.oid = $1\nORDER BY u.last_name, u.first_name", - "name": "GetOrgMembers", - "cmd": ":many", + "text": "INSERT INTO events (title, location, event_time, description)\nVALUES ($1, $2, $3, $4)\nRETURNING eid, location, event_time, description, date_created, date_modified, title", + "name": "CreateEvent", + "cmd": ":one", "columns": [ { - "name": "uid", - "not_null": true, + "name": "eid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "eid", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "location", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68633,23 +71364,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "location", "unsigned": false, "array_dims": 0 }, { - "name": "first_name", - "not_null": true, + "name": "event_time", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68659,23 +71390,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "first_name", + "original_name": "event_time", "unsigned": false, "array_dims": 0 }, { - "name": "last_name", - "not_null": true, + "name": "description", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -68685,7 +71416,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { @@ -68695,12 +71426,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "last_name", + "original_name": "description", "unsigned": false, "array_dims": 0 }, { - "name": "personal_email", + "name": "date_created", "not_null": false, "is_array": false, "comment": "", @@ -68711,22 +71442,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "personal_email", + "original_name": "date_created", "unsigned": false, "array_dims": 0 }, { - "name": "school_email", + "name": "date_modified", "not_null": false, "is_array": false, "comment": "", @@ -68737,22 +71468,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "school_email", + "original_name": "date_modified", "unsigned": false, "array_dims": 0 }, { - "name": "phone", + "name": "title", "not_null": false, "is_array": false, "comment": "", @@ -68763,7 +71494,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { @@ -68773,13 +71504,145 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", + "original_name": "title", "unsigned": false, "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "title", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "title", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "grad_year", - "not_null": false, + "number": 2, + "column": { + "name": "location", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "location", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 3, + "column": { + "name": "event_time", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.timestamp" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "event_time", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 4, + "column": { + "name": "description", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "events" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "description", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "events" + } + }, + { + "text": "UPDATE events\nSET title = COALESCE($2, title),\n location = COALESCE($3, location),\n event_time = COALESCE($4, event_time),\n description = COALESCE($5, description)\nWHERE eid = $1\nRETURNING eid, location, event_time, description, date_created, date_modified, title", + "name": "UpdateEvent", + "cmd": ":one", + "columns": [ + { + "name": "eid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -68789,22 +71652,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "int4" + "schema": "", + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "grad_year", + "original_name": "eid", "unsigned": false, "array_dims": 0 }, { - "name": "role", + "name": "location", "not_null": false, "is_array": false, "comment": "", @@ -68815,22 +71678,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "user_role" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "role", + "original_name": "location", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "event_time", "not_null": false, "is_array": false, "comment": "", @@ -68841,22 +71704,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "event_time", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "description", "not_null": false, "is_array": false, "comment": "", @@ -68867,22 +71730,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "description", "unsigned": false, "array_dims": 0 }, { - "name": "is_admin", + "name": "date_created", "not_null": false, "is_array": false, "comment": "", @@ -68893,22 +71756,22 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "bool" + "schema": "", + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_admin", + "original_name": "date_created", "unsigned": false, "array_dims": 0 }, { - "name": "date_joined", + "name": "date_modified", "not_null": false, "is_array": false, "comment": "", @@ -68919,7 +71782,7 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { @@ -68929,12 +71792,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_joined", + "original_name": "date_modified", "unsigned": false, "array_dims": 0 }, { - "name": "last_active", + "name": "title", "not_null": false, "is_array": false, "comment": "", @@ -68945,17 +71808,17 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "last_active", + "original_name": "title", "unsigned": false, "array_dims": 0 } @@ -68964,7 +71827,7 @@ { "number": 1, "column": { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -68975,7 +71838,7 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { @@ -68985,157 +71848,142 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "INSERT INTO org_members (uid, oid, is_admin)\nVALUES ($1, $2, $3)\nON CONFLICT (uid, oid) DO UPDATE SET is_admin = $3", - "name": "AddOrgMember", - "cmd": ":exec", - "columns": [], - "params": [ + }, { - "number": 1, + "number": 2, "column": { - "name": "uid", - "not_null": true, + "name": "title", + "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "title", "unsigned": false, "array_dims": 0 } }, { - "number": 2, + "number": 3, "column": { - "name": "oid", - "not_null": true, + "name": "location", + "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "location", "unsigned": false, "array_dims": 0 } }, { - "number": 3, + "number": 4, "column": { - "name": "is_admin", + "name": "event_time", "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_catalog.bool" + "name": "pg_catalog.timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_admin", + "original_name": "event_time", "unsigned": false, "array_dims": 0 } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": { - "catalog": "", - "schema": "", - "name": "org_members" - } - }, - { - "text": "DELETE FROM org_members WHERE uid = $1 AND oid = $2", - "name": "RemoveOrgMember", - "cmd": ":exec", - "columns": [], - "params": [ + }, { - "number": 1, + "number": 5, "column": { - "name": "uid", - "not_null": true, + "name": "description", + "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", - "schema": "", - "name": "org_members" + "schema": "public", + "name": "events" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "description", "unsigned": false, "array_dims": 0 } - }, + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "DELETE FROM events WHERE eid = $1", + "name": "DeleteEvent", + "cmd": ":exec", + "columns": [], + "params": [ { - "number": 2, + "number": 1, "column": { - "name": "oid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -69146,7 +71994,7 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "events" }, "table_alias": "", "type": { @@ -69156,7 +72004,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "eid", "unsigned": false, "array_dims": 0 } @@ -69167,42 +72015,15 @@ "insert_into_table": null }, { - "text": "SELECT is_admin FROM org_members WHERE uid = $1 AND oid = $2", - "name": "IsOrgAdmin", - "cmd": ":one", - "columns": [ - { - "name": "is_admin", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "org_members" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "is_admin", - "unsigned": false, - "array_dims": 0 - } - ], + "text": "INSERT INTO event_hosting (eid, oid)\nVALUES ($1, $2)\nON CONFLICT (eid, oid) DO NOTHING", + "name": "AddEventHost", + "cmd": ":exec", + "columns": [], "params": [ { "number": 1, "column": { - "name": "uid", + "name": "eid", "not_null": true, "is_array": false, "comment": "", @@ -69212,8 +72033,8 @@ "scope": "", "table": { "catalog": "", - "schema": "", - "name": "org_members" + "schema": "public", + "name": "event_hosting" }, "table_alias": "", "type": { @@ -69223,7 +72044,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "eid", "unsigned": false, "array_dims": 0 } @@ -69241,8 +72062,8 @@ "scope": "", "table": { "catalog": "", - "schema": "", - "name": "org_members" + "schema": "public", + "name": "event_hosting" }, "table_alias": "", "type": { @@ -69260,15 +72081,19 @@ ], "comments": [], "filename": "queries.sql", - "insert_into_table": null + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "event_hosting" + } }, { - "text": "SELECT o.oid, o.name, o.date_created, o.date_modified, om.is_admin, om.date_joined\nFROM organizations o\nJOIN org_members om ON o.oid = om.oid\nWHERE om.uid = $1\nORDER BY o.name", - "name": "GetUserOrganizations", + "text": "SELECT u.uid, u.first_name, u.last_name, u.personal_email, u.school_email, u.phone, u.grad_year, u.role, u.date_created, u.date_modified, er.is_attending, er.is_admin, er.date_registered\nFROM users u\nJOIN event_registrations er ON u.uid = er.uid\nWHERE er.eid = $1\nORDER BY er.date_registered", + "name": "GetEventRegistrations", "cmd": ":many", "columns": [ { - "name": "oid", + "name": "uid", "not_null": true, "is_array": false, "comment": "", @@ -69279,7 +72104,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "users" }, "table_alias": "", "type": { @@ -69289,12 +72114,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "uid", "unsigned": false, "array_dims": 0 }, { - "name": "name", + "name": "first_name", "not_null": true, "is_array": false, "comment": "", @@ -69305,7 +72130,7 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "users" }, "table_alias": "", "type": { @@ -69315,12 +72140,38 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "first_name", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "last_name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "last_name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "personal_email", "not_null": false, "is_array": false, "comment": "", @@ -69331,22 +72182,22 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "personal_email", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "school_email", "not_null": false, "is_array": false, "comment": "", @@ -69357,22 +72208,22 @@ "table": { "catalog": "", "schema": "", - "name": "organizations" + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "school_email", "unsigned": false, "array_dims": 0 }, { - "name": "is_admin", + "name": "phone", "not_null": false, "is_array": false, "comment": "", @@ -69383,22 +72234,48 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "users" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "phone", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "grad_year", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "pg_catalog", - "name": "bool" + "name": "int4" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_admin", + "original_name": "grad_year", "unsigned": false, "array_dims": 0 }, { - "name": "date_joined", + "name": "role", "not_null": false, "is_array": false, "comment": "", @@ -69409,64 +72286,23 @@ "table": { "catalog": "", "schema": "", - "name": "org_members" + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "user_role" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_joined", + "original_name": "role", "unsigned": false, "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "org_members" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "SELECT eid, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1", - "name": "GetEventByID", - "cmd": ":one", - "columns": [ + }, { - "name": "eid", - "not_null": true, + "name": "date_created", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -69476,22 +72312,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "date_created", "unsigned": false, "array_dims": 0 }, { - "name": "location", + "name": "date_modified", "not_null": false, "is_array": false, "comment": "", @@ -69502,22 +72338,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "users" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "date" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "location", + "original_name": "date_modified", "unsigned": false, "array_dims": 0 }, { - "name": "event_time", + "name": "is_attending", "not_null": false, "is_array": false, "comment": "", @@ -69528,22 +72364,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { "catalog": "", "schema": "pg_catalog", - "name": "timestamp" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "event_time", + "original_name": "is_attending", "unsigned": false, "array_dims": 0 }, { - "name": "description", + "name": "is_admin", "not_null": false, "is_array": false, "comment": "", @@ -69554,22 +72390,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "is_admin", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "date_registered", "not_null": false, "is_array": false, "comment": "", @@ -69580,7 +72416,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { @@ -69590,12 +72426,224 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "date_registered", "unsigned": false, "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "eid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "eid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "INSERT INTO event_registrations (uid, eid, is_attending)\nVALUES ($1, $2, $3)\nON CONFLICT (uid, eid) DO UPDATE SET is_attending = $3", + "name": "RegisterForEvent", + "cmd": ":exec", + "columns": [], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + } }, { - "name": "date_modified", + "number": 2, + "column": { + "name": "eid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "eid", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 3, + "column": { + "name": "is_attending", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "pg_catalog.bool" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "is_attending", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "event_registrations" + } + }, + { + "text": "DELETE FROM event_registrations WHERE uid = $1 AND eid = $2", + "name": "UnregisterFromEvent", + "cmd": ":exec", + "columns": [], + "params": [ + { + "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, + "column": { + "name": "eid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "eid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "SELECT EXISTS (\n SELECT 1\n FROM event_registrations er\n WHERE er.uid = $1\n AND er.eid = $2\n AND er.is_admin = TRUE\n)\nOR EXISTS (\n SELECT 1\n FROM event_hosting eh\n JOIN org_members om ON om.oid = eh.oid\n WHERE eh.eid = $2\n AND om.uid = $1\n AND om.is_admin = TRUE\n)", + "name": "IsEventAdmin", + "cmd": ":one", + "columns": [ + { + "name": "", "not_null": false, "is_array": false, "comment": "", @@ -69603,20 +72651,16 @@ "is_named_param": false, "is_func_call": false, "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, + "table": null, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "", "unsigned": false, "array_dims": 0 } @@ -69624,6 +72668,35 @@ "params": [ { "number": 1, + "column": { + "name": "uid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "event_registrations" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "uid", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, "column": { "name": "eid", "not_null": true, @@ -69636,7 +72709,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { @@ -69657,8 +72730,8 @@ "insert_into_table": null }, { - "text": "SELECT eid, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2", - "name": "ListEvents", + "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, e.title, e.org_ids, er.is_attending, er.is_admin, er.date_registered\nFROM events_with_org_ids e\nJOIN event_registrations er ON e.eid = er.eid\nWHERE er.uid = $1\nORDER BY e.event_time DESC", + "name": "GetUserEvents", "cmd": ":many", "columns": [ { @@ -69673,7 +72746,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69699,7 +72772,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69725,13 +72798,13 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" + "schema": "", + "name": "pg_catalog.timestamp" }, "is_sqlc_slice": false, "embed_table": null, @@ -69751,7 +72824,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69777,7 +72850,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69803,7 +72876,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69816,97 +72889,9 @@ "original_name": "date_modified", "unsigned": false, "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "limit", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": null, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "integer" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 2, - "column": { - "name": "offset", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": null, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "integer" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified\nFROM events e\nJOIN event_hosting eh ON e.eid = eh.eid\nWHERE eh.oid = $1\nORDER BY e.event_time DESC\nLIMIT $2 OFFSET $3", - "name": "ListEventsByOrg", - "cmd": ":many", - "columns": [ - { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 }, { - "name": "location", + "name": "title", "not_null": false, "is_array": false, "comment": "", @@ -69917,7 +72902,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { @@ -69927,14 +72912,14 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "location", + "original_name": "title", "unsigned": false, "array_dims": 0 }, { - "name": "event_time", - "not_null": false, - "is_array": false, + "name": "org_ids", + "not_null": true, + "is_array": true, "comment": "", "length": -1, "is_named_param": false, @@ -69943,22 +72928,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "events_with_org_ids" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" + "schema": "", + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "event_time", + "original_name": "org_ids", "unsigned": false, - "array_dims": 0 + "array_dims": 1 }, { - "name": "description", + "name": "is_attending", "not_null": false, "is_array": false, "comment": "", @@ -69969,22 +72954,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "is_attending", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "is_admin", "not_null": false, "is_array": false, "comment": "", @@ -69995,22 +72980,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "is_admin", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "date_registered", "not_null": false, "is_array": false, "comment": "", @@ -70021,55 +73006,26 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "event_registrations" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "date_modified", - "unsigned": false, - "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "oid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_hosting" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "oid", - "unsigned": false, - "array_dims": 0 - } - }, + "name": "date" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "date_registered", + "unsigned": false, + "array_dims": 0 + } + ], + "params": [ { - "number": 2, + "number": 1, "column": { - "name": "limit", + "name": "uid", "not_null": true, "is_array": false, "comment": "", @@ -70077,41 +73033,20 @@ "is_named_param": false, "is_func_call": false, "scope": "", - "table": null, - "table_alias": "", - "type": { + "table": { "catalog": "", "schema": "", - "name": "integer" + "name": "event_registrations" }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 3, - "column": { - "name": "offset", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": null, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "integer" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "", + "original_name": "uid", "unsigned": false, "array_dims": 0 } @@ -70122,12 +73057,12 @@ "insert_into_table": null }, { - "text": "INSERT INTO events (location, event_time, description)\nVALUES ($1, $2, $3)\nRETURNING eid, location, event_time, description, date_created, date_modified", - "name": "CreateEvent", + "text": "\nSELECT token_id, token_hash, name, created_by, created_at, last_used_at, expires_at, is_active FROM bot_tokens WHERE token_id = $1", + "name": "GetBotTokenByID", "cmd": ":one", "columns": [ { - "name": "eid", + "name": "token_id", "not_null": true, "is_array": false, "comment": "", @@ -70138,7 +73073,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70148,13 +73083,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "token_id", "unsigned": false, "array_dims": 0 }, { - "name": "location", - "not_null": false, + "name": "token_hash", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -70164,7 +73099,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70174,12 +73109,64 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "location", + "original_name": "token_hash", "unsigned": false, "array_dims": 0 }, { - "name": "event_time", + "name": "name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "created_by", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "created_by", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -70190,7 +73177,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70200,12 +73187,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "event_time", + "original_name": "created_at", "unsigned": false, "array_dims": 0 }, { - "name": "description", + "name": "last_used_at", "not_null": false, "is_array": false, "comment": "", @@ -70216,22 +73203,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "last_used_at", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "expires_at", "not_null": false, "is_array": false, "comment": "", @@ -70242,22 +73229,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "expires_at", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "is_active", "not_null": false, "is_array": false, "comment": "", @@ -70268,17 +73255,17 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "is_active", "unsigned": false, "array_dims": 0 } @@ -70287,37 +73274,8 @@ { "number": 1, "column": { - "name": "location", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "location", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 2, - "column": { - "name": "event_time", - "not_null": false, + "name": "token_id", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -70325,68 +73283,37 @@ "is_func_call": false, "scope": "", "table": { - "catalog": "", - "schema": "public", - "name": "events" - }, - "table_alias": "", - "type": { "catalog": "", "schema": "", - "name": "pg_catalog.timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "event_time", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 3, - "column": { - "name": "description", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "token_id", "unsigned": false, "array_dims": 0 } } ], - "comments": [], + "comments": [ + " Bot Token Queries" + ], "filename": "queries.sql", - "insert_into_table": { - "catalog": "", - "schema": "", - "name": "events" - } + "insert_into_table": null }, { - "text": "UPDATE events\nSET location = COALESCE($2, location),\n event_time = COALESCE($3, event_time),\n description = COALESCE($4, description)\nWHERE eid = $1\nRETURNING eid, location, event_time, description, date_created, date_modified", - "name": "UpdateEvent", + "text": "INSERT INTO bot_tokens (token_hash, name, created_by, expires_at)\nVALUES ($1, $2, $3, $4)\nRETURNING token_id, token_hash, name, created_by, created_at, last_used_at, expires_at, is_active", + "name": "CreateBotToken", "cmd": ":one", "columns": [ { - "name": "eid", + "name": "token_id", "not_null": true, "is_array": false, "comment": "", @@ -70397,7 +73324,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70407,13 +73334,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "token_id", "unsigned": false, "array_dims": 0 }, { - "name": "location", - "not_null": false, + "name": "token_hash", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -70423,7 +73350,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70433,12 +73360,64 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "location", + "original_name": "token_hash", "unsigned": false, "array_dims": 0 }, { - "name": "event_time", + "name": "name", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "name", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "created_by", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "created_by", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -70449,7 +73428,7 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70459,12 +73438,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "event_time", + "original_name": "created_at", "unsigned": false, "array_dims": 0 }, { - "name": "description", + "name": "last_used_at", "not_null": false, "is_array": false, "comment": "", @@ -70475,22 +73454,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "last_used_at", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", + "name": "expires_at", "not_null": false, "is_array": false, "comment": "", @@ -70501,22 +73480,22 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "expires_at", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", + "name": "is_active", "not_null": false, "is_array": false, "comment": "", @@ -70527,17 +73506,17 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "is_active", "unsigned": false, "array_dims": 0 } @@ -70546,7 +73525,7 @@ { "number": 1, "column": { - "name": "eid", + "name": "token_hash", "not_null": true, "is_array": false, "comment": "", @@ -70556,18 +73535,18 @@ "scope": "", "table": { "catalog": "", - "schema": "", - "name": "events" + "schema": "public", + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "token_hash", "unsigned": false, "array_dims": 0 } @@ -70575,18 +73554,18 @@ { "number": 2, "column": { - "name": "location", - "not_null": false, + "name": "name", + "not_null": true, "is_array": false, "comment": "", "length": -1, - "is_named_param": true, + "is_named_param": false, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "events" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70596,7 +73575,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "location", + "original_name": "name", "unsigned": false, "array_dims": 0 } @@ -70604,116 +73583,7 @@ { "number": 3, "column": { - "name": "event_time", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": true, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "pg_catalog.timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "event_time", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 4, - "column": { - "name": "description", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": true, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "public", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "description", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "DELETE FROM events WHERE eid = $1", - "name": "DeleteEvent", - "cmd": ":exec", - "columns": [], - "params": [ - { - "number": 1, - "column": { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "INSERT INTO event_hosting (eid, oid)\nVALUES ($1, $2)\nON CONFLICT (eid, oid) DO NOTHING", - "name": "AddEventHost", - "cmd": ":exec", - "columns": [], - "params": [ - { - "number": 1, - "column": { - "name": "eid", + "name": "created_by", "not_null": true, "is_array": false, "comment": "", @@ -70724,7 +73594,7 @@ "table": { "catalog": "", "schema": "public", - "name": "event_hosting" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70734,16 +73604,16 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "created_by", "unsigned": false, "array_dims": 0 } }, { - "number": 2, + "number": 4, "column": { - "name": "oid", - "not_null": true, + "name": "expires_at", + "not_null": false, "is_array": false, "comment": "", "length": -1, @@ -70753,17 +73623,17 @@ "table": { "catalog": "", "schema": "public", - "name": "event_hosting" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "pg_catalog.timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "oid", + "original_name": "expires_at", "unsigned": false, "array_dims": 0 } @@ -70774,42 +73644,16 @@ "insert_into_table": { "catalog": "", "schema": "", - "name": "event_hosting" - } - }, - { - "text": "SELECT u.uid, u.first_name, u.last_name, u.personal_email, u.school_email, u.phone, u.grad_year, u.role, u.date_created, u.date_modified, er.is_attending, er.is_admin, er.date_registered\nFROM users u\nJOIN event_registrations er ON u.uid = er.uid\nWHERE er.eid = $1\nORDER BY er.date_registered", - "name": "GetEventRegistrations", - "cmd": ":many", - "columns": [ - { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "users" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - }, + "name": "bot_tokens" + } + }, + { + "text": "SELECT token_id, name, created_by, created_at, last_used_at, expires_at, is_active\nFROM bot_tokens\nORDER BY created_at DESC", + "name": "ListBotTokens", + "cmd": ":many", + "columns": [ { - "name": "first_name", + "name": "token_id", "not_null": true, "is_array": false, "comment": "", @@ -70820,22 +73664,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "first_name", + "original_name": "token_id", "unsigned": false, "array_dims": 0 }, { - "name": "last_name", + "name": "name", "not_null": true, "is_array": false, "comment": "", @@ -70846,7 +73690,7 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { @@ -70856,13 +73700,13 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "last_name", + "original_name": "name", "unsigned": false, "array_dims": 0 }, { - "name": "personal_email", - "not_null": false, + "name": "created_by", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -70872,22 +73716,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "personal_email", + "original_name": "created_by", "unsigned": false, "array_dims": 0 }, { - "name": "school_email", + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -70898,22 +73742,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "school_email", + "original_name": "created_at", "unsigned": false, "array_dims": 0 }, { - "name": "phone", + "name": "last_used_at", "not_null": false, "is_array": false, "comment": "", @@ -70924,22 +73768,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "text" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "phone", + "original_name": "last_used_at", "unsigned": false, "array_dims": 0 }, { - "name": "grad_year", + "name": "expires_at", "not_null": false, "is_array": false, "comment": "", @@ -70950,22 +73794,22 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", "schema": "pg_catalog", - "name": "int4" + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "grad_year", + "original_name": "expires_at", "unsigned": false, "array_dims": 0 }, { - "name": "role", + "name": "is_active", "not_null": false, "is_array": false, "comment": "", @@ -70976,23 +73820,114 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "bot_tokens" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "user_role" + "schema": "pg_catalog", + "name": "bool" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "role", + "original_name": "is_active", "unsigned": false, "array_dims": 0 - }, + } + ], + "params": [], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "UPDATE bot_tokens SET is_active = false WHERE token_id = $1", + "name": "RevokeBotToken", + "cmd": ":exec", + "columns": [], + "params": [ { - "name": "date_created", - "not_null": false, + "number": 1, + "column": { + "name": "token_id", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "token_id", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "UPDATE bot_tokens SET last_used_at = CURRENT_TIMESTAMP WHERE token_id = $1", + "name": "UpdateBotTokenLastUsed", + "cmd": ":exec", + "columns": [], + "params": [ + { + "number": 1, + "column": { + "name": "token_id", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "bot_tokens" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "token_id", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "\nINSERT INTO links (endpoint_url, dest_url, oid)\nVALUES ($1, $2, $3)\nRETURNING lid, endpoint_url, dest_url, oid, created_at", + "name": "CreateLink", + "cmd": ":one", + "columns": [ + { + "name": "lid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71002,23 +73937,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", - "not_null": false, + "name": "endpoint_url", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71028,23 +73963,23 @@ "table": { "catalog": "", "schema": "", - "name": "users" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 }, { - "name": "is_attending", - "not_null": false, + "name": "dest_url", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71054,23 +73989,23 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "bool" + "schema": "", + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_attending", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 }, { - "name": "is_admin", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71080,22 +74015,22 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "bool" + "schema": "", + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_admin", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "date_registered", + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -71106,17 +74041,17 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_registered", + "original_name": "created_at", "unsigned": false, "array_dims": 0 } @@ -71125,47 +74060,7 @@ { "number": 1, "column": { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "INSERT INTO event_registrations (uid, eid, is_attending)\nVALUES ($1, $2, $3)\nON CONFLICT (uid, eid) DO UPDATE SET is_attending = $3", - "name": "RegisterForEvent", - "cmd": ":exec", - "columns": [], - "params": [ - { - "number": 1, - "column": { - "name": "uid", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", @@ -71176,17 +74071,17 @@ "table": { "catalog": "", "schema": "public", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 } @@ -71194,7 +74089,7 @@ { "number": 2, "column": { - "name": "eid", + "name": "dest_url", "not_null": true, "is_array": false, "comment": "", @@ -71205,17 +74100,17 @@ "table": { "catalog": "", "schema": "public", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "eid", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 } @@ -71223,8 +74118,8 @@ { "number": 3, "column": { - "name": "is_attending", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71234,281 +74129,40 @@ "table": { "catalog": "", "schema": "public", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_catalog.bool" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_attending", + "original_name": "oid", "unsigned": false, "array_dims": 0 } } ], - "comments": [], + "comments": [ + " Link Queries" + ], "filename": "queries.sql", "insert_into_table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" } }, { - "text": "DELETE FROM event_registrations WHERE uid = $1 AND eid = $2", - "name": "UnregisterFromEvent", - "cmd": ":exec", - "columns": [], - "params": [ - { - "number": 1, - "column": { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 2, - "column": { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "SELECT is_admin FROM event_registrations WHERE uid = $1 AND eid = $2", - "name": "IsEventAdmin", + "text": "SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE lid = $1", + "name": "GetLinkByLID", "cmd": ":one", "columns": [ { - "name": "is_admin", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "is_admin", - "unsigned": false, - "array_dims": 0 - } - ], - "params": [ - { - "number": 1, - "column": { - "name": "uid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "uid", - "unsigned": false, - "array_dims": 0 - } - }, - { - "number": 2, - "column": { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 - } - } - ], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered\nFROM events e\nJOIN event_registrations er ON e.eid = er.eid\nWHERE er.uid = $1\nORDER BY e.event_time DESC", - "name": "GetUserEvents", - "cmd": ":many", - "columns": [ - { - "name": "eid", - "not_null": true, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "uuid" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "eid", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "location", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "", - "name": "text" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "location", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "event_time", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "events" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "event_time", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "description", - "not_null": false, + "name": "lid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71518,23 +74172,23 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "description", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "date_created", - "not_null": false, + "name": "endpoint_url", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71544,23 +74198,23 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_created", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 }, { - "name": "date_modified", - "not_null": false, + "name": "dest_url", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71570,23 +74224,23 @@ "table": { "catalog": "", "schema": "", - "name": "events" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "date" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_modified", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 }, { - "name": "is_attending", - "not_null": false, + "name": "oid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -71596,48 +74250,22 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "is_attending", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "is_admin", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { "catalog": "", "schema": "", - "name": "event_registrations" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_admin", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, { - "name": "date_registered", + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -71648,17 +74276,17 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { "catalog": "", - "schema": "", - "name": "date" + "schema": "pg_catalog", + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "date_registered", + "original_name": "created_at", "unsigned": false, "array_dims": 0 } @@ -71667,7 +74295,7 @@ { "number": 1, "column": { - "name": "uid", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -71678,7 +74306,7 @@ "table": { "catalog": "", "schema": "", - "name": "event_registrations" + "name": "links" }, "table_alias": "", "type": { @@ -71688,7 +74316,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "uid", + "original_name": "lid", "unsigned": false, "array_dims": 0 } @@ -71699,12 +74327,12 @@ "insert_into_table": null }, { - "text": "\nSELECT token_id, token_hash, name, created_by, created_at, last_used_at, expires_at, is_active FROM bot_tokens WHERE token_id = $1", - "name": "GetBotTokenByID", + "text": "SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE endpoint_url = $1", + "name": "GetLinkByEndpointURL", "cmd": ":one", "columns": [ { - "name": "token_id", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -71715,7 +74343,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71725,12 +74353,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "token_hash", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", @@ -71741,7 +74369,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71751,12 +74379,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_hash", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 }, { - "name": "name", + "name": "dest_url", "not_null": true, "is_array": false, "comment": "", @@ -71767,7 +74395,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71777,12 +74405,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 }, { - "name": "created_by", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -71793,7 +74421,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71803,7 +74431,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "created_by", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, @@ -71819,7 +74447,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71832,91 +74460,13 @@ "original_name": "created_at", "unsigned": false, "array_dims": 0 - }, - { - "name": "last_used_at", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_used_at", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "expires_at", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "expires_at", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "is_active", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "is_active", - "unsigned": false, - "array_dims": 0 } ], "params": [ { "number": 1, "column": { - "name": "token_id", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", @@ -71927,35 +74477,33 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 } } ], - "comments": [ - " Bot Token Queries" - ], + "comments": [], "filename": "queries.sql", "insert_into_table": null }, { - "text": "INSERT INTO bot_tokens (token_hash, name, created_by, expires_at)\nVALUES ($1, $2, $3, $4)\nRETURNING token_id, token_hash, name, created_by, created_at, last_used_at, expires_at, is_active", - "name": "CreateBotToken", + "text": "UPDATE links\nSET endpoint_url = COALESCE($2, endpoint_url),\n dest_url = COALESCE($3, dest_url)\nWHERE lid = $1\nRETURNING lid, endpoint_url, dest_url, oid, created_at", + "name": "UpdateLink", "cmd": ":one", "columns": [ { - "name": "token_id", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -71966,7 +74514,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -71976,12 +74524,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "token_hash", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", @@ -71992,7 +74540,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72002,12 +74550,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_hash", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 }, { - "name": "name", + "name": "dest_url", "not_null": true, "is_array": false, "comment": "", @@ -72018,7 +74566,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72028,12 +74576,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 }, { - "name": "created_by", + "name": "oid", "not_null": true, "is_array": false, "comment": "", @@ -72044,7 +74592,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72054,7 +74602,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "created_by", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, @@ -72070,7 +74618,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72083,91 +74631,13 @@ "original_name": "created_at", "unsigned": false, "array_dims": 0 - }, - { - "name": "last_used_at", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "last_used_at", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "expires_at", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "expires_at", - "unsigned": false, - "array_dims": 0 - }, - { - "name": "is_active", - "not_null": false, - "is_array": false, - "comment": "", - "length": -1, - "is_named_param": false, - "is_func_call": false, - "scope": "", - "table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - }, - "table_alias": "", - "type": { - "catalog": "", - "schema": "pg_catalog", - "name": "bool" - }, - "is_sqlc_slice": false, - "embed_table": null, - "original_name": "is_active", - "unsigned": false, - "array_dims": 0 } ], "params": [ { "number": 1, "column": { - "name": "token_hash", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -72177,18 +74647,18 @@ "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "bot_tokens" + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "text" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_hash", + "original_name": "lid", "unsigned": false, "array_dims": 0 } @@ -72196,18 +74666,18 @@ { "number": 2, "column": { - "name": "name", - "not_null": true, + "name": "endpoint_url", + "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72217,7 +74687,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 } @@ -72225,37 +74695,48 @@ { "number": 3, "column": { - "name": "created_by", - "not_null": true, + "name": "dest_url", + "not_null": false, "is_array": false, "comment": "", "length": -1, - "is_named_param": false, + "is_named_param": true, "is_func_call": false, "scope": "", "table": { "catalog": "", "schema": "public", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "uuid" + "name": "text" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "created_by", + "original_name": "dest_url", "unsigned": false, "array_dims": 0 } - }, + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "DELETE FROM links WHERE lid = $1", + "name": "DeleteLink", + "cmd": ":exec", + "columns": [], + "params": [ { - "number": 4, + "number": 1, "column": { - "name": "expires_at", - "not_null": false, + "name": "lid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -72264,18 +74745,18 @@ "scope": "", "table": { "catalog": "", - "schema": "public", - "name": "bot_tokens" + "schema": "", + "name": "links" }, "table_alias": "", "type": { "catalog": "", "schema": "", - "name": "pg_catalog.timestamp" + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "expires_at", + "original_name": "lid", "unsigned": false, "array_dims": 0 } @@ -72283,19 +74764,15 @@ ], "comments": [], "filename": "queries.sql", - "insert_into_table": { - "catalog": "", - "schema": "", - "name": "bot_tokens" - } + "insert_into_table": null }, { - "text": "SELECT token_id, name, created_by, created_at, last_used_at, expires_at, is_active\nFROM bot_tokens\nORDER BY created_at DESC", - "name": "ListBotTokens", + "text": "SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE oid = $1 ORDER BY created_at DESC", + "name": "ListLinksByOrg", "cmd": ":many", "columns": [ { - "name": "token_id", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -72306,7 +74783,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72316,12 +74793,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "name", + "name": "endpoint_url", "not_null": true, "is_array": false, "comment": "", @@ -72332,7 +74809,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72342,12 +74819,12 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "name", + "original_name": "endpoint_url", "unsigned": false, "array_dims": 0 }, { - "name": "created_by", + "name": "dest_url", "not_null": true, "is_array": false, "comment": "", @@ -72358,7 +74835,33 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "text" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "dest_url", + "unsigned": false, + "array_dims": 0 + }, + { + "name": "oid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "links" }, "table_alias": "", "type": { @@ -72368,7 +74871,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "created_by", + "original_name": "oid", "unsigned": false, "array_dims": 0 }, @@ -72384,7 +74887,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "links" }, "table_alias": "", "type": { @@ -72397,10 +74900,77 @@ "original_name": "created_at", "unsigned": false, "array_dims": 0 + } + ], + "params": [ + { + "number": 1, + "column": { + "name": "oid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "links" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "oid", + "unsigned": false, + "array_dims": 0 + } + } + ], + "comments": [], + "filename": "queries.sql", + "insert_into_table": null + }, + { + "text": "INSERT INTO link_visits (lid, uid)\nVALUES ($1, $2)\nRETURNING lvid, lid, uid, created_at", + "name": "LogLinkVisit", + "cmd": ":one", + "columns": [ + { + "name": "lvid", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "", + "name": "link_visits" + }, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "lvid", + "unsigned": false, + "array_dims": 0 }, { - "name": "last_used_at", - "not_null": false, + "name": "lid", + "not_null": true, "is_array": false, "comment": "", "length": -1, @@ -72410,22 +74980,22 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" + "schema": "", + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "last_used_at", + "original_name": "lid", "unsigned": false, "array_dims": 0 }, { - "name": "expires_at", + "name": "uid", "not_null": false, "is_array": false, "comment": "", @@ -72436,22 +75006,22 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", - "schema": "pg_catalog", - "name": "timestamp" + "schema": "", + "name": "uuid" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "expires_at", + "original_name": "uid", "unsigned": false, "array_dims": 0 }, { - "name": "is_active", + "name": "created_at", "not_null": false, "is_array": false, "comment": "", @@ -72462,36 +75032,26 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "link_visits" }, "table_alias": "", "type": { "catalog": "", "schema": "pg_catalog", - "name": "bool" + "name": "timestamp" }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "is_active", + "original_name": "created_at", "unsigned": false, "array_dims": 0 } ], - "params": [], - "comments": [], - "filename": "queries.sql", - "insert_into_table": null - }, - { - "text": "UPDATE bot_tokens SET is_active = false WHERE token_id = $1", - "name": "RevokeBotToken", - "cmd": ":exec", - "columns": [], "params": [ { "number": 1, "column": { - "name": "token_id", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -72500,9 +75060,38 @@ "is_func_call": false, "scope": "", "table": { + "catalog": "", + "schema": "public", + "name": "link_visits" + }, + "table_alias": "", + "type": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "uuid" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "lid", + "unsigned": false, + "array_dims": 0 + } + }, + { + "number": 2, + "column": { + "name": "uid", + "not_null": false, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": false, + "scope": "", + "table": { + "catalog": "", + "schema": "public", + "name": "link_visits" }, "table_alias": "", "type": { @@ -72512,7 +75101,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "uid", "unsigned": false, "array_dims": 0 } @@ -72520,18 +75109,45 @@ ], "comments": [], "filename": "queries.sql", - "insert_into_table": null + "insert_into_table": { + "catalog": "", + "schema": "", + "name": "link_visits" + } }, { - "text": "UPDATE bot_tokens SET last_used_at = CURRENT_TIMESTAMP WHERE token_id = $1", - "name": "UpdateBotTokenLastUsed", - "cmd": ":exec", - "columns": [], + "text": "SELECT COUNT(*) FROM link_visits WHERE lid = $1", + "name": "GetTotalVisits", + "cmd": ":one", + "columns": [ + { + "name": "count", + "not_null": true, + "is_array": false, + "comment": "", + "length": -1, + "is_named_param": false, + "is_func_call": true, + "scope": "", + "table": null, + "table_alias": "", + "type": { + "catalog": "", + "schema": "", + "name": "bigint" + }, + "is_sqlc_slice": false, + "embed_table": null, + "original_name": "", + "unsigned": false, + "array_dims": 0 + } + ], "params": [ { "number": 1, "column": { - "name": "token_id", + "name": "lid", "not_null": true, "is_array": false, "comment": "", @@ -72542,7 +75158,7 @@ "table": { "catalog": "", "schema": "", - "name": "bot_tokens" + "name": "link_visits" }, "table_alias": "", "type": { @@ -72552,7 +75168,7 @@ }, "is_sqlc_slice": false, "embed_table": null, - "original_name": "token_id", + "original_name": "lid", "unsigned": false, "array_dims": 0 } diff --git a/docs/swagger/docs.go b/docs/swagger/docs.go index d6a0539..c40b5f8 100644 --- a/docs/swagger/docs.go +++ b/docs/swagger/docs.go @@ -218,7 +218,7 @@ const docTemplate = `{ "BotToken": [] } ], - "description": "Returns information about the current bot token. Authenticate with X-Bot-Token: ., for example: curl -H 'X-Bot-Token: ' http://localhost:8080/api/v1/bot/me", + "description": "Returns information about the current bot token. Authenticate with X-Bot-Token: \u003ctoken_id\u003e.\u003csecret\u003e, for example: curl -H 'X-Bot-Token: \u003ctoken\u003e' http://localhost:8080/api/v1/bot/me", "consumes": [ "application/json" ], @@ -252,7 +252,7 @@ const docTemplate = `{ "CookieAuth": [] } ], - "description": "Returns all bot tokens (requires faculty role)", + "description": "Returns all bot tokens (requires dev role)", "consumes": [ "application/json" ], @@ -287,7 +287,7 @@ const docTemplate = `{ "CookieAuth": [] } ], - "description": "Creates a new bot token (requires faculty role). The raw token is returned only once and must be stored by the caller.", + "description": "Creates a new bot token (requires dev role). The raw token is returned only once and must be stored by the caller.", "consumes": [ "application/json" ], @@ -338,7 +338,7 @@ const docTemplate = `{ "CookieAuth": [] } ], - "description": "Revokes a bot token (requires faculty role)", + "description": "Revokes a bot token (requires dev role)", "consumes": [ "application/json" ], @@ -379,11 +379,6 @@ const docTemplate = `{ }, "/events": { "get": { - "security": [ - { - "CookieAuth": [] - } - ], "description": "Returns a paginated list of all public events", "consumes": [ "application/json" @@ -841,13 +836,198 @@ const docTemplate = `{ } } }, - "/organizations": { + "/links": { + "post": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Creates a new dynamic link for an organization. Requires org_admin role.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Create link", + "parameters": [ + { + "description": "Link data", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CreateLinkRequest" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/dto.LinkResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}": { + "put": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Updates a dynamic link's destination or endpoint URL. Requires org_admin role.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Update link", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + }, + { + "description": "Update data", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/dto.UpdateLinkRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.LinkResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}/qrcode": { + "get": { + "description": "Generates and returns a QR code image for the link's destination URL", + "produces": [ + "image/png" + ], + "tags": [ + "links" + ], + "summary": "Get QR code", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "file" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}/visits": { "get": { "security": [ { "CookieAuth": [] } ], + "description": "Returns the total number of visits logged for a link", + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Get visit count", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.VisitCountResponse" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/organizations": { + "get": { "description": "Returns a paginated list of all organizations", "consumes": [ "application/json" @@ -1136,6 +1316,52 @@ const docTemplate = `{ } } }, + "/organizations/{oid}/links": { + "get": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Returns all dynamic links owned by an organization", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "List org links", + "parameters": [ + { + "type": "string", + "description": "Organization UUID", + "name": "oid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.LinkResponse" + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, "/organizations/{oid}/members": { "get": { "security": [ @@ -1300,6 +1526,35 @@ const docTemplate = `{ } } }, + "/r/{endpoint_url}": { + "get": { + "description": "Redirects to the destination URL and logs a visit", + "tags": [ + "links" + ], + "summary": "Resolve link", + "parameters": [ + { + "type": "string", + "description": "Dynamic link endpoint URL", + "name": "endpoint_url", + "in": "path", + "required": true + } + ], + "responses": { + "302": { + "description": "Found" + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, "/users/{uid}": { "get": { "security": [ @@ -1348,7 +1603,7 @@ const docTemplate = `{ "CookieAuth": [] } ], - "description": "Updates a user's profile. Users can only update their own profile.", + "description": "Updates a user's profile. Only role changes require the caller to have the dev role.", "consumes": [ "application/json" ], @@ -1575,6 +1830,28 @@ const docTemplate = `{ "org_id": { "description": "Which org is hosting", "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "dto.CreateLinkRequest": { + "type": "object", + "required": [ + "dest_url", + "endpoint_url", + "org_id" + ], + "properties": { + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" + }, + "org_id": { + "type": "string" } } }, @@ -1638,6 +1915,35 @@ const docTemplate = `{ }, "location": { "type": "string" + }, + "oids": { + "type": "array", + "items": { + "type": "string" + } + }, + "title": { + "type": "string" + } + } + }, + "dto.LinkResponse": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" + }, + "lid": { + "type": "string" + }, + "org_id": { + "type": "string" } } }, @@ -1707,6 +2013,20 @@ const docTemplate = `{ }, "location": { "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "dto.UpdateLinkRequest": { + "type": "object", + "properties": { + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" } } }, @@ -1750,7 +2070,8 @@ const docTemplate = `{ "student", "alumni", "faculty", - "external" + "external", + "dev" ] }, "school_email": { @@ -1793,6 +2114,17 @@ const docTemplate = `{ } } }, + "dto.VisitCountResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "lid": { + "type": "string" + } + } + }, "handler.AuthResponse": { "type": "object", "properties": { @@ -1805,42 +2137,42 @@ const docTemplate = `{ } } }, - "handler.BotTokenResponse": { + "handler.BotMeResponse": { "type": "object", "properties": { - "created_at": { + "auth_type": { "type": "string" }, "expires_at": { "type": "string" }, - "is_active": { - "type": "boolean" - }, "name": { "type": "string" }, - "token": { - "description": "Only on creation. Store it immediately; it is not returned again.", - "type": "string" - }, "token_id": { "type": "string" } } }, - "handler.BotMeResponse": { + "handler.BotTokenResponse": { "type": "object", "properties": { - "auth_type": { + "created_at": { "type": "string" }, "expires_at": { "type": "string" }, + "is_active": { + "type": "boolean" + }, "name": { "type": "string" }, + "token": { + "description": "Only on creation", + "type": "string" + }, "token_id": { "type": "string" } diff --git a/docs/swagger/swagger.json b/docs/swagger/swagger.json index e57d7c0..c929f97 100644 --- a/docs/swagger/swagger.json +++ b/docs/swagger/swagger.json @@ -212,7 +212,7 @@ "BotToken": [] } ], - "description": "Returns information about the current bot token. Authenticate with X-Bot-Token: ., for example: curl -H 'X-Bot-Token: ' http://localhost:8080/api/v1/bot/me", + "description": "Returns information about the current bot token. Authenticate with X-Bot-Token: \u003ctoken_id\u003e.\u003csecret\u003e, for example: curl -H 'X-Bot-Token: \u003ctoken\u003e' http://localhost:8080/api/v1/bot/me", "consumes": [ "application/json" ], @@ -246,7 +246,7 @@ "CookieAuth": [] } ], - "description": "Returns all bot tokens (requires faculty role)", + "description": "Returns all bot tokens (requires dev role)", "consumes": [ "application/json" ], @@ -281,7 +281,7 @@ "CookieAuth": [] } ], - "description": "Creates a new bot token (requires faculty role). The raw token is returned only once and must be stored by the caller.", + "description": "Creates a new bot token (requires dev role). The raw token is returned only once and must be stored by the caller.", "consumes": [ "application/json" ], @@ -332,7 +332,7 @@ "CookieAuth": [] } ], - "description": "Revokes a bot token (requires faculty role)", + "description": "Revokes a bot token (requires dev role)", "consumes": [ "application/json" ], @@ -373,11 +373,6 @@ }, "/events": { "get": { - "security": [ - { - "CookieAuth": [] - } - ], "description": "Returns a paginated list of all public events", "consumes": [ "application/json" @@ -835,13 +830,198 @@ } } }, - "/organizations": { + "/links": { + "post": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Creates a new dynamic link for an organization. Requires org_admin role.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Create link", + "parameters": [ + { + "description": "Link data", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/dto.CreateLinkRequest" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/dto.LinkResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}": { + "put": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Updates a dynamic link's destination or endpoint URL. Requires org_admin role.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Update link", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + }, + { + "description": "Update data", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/dto.UpdateLinkRequest" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.LinkResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "403": { + "description": "Forbidden", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}/qrcode": { + "get": { + "description": "Generates and returns a QR code image for the link's destination URL", + "produces": [ + "image/png" + ], + "tags": [ + "links" + ], + "summary": "Get QR code", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "file" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/links/{lid}/visits": { "get": { "security": [ { "CookieAuth": [] } ], + "description": "Returns the total number of visits logged for a link", + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "Get visit count", + "parameters": [ + { + "type": "string", + "description": "Link UUID", + "name": "lid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/dto.VisitCountResponse" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, + "/organizations": { + "get": { "description": "Returns a paginated list of all organizations", "consumes": [ "application/json" @@ -1130,6 +1310,52 @@ } } }, + "/organizations/{oid}/links": { + "get": { + "security": [ + { + "CookieAuth": [] + } + ], + "description": "Returns all dynamic links owned by an organization", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "links" + ], + "summary": "List org links", + "parameters": [ + { + "type": "string", + "description": "Organization UUID", + "name": "oid", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/dto.LinkResponse" + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, "/organizations/{oid}/members": { "get": { "security": [ @@ -1294,6 +1520,35 @@ } } }, + "/r/{endpoint_url}": { + "get": { + "description": "Redirects to the destination URL and logs a visit", + "tags": [ + "links" + ], + "summary": "Resolve link", + "parameters": [ + { + "type": "string", + "description": "Dynamic link endpoint URL", + "name": "endpoint_url", + "in": "path", + "required": true + } + ], + "responses": { + "302": { + "description": "Found" + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/handler.ErrorResponse" + } + } + } + } + }, "/users/{uid}": { "get": { "security": [ @@ -1342,7 +1597,7 @@ "CookieAuth": [] } ], - "description": "Updates a user's profile. Users can only update their own profile.", + "description": "Updates a user's profile. Only role changes require the caller to have the dev role.", "consumes": [ "application/json" ], @@ -1569,6 +1824,28 @@ "org_id": { "description": "Which org is hosting", "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "dto.CreateLinkRequest": { + "type": "object", + "required": [ + "dest_url", + "endpoint_url", + "org_id" + ], + "properties": { + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" + }, + "org_id": { + "type": "string" } } }, @@ -1632,6 +1909,35 @@ }, "location": { "type": "string" + }, + "oids": { + "type": "array", + "items": { + "type": "string" + } + }, + "title": { + "type": "string" + } + } + }, + "dto.LinkResponse": { + "type": "object", + "properties": { + "created_at": { + "type": "string" + }, + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" + }, + "lid": { + "type": "string" + }, + "org_id": { + "type": "string" } } }, @@ -1701,6 +2007,20 @@ }, "location": { "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "dto.UpdateLinkRequest": { + "type": "object", + "properties": { + "dest_url": { + "type": "string" + }, + "endpoint_url": { + "type": "string" } } }, @@ -1744,7 +2064,8 @@ "student", "alumni", "faculty", - "external" + "external", + "dev" ] }, "school_email": { @@ -1787,6 +2108,17 @@ } } }, + "dto.VisitCountResponse": { + "type": "object", + "properties": { + "count": { + "type": "integer" + }, + "lid": { + "type": "string" + } + } + }, "handler.AuthResponse": { "type": "object", "properties": { @@ -1799,42 +2131,42 @@ } } }, - "handler.BotTokenResponse": { + "handler.BotMeResponse": { "type": "object", "properties": { - "created_at": { + "auth_type": { "type": "string" }, "expires_at": { "type": "string" }, - "is_active": { - "type": "boolean" - }, "name": { "type": "string" }, - "token": { - "description": "Only on creation. Store it immediately; it is not returned again.", - "type": "string" - }, "token_id": { "type": "string" } } }, - "handler.BotMeResponse": { + "handler.BotTokenResponse": { "type": "object", "properties": { - "auth_type": { + "created_at": { "type": "string" }, "expires_at": { "type": "string" }, + "is_active": { + "type": "boolean" + }, "name": { "type": "string" }, + "token": { + "description": "Only on creation", + "type": "string" + }, "token_id": { "type": "string" } @@ -1900,4 +2232,4 @@ "in": "cookie" } } -} +} \ No newline at end of file diff --git a/docs/swagger/swagger.yaml b/docs/swagger/swagger.yaml index a7e12ef..0cf730e 100644 --- a/docs/swagger/swagger.yaml +++ b/docs/swagger/swagger.yaml @@ -20,9 +20,24 @@ definitions: org_id: description: Which org is hosting type: string + title: + type: string required: - org_id type: object + dto.CreateLinkRequest: + properties: + dest_url: + type: string + endpoint_url: + type: string + org_id: + type: string + required: + - dest_url + - endpoint_url + - org_id + type: object dto.CreateOrganizationRequest: properties: creator_uid: @@ -64,6 +79,25 @@ definitions: type: string location: type: string + oids: + items: + type: string + type: array + title: + type: string + type: object + dto.LinkResponse: + properties: + created_at: + type: string + dest_url: + type: string + endpoint_url: + type: string + lid: + type: string + org_id: + type: string type: object dto.OrgMemberResponse: properties: @@ -109,6 +143,15 @@ definitions: type: string location: type: string + title: + type: string + type: object + dto.UpdateLinkRequest: + properties: + dest_url: + type: string + endpoint_url: + type: string type: object dto.UpdateOrganizationRequest: properties: @@ -141,6 +184,7 @@ definitions: - alumni - faculty - external + - dev type: string school_email: type: string @@ -168,6 +212,13 @@ definitions: uid: type: string type: object + dto.VisitCountResponse: + properties: + count: + type: integer + lid: + type: string + type: object handler.AuthResponse: properties: token: @@ -176,30 +227,30 @@ definitions: user: $ref: '#/definitions/handler.UserAuthResponse' type: object - handler.BotTokenResponse: + handler.BotMeResponse: properties: - created_at: + auth_type: type: string expires_at: type: string - is_active: - type: boolean name: type: string - token: - description: Only on creation. Store it immediately; it is not returned again. - type: string token_id: type: string type: object - handler.BotMeResponse: + handler.BotTokenResponse: properties: - auth_type: + created_at: type: string expires_at: type: string + is_active: + type: boolean name: type: string + token: + description: Only on creation + type: string token_id: type: string type: object @@ -371,8 +422,9 @@ paths: get: consumes: - application/json - description: 'Returns information about the current bot token. Authenticate with X-Bot-Token: - ., for example: curl -H ''X-Bot-Token: '' http://localhost:8080/api/v1/bot/me' + description: 'Returns information about the current bot token. Authenticate + with X-Bot-Token: ., for example: curl -H ''X-Bot-Token: + '' http://localhost:8080/api/v1/bot/me' produces: - application/json responses: @@ -393,7 +445,7 @@ paths: get: consumes: - application/json - description: Returns all bot tokens (requires faculty role) + description: Returns all bot tokens (requires dev role) produces: - application/json responses: @@ -415,7 +467,8 @@ paths: post: consumes: - application/json - description: Creates a new bot token (requires faculty role). The raw token is returned only once and must be stored by the caller. + description: Creates a new bot token (requires dev role). The raw token is returned + only once and must be stored by the caller. parameters: - description: Token data in: body @@ -447,7 +500,7 @@ paths: delete: consumes: - application/json - description: Revokes a bot token (requires faculty role) + description: Revokes a bot token (requires dev role) parameters: - description: Token UUID in: path @@ -495,8 +548,6 @@ paths: items: $ref: '#/definitions/dto.EventResponse' type: array - security: - - CookieAuth: [] summary: List events tags: - events @@ -767,6 +818,130 @@ paths: summary: List events by organization tags: - events + /links: + post: + consumes: + - application/json + description: Creates a new dynamic link for an organization. Requires org_admin + role. + parameters: + - description: Link data + in: body + name: body + required: true + schema: + $ref: '#/definitions/dto.CreateLinkRequest' + produces: + - application/json + responses: + "201": + description: Created + schema: + $ref: '#/definitions/dto.LinkResponse' + "400": + description: Bad Request + schema: + $ref: '#/definitions/handler.ErrorResponse' + "403": + description: Forbidden + schema: + $ref: '#/definitions/handler.ErrorResponse' + security: + - CookieAuth: [] + summary: Create link + tags: + - links + /links/{lid}: + put: + consumes: + - application/json + description: Updates a dynamic link's destination or endpoint URL. Requires + org_admin role. + parameters: + - description: Link UUID + in: path + name: lid + required: true + type: string + - description: Update data + in: body + name: body + required: true + schema: + $ref: '#/definitions/dto.UpdateLinkRequest' + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/dto.LinkResponse' + "400": + description: Bad Request + schema: + $ref: '#/definitions/handler.ErrorResponse' + "403": + description: Forbidden + schema: + $ref: '#/definitions/handler.ErrorResponse' + "404": + description: Not Found + schema: + $ref: '#/definitions/handler.ErrorResponse' + security: + - CookieAuth: [] + summary: Update link + tags: + - links + /links/{lid}/qrcode: + get: + description: Generates and returns a QR code image for the link's destination + URL + parameters: + - description: Link UUID + in: path + name: lid + required: true + type: string + produces: + - image/png + responses: + "200": + description: OK + schema: + type: file + "404": + description: Not Found + schema: + $ref: '#/definitions/handler.ErrorResponse' + summary: Get QR code + tags: + - links + /links/{lid}/visits: + get: + description: Returns the total number of visits logged for a link + parameters: + - description: Link UUID + in: path + name: lid + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/dto.VisitCountResponse' + "404": + description: Not Found + schema: + $ref: '#/definitions/handler.ErrorResponse' + security: + - CookieAuth: [] + summary: Get visit count + tags: + - links /organizations: get: consumes: @@ -790,8 +965,6 @@ paths: items: $ref: '#/definitions/dto.OrganizationResponse' type: array - security: - - CookieAuth: [] summary: List organizations tags: - organizations @@ -954,6 +1127,35 @@ paths: summary: List organization events tags: - organizations + /organizations/{oid}/links: + get: + consumes: + - application/json + description: Returns all dynamic links owned by an organization + parameters: + - description: Organization UUID + in: path + name: oid + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + items: + $ref: '#/definitions/dto.LinkResponse' + type: array + "404": + description: Not Found + schema: + $ref: '#/definitions/handler.ErrorResponse' + security: + - CookieAuth: [] + summary: List org links + tags: + - links /organizations/{oid}/members: get: consumes: @@ -1059,6 +1261,25 @@ paths: summary: Remove organization member tags: - organizations + /r/{endpoint_url}: + get: + description: Redirects to the destination URL and logs a visit + parameters: + - description: Dynamic link endpoint URL + in: path + name: endpoint_url + required: true + type: string + responses: + "302": + description: Found + "404": + description: Not Found + schema: + $ref: '#/definitions/handler.ErrorResponse' + summary: Resolve link + tags: + - links /users/{uid}: delete: consumes: @@ -1117,7 +1338,8 @@ paths: put: consumes: - application/json - description: Updates a user's profile. Users can only update their own profile. + description: Updates a user's profile. Only role changes require the caller + to have the dev role. parameters: - description: User UUID in: path diff --git a/go.mod b/go.mod index 848d0b0..7bd1a22 100644 --- a/go.mod +++ b/go.mod @@ -15,6 +15,8 @@ require ( github.com/swaggo/swag v1.16.6 github.com/testcontainers/testcontainers-go v0.40.0 github.com/testcontainers/testcontainers-go/modules/postgres v0.40.0 + github.com/yeqown/go-qrcode/v2 v2.2.5 + github.com/yeqown/go-qrcode/writer/standard v1.3.0 golang.org/x/crypto v0.47.0 golang.org/x/oauth2 v0.34.0 ) @@ -39,6 +41,7 @@ require ( github.com/docker/go-units v0.5.0 // indirect github.com/ebitengine/purego v0.8.4 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fogleman/gg v1.3.0 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-ole/go-ole v1.2.6 // indirect @@ -46,6 +49,7 @@ require ( github.com/go-openapi/jsonreference v0.20.0 // indirect github.com/go-openapi/spec v0.20.6 // indirect github.com/go-openapi/swag v0.19.15 // indirect + github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.7 // indirect github.com/jackc/pgpassfile v1.0.0 // indirect github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect @@ -75,6 +79,7 @@ require ( github.com/swaggo/files/v2 v2.0.0 // indirect github.com/tklauser/go-sysconf v0.3.12 // indirect github.com/tklauser/numcpus v0.6.1 // indirect + github.com/yeqown/reedsolomon v1.0.0 // indirect github.com/yusufpapurcu/wmi v1.2.4 // indirect go.opentelemetry.io/auto/sdk v1.2.1 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.61.0 // indirect @@ -83,6 +88,7 @@ require ( go.opentelemetry.io/otel/sdk v1.38.0 // indirect go.opentelemetry.io/otel/sdk/metric v1.38.0 // indirect go.opentelemetry.io/otel/trace v1.38.0 // indirect + golang.org/x/image v0.10.0 // indirect golang.org/x/mod v0.31.0 // indirect golang.org/x/sync v0.19.0 // indirect golang.org/x/sys v0.40.0 // indirect diff --git a/go.sum b/go.sum index c5248b8..45ee0bd 100644 --- a/go.sum +++ b/go.sum @@ -45,6 +45,8 @@ github.com/ebitengine/purego v0.8.4 h1:CF7LEKg5FFOsASUj0+QwaXf8Ht6TlFxg09+S9wz0o github.com/ebitengine/purego v0.8.4/go.mod h1:iIjxzd6CiRiOG0UyXP+V1+jWqUXVjPKLAI0mRfJZTmQ= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fogleman/gg v1.3.0 h1:/7zJX8F6AaYQc57WQCyN9cAIz+4bCJGO9B+dyW29am8= +github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= github.com/go-chi/chi/v5 v5.2.4 h1:WtFKPHwlywe8Srng8j2BhOD9312j9cGUxG1SP4V2cR4= github.com/go-chi/chi/v5 v5.2.4/go.mod h1:X7Gx4mteadT3eDOMTsXzmI4/rwUpOwBHLpAfupzFJP0= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -68,6 +70,8 @@ github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63Y github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= github.com/golang-migrate/migrate/v4 v4.19.1 h1:OCyb44lFuQfYXYLx1SCxPZQGU7mcaZ7gH9yH4jSFbBA= github.com/golang-migrate/migrate/v4 v4.19.1/go.mod h1:CTcgfjxhaUtsLipnLoQRWCrjYXycRz/g5+RWDuYgPrE= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 h1:DACJavvAHhabrF08vX0COfcOBJRhZ8lUbR+ZWIs0Y5g= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= @@ -168,6 +172,13 @@ github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFA github.com/tklauser/go-sysconf v0.3.12/go.mod h1:Ho14jnntGE1fpdOqQEEaiKRpvIavV0hSfmBq8nJbHYI= github.com/tklauser/numcpus v0.6.1 h1:ng9scYS7az0Bk4OZLvrNXNSAO2Pxr1XXRAPyjhIx+Fk= github.com/tklauser/numcpus v0.6.1/go.mod h1:1XfjsgE2zo8GVw7POkMbHENHzVg3GzmoZ9fESEdAacY= +github.com/yeqown/go-qrcode/v2 v2.2.5 h1:HCOe2bSjkhZyYoyyNaXNzh4DJZll6inVJQQw+8228Zk= +github.com/yeqown/go-qrcode/v2 v2.2.5/go.mod h1:uHpt9CM0V1HeXLz+Wg5MN50/sI/fQhfkZlOM+cOTHxw= +github.com/yeqown/go-qrcode/writer/standard v1.3.0 h1:chdyhEfRtUPgQtuPeaWVGQ/TQx4rE1PqeoW3U+53t34= +github.com/yeqown/go-qrcode/writer/standard v1.3.0/go.mod h1:O4MbzsotGCvy8upYPCR91j81dr5XLT7heuljcNXW+oQ= +github.com/yeqown/reedsolomon v1.0.0 h1:x1h/Ej/uJnNu8jaX7GLHBWmZKCAWjEJTetkqaabr4B0= +github.com/yeqown/reedsolomon v1.0.0/go.mod h1:P76zpcn2TCuL0ul1Fso373qHRc69LKwAw/Iy6g1WiiM= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0= github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0= go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64= @@ -190,32 +201,64 @@ go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJr go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs= go.opentelemetry.io/proto/otlp v1.3.1 h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0= go.opentelemetry.io/proto/otlp v1.3.1/go.mod h1:0X1WI4de4ZsLrrJNLAQbFeLCm3T7yBkR0XqQ7niQU+8= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.47.0 h1:V6e3FRj+n4dbpw86FJ8Fv7XVOql7TEwpHapKoMJ/GO8= golang.org/x/crypto v0.47.0/go.mod h1:ff3Y9VzzKbwSSEzWqJsJVBnWmRwRSHt/6Op5n9bQc4A= +golang.org/x/image v0.10.0 h1:gXjUUtwtx5yOE0VKWq1CH4IJAClq4UGgUA3i+rpON9M= +golang.org/x/image v0.10.0/go.mod h1:jtrku+n79PfroUbvDdeUWMAI+heR786BofxrbiSF+J0= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI= golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201204225414-ed752295db88/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.39.0 h1:RclSuaJf32jOqZz74CkPA9qFuVTX7vhLlpfj/IGWlqY= golang.org/x/term v0.39.0/go.mod h1:yxzUCTP/U+FzoxfdKmLaA0RV1WgE0VY7hXBwKtY/4ww= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.33.0 h1:B3njUFyqtHDUI5jMn1YIr5B0IE2U0qck04r6d4KPAxE= golang.org/x/text v0.33.0/go.mod h1:LuMebE6+rBincTi9+xWTY8TztLzKHc/9C1uBCG27+q8= golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE= golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA= golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/genproto v0.0.0-20250603155806-513f23925822 h1:rHWScKit0gvAPuOnu87KpaYtjK5zBMLcULh7gxkCXu4= google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409 h1:merA0rdPeUV3YIIfHHcH4qBkiQAc1nfCKSI7lB4cV2M= diff --git a/internal/database/mocks/Querier.go b/internal/database/mocks/Querier.go index 3baf283..1bc0dcc 100644 --- a/internal/database/mocks/Querier.go +++ b/internal/database/mocks/Querier.go @@ -110,6 +110,34 @@ func (_m *Querier) CreateEvent(ctx context.Context, arg database.CreateEventPara return r0, r1 } +// CreateLink provides a mock function with given fields: ctx, arg +func (_m *Querier) CreateLink(ctx context.Context, arg database.CreateLinkParams) (database.Link, error) { + ret := _m.Called(ctx, arg) + + if len(ret) == 0 { + panic("no return value specified for CreateLink") + } + + var r0 database.Link + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, database.CreateLinkParams) (database.Link, error)); ok { + return rf(ctx, arg) + } + if rf, ok := ret.Get(0).(func(context.Context, database.CreateLinkParams) database.Link); ok { + r0 = rf(ctx, arg) + } else { + r0 = ret.Get(0).(database.Link) + } + + if rf, ok := ret.Get(1).(func(context.Context, database.CreateLinkParams) error); ok { + r1 = rf(ctx, arg) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // CreateOrganization provides a mock function with given fields: ctx, name func (_m *Querier) CreateOrganization(ctx context.Context, name string) (database.Organization, error) { ret := _m.Called(ctx, name) @@ -184,6 +212,24 @@ func (_m *Querier) DeleteEvent(ctx context.Context, eid uuid.UUID) error { return r0 } +// DeleteLink provides a mock function with given fields: ctx, lid +func (_m *Querier) DeleteLink(ctx context.Context, lid uuid.UUID) error { + ret := _m.Called(ctx, lid) + + if len(ret) == 0 { + panic("no return value specified for DeleteLink") + } + + var r0 error + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) error); ok { + r0 = rf(ctx, lid) + } else { + r0 = ret.Error(0) + } + + return r0 +} + // DeleteOrganization provides a mock function with given fields: ctx, oid func (_m *Querier) DeleteOrganization(ctx context.Context, oid uuid.UUID) error { ret := _m.Called(ctx, oid) @@ -249,22 +295,22 @@ func (_m *Querier) GetBotTokenByID(ctx context.Context, tokenID uuid.UUID) (data } // GetEventByID provides a mock function with given fields: ctx, eid -func (_m *Querier) GetEventByID(ctx context.Context, eid uuid.UUID) (database.Event, error) { +func (_m *Querier) GetEventByID(ctx context.Context, eid uuid.UUID) (database.EventsWithOrgID, error) { ret := _m.Called(ctx, eid) if len(ret) == 0 { panic("no return value specified for GetEventByID") } - var r0 database.Event + var r0 database.EventsWithOrgID var r1 error - if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) (database.Event, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) (database.EventsWithOrgID, error)); ok { return rf(ctx, eid) } - if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) database.Event); ok { + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) database.EventsWithOrgID); ok { r0 = rf(ctx, eid) } else { - r0 = ret.Get(0).(database.Event) + r0 = ret.Get(0).(database.EventsWithOrgID) } if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok { @@ -306,6 +352,62 @@ func (_m *Querier) GetEventRegistrations(ctx context.Context, eid uuid.UUID) ([] return r0, r1 } +// GetLinkByEndpointURL provides a mock function with given fields: ctx, endpointUrl +func (_m *Querier) GetLinkByEndpointURL(ctx context.Context, endpointUrl string) (database.Link, error) { + ret := _m.Called(ctx, endpointUrl) + + if len(ret) == 0 { + panic("no return value specified for GetLinkByEndpointURL") + } + + var r0 database.Link + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string) (database.Link, error)); ok { + return rf(ctx, endpointUrl) + } + if rf, ok := ret.Get(0).(func(context.Context, string) database.Link); ok { + r0 = rf(ctx, endpointUrl) + } else { + r0 = ret.Get(0).(database.Link) + } + + if rf, ok := ret.Get(1).(func(context.Context, string) error); ok { + r1 = rf(ctx, endpointUrl) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// GetLinkByLID provides a mock function with given fields: ctx, lid +func (_m *Querier) GetLinkByLID(ctx context.Context, lid uuid.UUID) (database.Link, error) { + ret := _m.Called(ctx, lid) + + if len(ret) == 0 { + panic("no return value specified for GetLinkByLID") + } + + var r0 database.Link + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) (database.Link, error)); ok { + return rf(ctx, lid) + } + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) database.Link); ok { + r0 = rf(ctx, lid) + } else { + r0 = ret.Get(0).(database.Link) + } + + if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok { + r1 = rf(ctx, lid) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetOrgMembers provides a mock function with given fields: ctx, oid func (_m *Querier) GetOrgMembers(ctx context.Context, oid uuid.UUID) ([]database.GetOrgMembersRow, error) { ret := _m.Called(ctx, oid) @@ -364,6 +466,34 @@ func (_m *Querier) GetOrganizationByID(ctx context.Context, oid uuid.UUID) (data return r0, r1 } +// GetTotalVisits provides a mock function with given fields: ctx, lid +func (_m *Querier) GetTotalVisits(ctx context.Context, lid uuid.UUID) (int64, error) { + ret := _m.Called(ctx, lid) + + if len(ret) == 0 { + panic("no return value specified for GetTotalVisits") + } + + var r0 int64 + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) (int64, error)); ok { + return rf(ctx, lid) + } + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) int64); ok { + r0 = rf(ctx, lid) + } else { + r0 = ret.Get(0).(int64) + } + + if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok { + r1 = rf(ctx, lid) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // GetUserByEmail provides a mock function with given fields: ctx, personalEmail func (_m *Querier) GetUserByEmail(ctx context.Context, personalEmail pgtype.Text) (database.User, error) { ret := _m.Called(ctx, personalEmail) @@ -567,23 +697,23 @@ func (_m *Querier) ListBotTokens(ctx context.Context) ([]database.ListBotTokensR } // ListEvents provides a mock function with given fields: ctx, arg -func (_m *Querier) ListEvents(ctx context.Context, arg database.ListEventsParams) ([]database.Event, error) { +func (_m *Querier) ListEvents(ctx context.Context, arg database.ListEventsParams) ([]database.EventsWithOrgID, error) { ret := _m.Called(ctx, arg) if len(ret) == 0 { panic("no return value specified for ListEvents") } - var r0 []database.Event + var r0 []database.EventsWithOrgID var r1 error - if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsParams) ([]database.Event, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsParams) ([]database.EventsWithOrgID, error)); ok { return rf(ctx, arg) } - if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsParams) []database.Event); ok { + if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsParams) []database.EventsWithOrgID); ok { r0 = rf(ctx, arg) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).([]database.Event) + r0 = ret.Get(0).([]database.EventsWithOrgID) } } @@ -597,23 +727,23 @@ func (_m *Querier) ListEvents(ctx context.Context, arg database.ListEventsParams } // ListEventsByOrg provides a mock function with given fields: ctx, arg -func (_m *Querier) ListEventsByOrg(ctx context.Context, arg database.ListEventsByOrgParams) ([]database.Event, error) { +func (_m *Querier) ListEventsByOrg(ctx context.Context, arg database.ListEventsByOrgParams) ([]database.EventsWithOrgID, error) { ret := _m.Called(ctx, arg) if len(ret) == 0 { panic("no return value specified for ListEventsByOrg") } - var r0 []database.Event + var r0 []database.EventsWithOrgID var r1 error - if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsByOrgParams) ([]database.Event, error)); ok { + if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsByOrgParams) ([]database.EventsWithOrgID, error)); ok { return rf(ctx, arg) } - if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsByOrgParams) []database.Event); ok { + if rf, ok := ret.Get(0).(func(context.Context, database.ListEventsByOrgParams) []database.EventsWithOrgID); ok { r0 = rf(ctx, arg) } else { if ret.Get(0) != nil { - r0 = ret.Get(0).([]database.Event) + r0 = ret.Get(0).([]database.EventsWithOrgID) } } @@ -626,6 +756,36 @@ func (_m *Querier) ListEventsByOrg(ctx context.Context, arg database.ListEventsB return r0, r1 } +// ListLinksByOrg provides a mock function with given fields: ctx, oid +func (_m *Querier) ListLinksByOrg(ctx context.Context, oid uuid.UUID) ([]database.Link, error) { + ret := _m.Called(ctx, oid) + + if len(ret) == 0 { + panic("no return value specified for ListLinksByOrg") + } + + var r0 []database.Link + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) ([]database.Link, error)); ok { + return rf(ctx, oid) + } + if rf, ok := ret.Get(0).(func(context.Context, uuid.UUID) []database.Link); ok { + r0 = rf(ctx, oid) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).([]database.Link) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, uuid.UUID) error); ok { + r1 = rf(ctx, oid) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // ListOrganizations provides a mock function with given fields: ctx, arg func (_m *Querier) ListOrganizations(ctx context.Context, arg database.ListOrganizationsParams) ([]database.Organization, error) { ret := _m.Called(ctx, arg) @@ -686,6 +846,34 @@ func (_m *Querier) ListUsers(ctx context.Context, arg database.ListUsersParams) return r0, r1 } +// LogLinkVisit provides a mock function with given fields: ctx, arg +func (_m *Querier) LogLinkVisit(ctx context.Context, arg database.LogLinkVisitParams) (database.LinkVisit, error) { + ret := _m.Called(ctx, arg) + + if len(ret) == 0 { + panic("no return value specified for LogLinkVisit") + } + + var r0 database.LinkVisit + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, database.LogLinkVisitParams) (database.LinkVisit, error)); ok { + return rf(ctx, arg) + } + if rf, ok := ret.Get(0).(func(context.Context, database.LogLinkVisitParams) database.LinkVisit); ok { + r0 = rf(ctx, arg) + } else { + r0 = ret.Get(0).(database.LinkVisit) + } + + if rf, ok := ret.Get(1).(func(context.Context, database.LogLinkVisitParams) error); ok { + r1 = rf(ctx, arg) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // RegisterForEvent provides a mock function with given fields: ctx, arg func (_m *Querier) RegisterForEvent(ctx context.Context, arg database.RegisterForEventParams) error { ret := _m.Called(ctx, arg) @@ -804,6 +992,34 @@ func (_m *Querier) UpdateEvent(ctx context.Context, arg database.UpdateEventPara return r0, r1 } +// UpdateLink provides a mock function with given fields: ctx, arg +func (_m *Querier) UpdateLink(ctx context.Context, arg database.UpdateLinkParams) (database.Link, error) { + ret := _m.Called(ctx, arg) + + if len(ret) == 0 { + panic("no return value specified for UpdateLink") + } + + var r0 database.Link + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, database.UpdateLinkParams) (database.Link, error)); ok { + return rf(ctx, arg) + } + if rf, ok := ret.Get(0).(func(context.Context, database.UpdateLinkParams) database.Link); ok { + r0 = rf(ctx, arg) + } else { + r0 = ret.Get(0).(database.Link) + } + + if rf, ok := ret.Get(1).(func(context.Context, database.UpdateLinkParams) error); ok { + r1 = rf(ctx, arg) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + // UpdateOrganization provides a mock function with given fields: ctx, arg func (_m *Querier) UpdateOrganization(ctx context.Context, arg database.UpdateOrganizationParams) (database.Organization, error) { ret := _m.Called(ctx, arg) diff --git a/internal/database/models.go b/internal/database/models.go index 16ba637..9e8e147 100644 --- a/internal/database/models.go +++ b/internal/database/models.go @@ -75,6 +75,7 @@ type Event struct { Description pgtype.Text `json:"description"` DateCreated pgtype.Date `json:"date_created"` DateModified pgtype.Date `json:"date_modified"` + Title pgtype.Text `json:"title"` } type EventHosting struct { @@ -90,6 +91,32 @@ type EventRegistration struct { DateRegistered pgtype.Date `json:"date_registered"` } +type EventsWithOrgID struct { + Eid uuid.UUID `json:"eid"` + Location pgtype.Text `json:"location"` + EventTime pgtype.Timestamp `json:"event_time"` + Description pgtype.Text `json:"description"` + DateCreated pgtype.Date `json:"date_created"` + DateModified pgtype.Date `json:"date_modified"` + Title pgtype.Text `json:"title"` + OrgIds []uuid.UUID `json:"org_ids"` +} + +type Link struct { + Lid uuid.UUID `json:"lid"` + EndpointUrl string `json:"endpoint_url"` + DestUrl string `json:"dest_url"` + Oid uuid.UUID `json:"oid"` + CreatedAt pgtype.Timestamp `json:"created_at"` +} + +type LinkVisit struct { + Lvid uuid.UUID `json:"lvid"` + Lid uuid.UUID `json:"lid"` + Uid pgtype.UUID `json:"uid"` + CreatedAt pgtype.Timestamp `json:"created_at"` +} + type OrgMember struct { Uid uuid.UUID `json:"uid"` Oid uuid.UUID `json:"oid"` @@ -105,6 +132,32 @@ type Organization struct { DateModified pgtype.Date `json:"date_modified"` } +type TelemetryCompletion struct { + ID int64 `json:"id"` + CorrelationID string `json:"correlation_id"` + Timestamp pgtype.Timestamptz `json:"timestamp"` + ReceivedAt pgtype.Timestamptz `json:"received_at"` + CommandName string `json:"command_name"` + Status string `json:"status"` + DurationMs pgtype.Numeric `json:"duration_ms"` + ErrorType pgtype.Text `json:"error_type"` +} + +type TelemetryInteraction struct { + ID int64 `json:"id"` + CorrelationID string `json:"correlation_id"` + Timestamp pgtype.Timestamptz `json:"timestamp"` + ReceivedAt pgtype.Timestamptz `json:"received_at"` + InteractionType string `json:"interaction_type"` + UserID int64 `json:"user_id"` + CommandName pgtype.Text `json:"command_name"` + GuildID pgtype.Int8 `json:"guild_id"` + GuildName pgtype.Text `json:"guild_name"` + ChannelID int64 `json:"channel_id"` + Options []byte `json:"options"` + BotVersion string `json:"bot_version"` +} + type User struct { Uid uuid.UUID `json:"uid"` FirstName string `json:"first_name"` diff --git a/internal/database/querier.go b/internal/database/querier.go index 1a39c35..b0fbc7e 100644 --- a/internal/database/querier.go +++ b/internal/database/querier.go @@ -16,17 +16,23 @@ type Querier interface { AddOrgMember(ctx context.Context, arg AddOrgMemberParams) error CreateBotToken(ctx context.Context, arg CreateBotTokenParams) (BotToken, error) CreateEvent(ctx context.Context, arg CreateEventParams) (Event, error) + // Link Queries + CreateLink(ctx context.Context, arg CreateLinkParams) (Link, error) CreateOrganization(ctx context.Context, name string) (Organization, error) CreateUser(ctx context.Context, arg CreateUserParams) (User, error) DeleteEvent(ctx context.Context, eid uuid.UUID) error + DeleteLink(ctx context.Context, lid uuid.UUID) error DeleteOrganization(ctx context.Context, oid uuid.UUID) error DeleteUser(ctx context.Context, uid uuid.UUID) error // Bot Token Queries GetBotTokenByID(ctx context.Context, tokenID uuid.UUID) (BotToken, error) - GetEventByID(ctx context.Context, eid uuid.UUID) (Event, error) + GetEventByID(ctx context.Context, eid uuid.UUID) (EventsWithOrgID, error) GetEventRegistrations(ctx context.Context, eid uuid.UUID) ([]GetEventRegistrationsRow, error) + GetLinkByEndpointURL(ctx context.Context, endpointUrl string) (Link, error) + GetLinkByLID(ctx context.Context, lid uuid.UUID) (Link, error) GetOrgMembers(ctx context.Context, oid uuid.UUID) ([]GetOrgMembersRow, error) GetOrganizationByID(ctx context.Context, oid uuid.UUID) (Organization, error) + GetTotalVisits(ctx context.Context, lid uuid.UUID) (int64, error) GetUserByEmail(ctx context.Context, personalEmail pgtype.Text) (User, error) GetUserByID(ctx context.Context, uid uuid.UUID) (User, error) GetUserEvents(ctx context.Context, uid uuid.UUID) ([]GetUserEventsRow, error) @@ -34,16 +40,19 @@ type Querier interface { IsEventAdmin(ctx context.Context, arg IsEventAdminParams) (pgtype.Bool, error) IsOrgAdmin(ctx context.Context, arg IsOrgAdminParams) (pgtype.Bool, error) ListBotTokens(ctx context.Context) ([]ListBotTokensRow, error) - ListEvents(ctx context.Context, arg ListEventsParams) ([]Event, error) - ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams) ([]Event, error) + ListEvents(ctx context.Context, arg ListEventsParams) ([]EventsWithOrgID, error) + ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams) ([]EventsWithOrgID, error) + ListLinksByOrg(ctx context.Context, oid uuid.UUID) ([]Link, error) ListOrganizations(ctx context.Context, arg ListOrganizationsParams) ([]Organization, error) ListUsers(ctx context.Context, arg ListUsersParams) ([]User, error) + LogLinkVisit(ctx context.Context, arg LogLinkVisitParams) (LinkVisit, error) RegisterForEvent(ctx context.Context, arg RegisterForEventParams) error RemoveOrgMember(ctx context.Context, arg RemoveOrgMemberParams) error RevokeBotToken(ctx context.Context, tokenID uuid.UUID) error UnregisterFromEvent(ctx context.Context, arg UnregisterFromEventParams) error UpdateBotTokenLastUsed(ctx context.Context, tokenID uuid.UUID) error UpdateEvent(ctx context.Context, arg UpdateEventParams) (Event, error) + UpdateLink(ctx context.Context, arg UpdateLinkParams) (Link, error) UpdateOrganization(ctx context.Context, arg UpdateOrganizationParams) (Organization, error) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error) } diff --git a/internal/database/queries.sql b/internal/database/queries.sql index 3344cfd..02a0ebf 100644 --- a/internal/database/queries.sql +++ b/internal/database/queries.sql @@ -73,27 +73,28 @@ WHERE om.uid = $1 ORDER BY o.name; -- name: GetEventByID :one -SELECT * FROM events WHERE eid = $1; +SELECT * FROM events_with_org_ids WHERE eid = $1; -- name: ListEvents :many -SELECT * FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2; +SELECT * FROM events_with_org_ids ORDER BY event_time DESC LIMIT $1 OFFSET $2; -- name: ListEventsByOrg :many SELECT e.* -FROM events e +FROM events_with_org_ids e JOIN event_hosting eh ON e.eid = eh.eid WHERE eh.oid = $1 ORDER BY e.event_time DESC LIMIT $2 OFFSET $3; -- name: CreateEvent :one -INSERT INTO events (location, event_time, description) -VALUES ($1, $2, $3) +INSERT INTO events (title, location, event_time, description) +VALUES ($1, $2, $3, $4) RETURNING *; -- name: UpdateEvent :one UPDATE events -SET location = COALESCE(sqlc.narg('location'), location), +SET title = COALESCE(sqlc.narg('title'), title), + location = COALESCE(sqlc.narg('location'), location), event_time = COALESCE(sqlc.narg('event_time'), event_time), description = COALESCE(sqlc.narg('description'), description) WHERE eid = $1 @@ -141,7 +142,7 @@ OR EXISTS ( -- name: GetUserEvents :many SELECT e.*, er.is_attending, er.is_admin, er.date_registered -FROM events e +FROM events_with_org_ids e JOIN event_registrations er ON e.eid = er.eid WHERE er.uid = $1 ORDER BY e.event_time DESC; @@ -166,3 +167,37 @@ UPDATE bot_tokens SET is_active = false WHERE token_id = $1; -- name: UpdateBotTokenLastUsed :exec UPDATE bot_tokens SET last_used_at = CURRENT_TIMESTAMP WHERE token_id = $1; + +-- Link Queries + +-- name: CreateLink :one +INSERT INTO links (endpoint_url, dest_url, oid) +VALUES ($1, $2, $3) +RETURNING *; + +-- name: GetLinkByLID :one +SELECT * FROM links WHERE lid = $1; + +-- name: GetLinkByEndpointURL :one +SELECT * FROM links WHERE endpoint_url = $1; + +-- name: UpdateLink :one +UPDATE links +SET endpoint_url = COALESCE(sqlc.narg('endpoint_url'), endpoint_url), + dest_url = COALESCE(sqlc.narg('dest_url'), dest_url) +WHERE lid = $1 +RETURNING *; + +-- name: DeleteLink :exec +DELETE FROM links WHERE lid = $1; + +-- name: ListLinksByOrg :many +SELECT * FROM links WHERE oid = $1 ORDER BY created_at DESC; + +-- name: LogLinkVisit :one +INSERT INTO link_visits (lid, uid) +VALUES ($1, $2) +RETURNING *; + +-- name: GetTotalVisits :one +SELECT COUNT(*) FROM link_visits WHERE lid = $1; diff --git a/internal/database/queries.sql.go b/internal/database/queries.sql.go index d495a7e..6f977e8 100644 --- a/internal/database/queries.sql.go +++ b/internal/database/queries.sql.go @@ -80,19 +80,25 @@ func (q *Queries) CreateBotToken(ctx context.Context, arg CreateBotTokenParams) } const createEvent = `-- name: CreateEvent :one -INSERT INTO events (location, event_time, description) -VALUES ($1, $2, $3) -RETURNING eid, location, event_time, description, date_created, date_modified +INSERT INTO events (title, location, event_time, description) +VALUES ($1, $2, $3, $4) +RETURNING eid, location, event_time, description, date_created, date_modified, title ` type CreateEventParams struct { + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` } func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (Event, error) { - row := q.db.QueryRow(ctx, createEvent, arg.Location, arg.EventTime, arg.Description) + row := q.db.QueryRow(ctx, createEvent, + arg.Title, + arg.Location, + arg.EventTime, + arg.Description, + ) var i Event err := row.Scan( &i.Eid, @@ -101,6 +107,34 @@ func (q *Queries) CreateEvent(ctx context.Context, arg CreateEventParams) (Event &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + ) + return i, err +} + +const createLink = `-- name: CreateLink :one + +INSERT INTO links (endpoint_url, dest_url, oid) +VALUES ($1, $2, $3) +RETURNING lid, endpoint_url, dest_url, oid, created_at +` + +type CreateLinkParams struct { + EndpointUrl string `json:"endpoint_url"` + DestUrl string `json:"dest_url"` + Oid uuid.UUID `json:"oid"` +} + +// Link Queries +func (q *Queries) CreateLink(ctx context.Context, arg CreateLinkParams) (Link, error) { + row := q.db.QueryRow(ctx, createLink, arg.EndpointUrl, arg.DestUrl, arg.Oid) + var i Link + err := row.Scan( + &i.Lid, + &i.EndpointUrl, + &i.DestUrl, + &i.Oid, + &i.CreatedAt, ) return i, err } @@ -174,6 +208,15 @@ func (q *Queries) DeleteEvent(ctx context.Context, eid uuid.UUID) error { return err } +const deleteLink = `-- name: DeleteLink :exec +DELETE FROM links WHERE lid = $1 +` + +func (q *Queries) DeleteLink(ctx context.Context, lid uuid.UUID) error { + _, err := q.db.Exec(ctx, deleteLink, lid) + return err +} + const deleteOrganization = `-- name: DeleteOrganization :exec DELETE FROM organizations WHERE oid = $1 ` @@ -215,12 +258,12 @@ func (q *Queries) GetBotTokenByID(ctx context.Context, tokenID uuid.UUID) (BotTo } const getEventByID = `-- name: GetEventByID :one -SELECT eid, location, event_time, description, date_created, date_modified FROM events WHERE eid = $1 +SELECT eid, location, event_time, description, date_created, date_modified, title, org_ids FROM events_with_org_ids WHERE eid = $1 ` -func (q *Queries) GetEventByID(ctx context.Context, eid uuid.UUID) (Event, error) { +func (q *Queries) GetEventByID(ctx context.Context, eid uuid.UUID) (EventsWithOrgID, error) { row := q.db.QueryRow(ctx, getEventByID, eid) - var i Event + var i EventsWithOrgID err := row.Scan( &i.Eid, &i.Location, @@ -228,6 +271,8 @@ func (q *Queries) GetEventByID(ctx context.Context, eid uuid.UUID) (Event, error &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + &i.OrgIds, ) return i, err } @@ -290,6 +335,40 @@ func (q *Queries) GetEventRegistrations(ctx context.Context, eid uuid.UUID) ([]G return items, nil } +const getLinkByEndpointURL = `-- name: GetLinkByEndpointURL :one +SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE endpoint_url = $1 +` + +func (q *Queries) GetLinkByEndpointURL(ctx context.Context, endpointUrl string) (Link, error) { + row := q.db.QueryRow(ctx, getLinkByEndpointURL, endpointUrl) + var i Link + err := row.Scan( + &i.Lid, + &i.EndpointUrl, + &i.DestUrl, + &i.Oid, + &i.CreatedAt, + ) + return i, err +} + +const getLinkByLID = `-- name: GetLinkByLID :one +SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE lid = $1 +` + +func (q *Queries) GetLinkByLID(ctx context.Context, lid uuid.UUID) (Link, error) { + row := q.db.QueryRow(ctx, getLinkByLID, lid) + var i Link + err := row.Scan( + &i.Lid, + &i.EndpointUrl, + &i.DestUrl, + &i.Oid, + &i.CreatedAt, + ) + return i, err +} + const getOrgMembers = `-- name: GetOrgMembers :many SELECT u.uid, u.first_name, u.last_name, u.personal_email, u.school_email, u.phone, u.grad_year, u.role, u.date_created, u.date_modified, om.is_admin, om.date_joined, om.last_active FROM users u @@ -364,6 +443,17 @@ func (q *Queries) GetOrganizationByID(ctx context.Context, oid uuid.UUID) (Organ return i, err } +const getTotalVisits = `-- name: GetTotalVisits :one +SELECT COUNT(*) FROM link_visits WHERE lid = $1 +` + +func (q *Queries) GetTotalVisits(ctx context.Context, lid uuid.UUID) (int64, error) { + row := q.db.QueryRow(ctx, getTotalVisits, lid) + var count int64 + err := row.Scan(&count) + return count, err +} + const getUserByEmail = `-- name: GetUserByEmail :one SELECT uid, first_name, last_name, personal_email, school_email, phone, grad_year, role, date_created, date_modified FROM users WHERE personal_email = $1 OR school_email = $1 ` @@ -409,8 +499,8 @@ func (q *Queries) GetUserByID(ctx context.Context, uid uuid.UUID) (User, error) } const getUserEvents = `-- name: GetUserEvents :many -SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, er.is_attending, er.is_admin, er.date_registered -FROM events e +SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, e.title, e.org_ids, er.is_attending, er.is_admin, er.date_registered +FROM events_with_org_ids e JOIN event_registrations er ON e.eid = er.eid WHERE er.uid = $1 ORDER BY e.event_time DESC @@ -423,6 +513,8 @@ type GetUserEventsRow struct { Description pgtype.Text `json:"description"` DateCreated pgtype.Date `json:"date_created"` DateModified pgtype.Date `json:"date_modified"` + Title pgtype.Text `json:"title"` + OrgIds []uuid.UUID `json:"org_ids"` IsAttending pgtype.Bool `json:"is_attending"` IsAdmin pgtype.Bool `json:"is_admin"` DateRegistered pgtype.Date `json:"date_registered"` @@ -444,6 +536,8 @@ func (q *Queries) GetUserEvents(ctx context.Context, uid uuid.UUID) ([]GetUserEv &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + &i.OrgIds, &i.IsAttending, &i.IsAdmin, &i.DateRegistered, @@ -527,9 +621,9 @@ type IsEventAdminParams struct { func (q *Queries) IsEventAdmin(ctx context.Context, arg IsEventAdminParams) (pgtype.Bool, error) { row := q.db.QueryRow(ctx, isEventAdmin, arg.Uid, arg.Eid) - var is_admin pgtype.Bool - err := row.Scan(&is_admin) - return is_admin, err + var column_1 pgtype.Bool + err := row.Scan(&column_1) + return column_1, err } const isOrgAdmin = `-- name: IsOrgAdmin :one @@ -593,7 +687,7 @@ func (q *Queries) ListBotTokens(ctx context.Context) ([]ListBotTokensRow, error) } const listEvents = `-- name: ListEvents :many -SELECT eid, location, event_time, description, date_created, date_modified FROM events ORDER BY event_time DESC LIMIT $1 OFFSET $2 +SELECT eid, location, event_time, description, date_created, date_modified, title, org_ids FROM events_with_org_ids ORDER BY event_time DESC LIMIT $1 OFFSET $2 ` type ListEventsParams struct { @@ -601,15 +695,15 @@ type ListEventsParams struct { Offset int32 `json:"offset"` } -func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event, error) { +func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]EventsWithOrgID, error) { rows, err := q.db.Query(ctx, listEvents, arg.Limit, arg.Offset) if err != nil { return nil, err } defer rows.Close() - items := []Event{} + items := []EventsWithOrgID{} for rows.Next() { - var i Event + var i EventsWithOrgID if err := rows.Scan( &i.Eid, &i.Location, @@ -617,6 +711,8 @@ func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + &i.OrgIds, ); err != nil { return nil, err } @@ -629,8 +725,8 @@ func (q *Queries) ListEvents(ctx context.Context, arg ListEventsParams) ([]Event } const listEventsByOrg = `-- name: ListEventsByOrg :many -SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified -FROM events e +SELECT e.eid, e.location, e.event_time, e.description, e.date_created, e.date_modified, e.title, e.org_ids +FROM events_with_org_ids e JOIN event_hosting eh ON e.eid = eh.eid WHERE eh.oid = $1 ORDER BY e.event_time DESC @@ -643,15 +739,15 @@ type ListEventsByOrgParams struct { Offset int32 `json:"offset"` } -func (q *Queries) ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams) ([]Event, error) { +func (q *Queries) ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams) ([]EventsWithOrgID, error) { rows, err := q.db.Query(ctx, listEventsByOrg, arg.Oid, arg.Limit, arg.Offset) if err != nil { return nil, err } defer rows.Close() - items := []Event{} + items := []EventsWithOrgID{} for rows.Next() { - var i Event + var i EventsWithOrgID if err := rows.Scan( &i.Eid, &i.Location, @@ -659,6 +755,38 @@ func (q *Queries) ListEventsByOrg(ctx context.Context, arg ListEventsByOrgParams &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + &i.OrgIds, + ); err != nil { + return nil, err + } + items = append(items, i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} + +const listLinksByOrg = `-- name: ListLinksByOrg :many +SELECT lid, endpoint_url, dest_url, oid, created_at FROM links WHERE oid = $1 ORDER BY created_at DESC +` + +func (q *Queries) ListLinksByOrg(ctx context.Context, oid uuid.UUID) ([]Link, error) { + rows, err := q.db.Query(ctx, listLinksByOrg, oid) + if err != nil { + return nil, err + } + defer rows.Close() + items := []Link{} + for rows.Next() { + var i Link + if err := rows.Scan( + &i.Lid, + &i.EndpointUrl, + &i.DestUrl, + &i.Oid, + &i.CreatedAt, ); err != nil { return nil, err } @@ -744,6 +872,29 @@ func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]User, e return items, nil } +const logLinkVisit = `-- name: LogLinkVisit :one +INSERT INTO link_visits (lid, uid) +VALUES ($1, $2) +RETURNING lvid, lid, uid, created_at +` + +type LogLinkVisitParams struct { + Lid uuid.UUID `json:"lid"` + Uid pgtype.UUID `json:"uid"` +} + +func (q *Queries) LogLinkVisit(ctx context.Context, arg LogLinkVisitParams) (LinkVisit, error) { + row := q.db.QueryRow(ctx, logLinkVisit, arg.Lid, arg.Uid) + var i LinkVisit + err := row.Scan( + &i.Lvid, + &i.Lid, + &i.Uid, + &i.CreatedAt, + ) + return i, err +} + const registerForEvent = `-- name: RegisterForEvent :exec INSERT INTO event_registrations (uid, eid, is_attending) VALUES ($1, $2, $3) @@ -809,15 +960,17 @@ func (q *Queries) UpdateBotTokenLastUsed(ctx context.Context, tokenID uuid.UUID) const updateEvent = `-- name: UpdateEvent :one UPDATE events -SET location = COALESCE($2, location), - event_time = COALESCE($3, event_time), - description = COALESCE($4, description) +SET title = COALESCE($2, title), + location = COALESCE($3, location), + event_time = COALESCE($4, event_time), + description = COALESCE($5, description) WHERE eid = $1 -RETURNING eid, location, event_time, description, date_created, date_modified +RETURNING eid, location, event_time, description, date_created, date_modified, title ` type UpdateEventParams struct { Eid uuid.UUID `json:"eid"` + Title pgtype.Text `json:"title"` Location pgtype.Text `json:"location"` EventTime pgtype.Timestamp `json:"event_time"` Description pgtype.Text `json:"description"` @@ -826,6 +979,7 @@ type UpdateEventParams struct { func (q *Queries) UpdateEvent(ctx context.Context, arg UpdateEventParams) (Event, error) { row := q.db.QueryRow(ctx, updateEvent, arg.Eid, + arg.Title, arg.Location, arg.EventTime, arg.Description, @@ -838,6 +992,34 @@ func (q *Queries) UpdateEvent(ctx context.Context, arg UpdateEventParams) (Event &i.Description, &i.DateCreated, &i.DateModified, + &i.Title, + ) + return i, err +} + +const updateLink = `-- name: UpdateLink :one +UPDATE links +SET endpoint_url = COALESCE($2, endpoint_url), + dest_url = COALESCE($3, dest_url) +WHERE lid = $1 +RETURNING lid, endpoint_url, dest_url, oid, created_at +` + +type UpdateLinkParams struct { + Lid uuid.UUID `json:"lid"` + EndpointUrl pgtype.Text `json:"endpoint_url"` + DestUrl pgtype.Text `json:"dest_url"` +} + +func (q *Queries) UpdateLink(ctx context.Context, arg UpdateLinkParams) (Link, error) { + row := q.db.QueryRow(ctx, updateLink, arg.Lid, arg.EndpointUrl, arg.DestUrl) + var i Link + err := row.Scan( + &i.Lid, + &i.EndpointUrl, + &i.DestUrl, + &i.Oid, + &i.CreatedAt, ) return i, err } diff --git a/internal/dto/dto.go b/internal/dto/dto.go index 692c076..6b1781f 100644 --- a/internal/dto/dto.go +++ b/internal/dto/dto.go @@ -83,6 +83,7 @@ type AddMemberRequest struct { // ============================================================================ type CreateEventRequest struct { + Title string `json:"title,omitempty"` Location string `json:"location,omitempty"` EventTime *time.Time `json:"event_time,omitempty"` Description string `json:"description,omitempty"` @@ -90,18 +91,21 @@ type CreateEventRequest struct { } type UpdateEventRequest struct { + Title *string `json:"title,omitempty"` Location *string `json:"location,omitempty"` EventTime *time.Time `json:"event_time,omitempty"` Description *string `json:"description,omitempty"` } type EventResponse struct { - EID uuid.UUID `json:"eid"` - Location *string `json:"location,omitempty"` - EventTime *time.Time `json:"event_time,omitempty"` - Description *string `json:"description,omitempty"` - DateCreated *time.Time `json:"date_created,omitempty"` - DateModified *time.Time `json:"date_modified,omitempty"` + EID uuid.UUID `json:"eid"` + Organizations []uuid.UUID `json:"oids"` + Title *string `json:"title,omitempty"` + Location *string `json:"location,omitempty"` + EventTime *time.Time `json:"event_time,omitempty"` + Description *string `json:"description,omitempty"` + DateCreated *time.Time `json:"date_created,omitempty"` + DateModified *time.Time `json:"date_modified,omitempty"` } type EventRegistrationResponse struct { @@ -118,6 +122,34 @@ type RegisterEventRequest struct { IsAttending bool `json:"is_attending"` } +// ============================================================================ +// Link DTOs +// ============================================================================ + +type CreateLinkRequest struct { + EndpointURL string `json:"endpoint_url" validate:"required,alphanumhyphen"` + DestURL string `json:"dest_url" validate:"required,url"` + OrgID uuid.UUID `json:"org_id" validate:"required"` +} + +type UpdateLinkRequest struct { + EndpointURL *string `json:"endpoint_url,omitempty" validate:"omitempty,alphanumhyphen"` + DestURL *string `json:"dest_url,omitempty" validate:"omitempty,url"` +} + +type LinkResponse struct { + LID uuid.UUID `json:"lid"` + EndpointURL string `json:"endpoint_url"` + DestURL string `json:"dest_url"` + OrgID uuid.UUID `json:"org_id"` + CreatedAt *time.Time `json:"created_at,omitempty"` +} + +type VisitCountResponse struct { + LID uuid.UUID `json:"lid"` + Count int64 `json:"count"` +} + // ============================================================================ // Pagination // ============================================================================ diff --git a/internal/handler/auth.go b/internal/handler/auth.go index 11c92f9..0e571ba 100644 --- a/internal/handler/auth.go +++ b/internal/handler/auth.go @@ -75,9 +75,10 @@ func (h *Handler) GoogleAuth(w http.ResponseWriter, r *http.Request) { } // Set state cookie to verify callback - h.setStateCookie(w, state) + h.setStateCookie(w, r, state) - http.Redirect(w, r, h.googleAuth.GetAuthURL(state), http.StatusFound) + redirectURL := h.getOAuthRedirectURL(r, h.Config.OAuth.Google.RedirectURL) + http.Redirect(w, r, h.googleAuth.GetAuthURL(state, redirectURL), http.StatusFound) } // GoogleCallback handles Google OAuth callback @@ -103,7 +104,8 @@ func (h *Handler) GoogleCallback(w http.ResponseWriter, r *http.Request) { return } - userInfo, err := h.googleAuth.ExchangeCode(r.Context(), code) + redirectURL := h.getOAuthRedirectURL(r, h.Config.OAuth.Google.RedirectURL) + userInfo, err := h.googleAuth.ExchangeCode(r.Context(), code, redirectURL) if err != nil { h.respondError(w, http.StatusInternalServerError, "Failed to exchange code") return @@ -121,7 +123,7 @@ func (h *Handler) GoogleCallback(w http.ResponseWriter, r *http.Request) { return } - h.setAuthCookie(w, token) + h.setAuthCookie(w, r, token) h.respondWithCloseWindow(w) } @@ -138,8 +140,9 @@ func (h *Handler) MicrosoftAuth(w http.ResponseWriter, r *http.Request) { return } - h.setStateCookie(w, state) - http.Redirect(w, r, h.microsoftAuth.GetAuthURL(state), http.StatusFound) + h.setStateCookie(w, r, state) + redirectURL := h.getOAuthRedirectURL(r, h.Config.OAuth.Microsoft.RedirectURL) + http.Redirect(w, r, h.microsoftAuth.GetAuthURL(state, redirectURL), http.StatusFound) } // MicrosoftCallback handles Microsoft OAuth callback @@ -164,7 +167,8 @@ func (h *Handler) MicrosoftCallback(w http.ResponseWriter, r *http.Request) { return } - userInfo, err := h.microsoftAuth.ExchangeCode(r.Context(), code) + redirectURL := h.getOAuthRedirectURL(r, h.Config.OAuth.Microsoft.RedirectURL) + userInfo, err := h.microsoftAuth.ExchangeCode(r.Context(), code, redirectURL) if err != nil { h.respondError(w, http.StatusInternalServerError, "Failed to exchange code") return @@ -188,7 +192,7 @@ func (h *Handler) MicrosoftCallback(w http.ResponseWriter, r *http.Request) { return } - h.setAuthCookie(w, token) + h.setAuthCookie(w, r, token) h.respondWithCloseWindow(w) } @@ -246,7 +250,7 @@ func (h *Handler) Logout(w http.ResponseWriter, r *http.Request) { Name: "capy_auth", Value: "", Path: "/", - Domain: h.Config.Cookie.Domain, + Domain: h.getCookieDomain(r), MaxAge: -1, Secure: h.Config.Cookie.Secure, HttpOnly: true, @@ -292,7 +296,7 @@ func (h *Handler) RefreshToken(w http.ResponseWriter, r *http.Request) { } // Set new cookie - h.setAuthCookie(w, token) + h.setAuthCookie(w, r, token) h.respondJSON(w, http.StatusOK, AuthResponse{ User: UserAuthResponse{ @@ -486,12 +490,12 @@ func (h *Handler) generateJWT(user database.User) (string, error) { return token.SignedString([]byte(h.Config.JWT.Secret)) } -func (h *Handler) setAuthCookie(w http.ResponseWriter, token string) { +func (h *Handler) setAuthCookie(w http.ResponseWriter, r *http.Request, token string) { http.SetCookie(w, &http.Cookie{ Name: "capy_auth", Value: token, Path: "/", - Domain: h.Config.Cookie.Domain, + Domain: h.getCookieDomain(r), MaxAge: h.Config.JWT.ExpiryHours * 3600, Secure: h.Config.Cookie.Secure, HttpOnly: true, @@ -551,12 +555,12 @@ func (h *Handler) respondWithCloseWindow(w http.ResponseWriter) { `)) } -func (h *Handler) setStateCookie(w http.ResponseWriter, state string) { +func (h *Handler) setStateCookie(w http.ResponseWriter, r *http.Request, state string) { http.SetCookie(w, &http.Cookie{ Name: "oauth_state", Value: state, Path: "/api/v1/auth", - Domain: h.Config.Cookie.Domain, + Domain: h.getCookieDomain(r), MaxAge: 300, // 5 minutes Secure: h.Config.Cookie.Secure, HttpOnly: true, @@ -574,7 +578,7 @@ func (h *Handler) verifyStateCookie(w http.ResponseWriter, r *http.Request, stat Name: "oauth_state", Value: "", Path: "/api/v1/auth", - Domain: h.Config.Cookie.Domain, + Domain: h.getCookieDomain(r), MaxAge: -1, Secure: h.Config.Cookie.Secure, HttpOnly: true, diff --git a/internal/handler/events.go b/internal/handler/events.go index 81c58ef..3323592 100644 --- a/internal/handler/events.go +++ b/internal/handler/events.go @@ -21,7 +21,6 @@ import ( // @Param limit query int false "Limit (default 20, max 100)" // @Param offset query int false "Offset (default 0)" // @Success 200 {array} dto.EventResponse -// @Security CookieAuth // @Router /events [get] func (h *Handler) ListEvents(w http.ResponseWriter, r *http.Request) { limit, offset := parsePagination(r) @@ -72,6 +71,7 @@ func (h *Handler) CreateEvent(w http.ResponseWriter, r *http.Request) { } event, err := h.queries.CreateEvent(r.Context(), database.CreateEventParams{ + Title: toPgTextFromString(req.Title), Location: toPgTextFromString(req.Location), EventTime: toPgTimestamp(req.EventTime), Description: toPgTextFromString(req.Description), @@ -90,7 +90,13 @@ func (h *Handler) CreateEvent(w http.ResponseWriter, r *http.Request) { return } - h.respondJSON(w, http.StatusCreated, toEventResponse(event)) + createdEvent, err := h.queries.GetEventByID(r.Context(), event.Eid) + if err != nil { + h.handleDBError(w, err) + return + } + + h.respondJSON(w, http.StatusCreated, toEventResponse(createdEvent)) } // GetEvent gets an event by ID @@ -153,18 +159,24 @@ func (h *Handler) UpdateEvent(w http.ResponseWriter, r *http.Request) { return } - event, err := h.queries.UpdateEvent(r.Context(), database.UpdateEventParams{ + if _, err := h.queries.UpdateEvent(r.Context(), database.UpdateEventParams{ Eid: eid, + Title: toPgText(req.Title), Location: toPgText(req.Location), EventTime: toPgTimestamp(req.EventTime), Description: toPgText(req.Description), - }) + }); err != nil { + h.handleDBError(w, err) + return + } + + updatedEvent, err := h.queries.GetEventByID(r.Context(), eid) if err != nil { h.handleDBError(w, err) return } - h.respondJSON(w, http.StatusOK, toEventResponse(event)) + h.respondJSON(w, http.StatusOK, toEventResponse(updatedEvent)) } // DeleteEvent deletes an event @@ -415,13 +427,16 @@ func (h *Handler) ListEventsByOrg(w http.ResponseWriter, r *http.Request) { } // Helper functions -func toEventResponse(event database.Event) dto.EventResponse { +func toEventResponse(event database.EventsWithOrgID) dto.EventResponse { + return dto.EventResponse{ - EID: event.Eid, - Location: fromPgText(event.Location), - EventTime: fromPgTimestamp(event.EventTime), - Description: fromPgText(event.Description), - DateCreated: fromPgDate(event.DateCreated), - DateModified: fromPgDate(event.DateModified), + EID: event.Eid, + Organizations: event.OrgIds, + Title: fromPgText(event.Title), + Location: fromPgText(event.Location), + EventTime: fromPgTimestamp(event.EventTime), + Description: fromPgText(event.Description), + DateCreated: fromPgDate(event.DateCreated), + DateModified: fromPgDate(event.DateModified), } } diff --git a/internal/handler/handler.go b/internal/handler/handler.go index 66c2447..e504d04 100644 --- a/internal/handler/handler.go +++ b/internal/handler/handler.go @@ -31,6 +31,90 @@ func New(queries database.Querier, cfg *config.Config) *Handler { } } +func (h *Handler) isDev(r *http.Request) bool { + // 1. Explicit dev/staging environment + if h.Config.Env == "development" || h.Config.Env == "staging" || h.Config.Env == "" { + return true + } + + // 2. Custom dev header (use this to bypass Cloudflare rewriting X-Forwarded-Host) + if r.Header.Get("X-Dev-Host") != "" { + return true + } + + // 3. Aggressively trust localhost/127.0.0.1 in forwarded host + fh := r.Header.Get("X-Forwarded-Host") + if strings.HasPrefix(fh, "localhost") || strings.HasPrefix(fh, "127.0.0.1") { + return true + } + + // 4. Fallback to host-based checks for dev subdomains + host := r.Host + if fh != "" { + host = fh + } + return strings.HasPrefix(host, "dev.") || + strings.HasPrefix(r.Host, "dev.") || + strings.HasPrefix(r.Host, "localhost") || + strings.HasPrefix(r.Host, "127.0.0.1") +} + +func (h *Handler) getActualHost(r *http.Request) string { + // 1. Pay attention to custom dev header first + if devHost := r.Header.Get("X-Dev-Host"); devHost != "" { + return devHost + } + + // 2. Standard flow + if h.isDev(r) { + if forwardedHost := r.Header.Get("X-Forwarded-Host"); forwardedHost != "" { + return forwardedHost + } + } + return r.Host +} + +func (h *Handler) getBaseURL(r *http.Request) string { + // 1. Pay attention to custom dev proto first + if devProto := r.Header.Get("X-Dev-Proto"); devProto != "" { + return devProto + "://" + h.getActualHost(r) + } + + // 2. Standard flow + scheme := "http" + if r.TLS != nil || r.Header.Get("X-Forwarded-Proto") == "https" { + scheme = "https" + } + return scheme + "://" + h.getActualHost(r) +} + +func (h *Handler) getCookieDomain(r *http.Request) string { + if h.isDev(r) { + host := h.getActualHost(r) + if strings.Contains(host, ":") { + host, _, _ = strings.Cut(host, ":") + } + return host + } + return h.Config.Cookie.Domain +} + +func (h *Handler) getOAuthRedirectURL(r *http.Request, providerRedirectURL string) string { + if !h.isDev(r) { + return "" + } + + // Use dynamic BaseURL if on a dev host + if strings.Contains(providerRedirectURL, "://") { + // Replace the host part with current dynamic BaseURL + parts := strings.SplitN(providerRedirectURL, "/", 4) + if len(parts) >= 4 { + return h.getBaseURL(r) + "/" + parts[3] + } + } + return "" +} + func normalizeEmail(email string) string { return strings.ToLower(strings.TrimSpace(email)) } diff --git a/internal/handler/links.go b/internal/handler/links.go new file mode 100644 index 0000000..57c13b0 --- /dev/null +++ b/internal/handler/links.go @@ -0,0 +1,323 @@ +package handler + +import ( + "context" + "encoding/json" + "io" + "log/slog" + "net/http" + + "github.com/capyrpi/api/internal/database" + "github.com/capyrpi/api/internal/dto" + "github.com/capyrpi/api/internal/middleware" + "github.com/go-chi/chi/v5" + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" + "github.com/yeqown/go-qrcode/v2" + "github.com/yeqown/go-qrcode/writer/standard" +) + +const QR_FG_COLOR = "#067b76" +const QR_BG_COLOR = "#fcfdfe" + +// TODO this should be a global variable, this is very brittle +const PUBLIC_LINK_ENDPOINT = "www.capyrpi.org/api/r/" + +// CreateLink creates a new dynamic link +// @Summary Create link +// @Description Creates a new dynamic link for an organization. Requires org_admin role. +// @Tags links +// @Accept json +// @Produce json +// @Param body body dto.CreateLinkRequest true "Link data" +// @Success 201 {object} dto.LinkResponse +// @Failure 400 {object} ErrorResponse +// @Failure 403 {object} ErrorResponse +// @Security CookieAuth +// @Router /links [post] +func (h *Handler) CreateLink(w http.ResponseWriter, r *http.Request) { + var req dto.CreateLinkRequest + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid request body") + return + } + + if req.OrgID == uuid.Nil { + h.respondError(w, http.StatusBadRequest, "org_id is required") + return + } + + // Check if user is admin of the org + claims, ok := middleware.GetUserClaims(r.Context()) + if !ok { + h.respondError(w, http.StatusUnauthorized, "Unauthorized") + return + } + uid, _ := uuid.Parse(claims.UserID) + + isAdmin, err := h.queries.IsOrgAdmin(r.Context(), database.IsOrgAdminParams{ + Uid: uid, + Oid: req.OrgID, + }) + if err != nil { + h.handleDBError(w, err) + return + } + if !isAdmin.Bool { + h.respondError(w, http.StatusForbidden, "Only org admins can create links") + return + } + + link, err := h.queries.CreateLink(r.Context(), database.CreateLinkParams{ + EndpointUrl: req.EndpointURL, + DestUrl: req.DestURL, + Oid: req.OrgID, + }) + if err != nil { + h.handleDBError(w, err) + return + } + + h.respondJSON(w, http.StatusCreated, toLinkResponse(link)) +} + +// UpdateLink updates an existing dynamic link +// @Summary Update link +// @Description Updates a dynamic link's destination or endpoint URL. Requires org_admin role. +// @Tags links +// @Accept json +// @Produce json +// @Param lid path string true "Link UUID" +// @Param body body dto.UpdateLinkRequest true "Update data" +// @Success 200 {object} dto.LinkResponse +// @Failure 400 {object} ErrorResponse +// @Failure 403 {object} ErrorResponse +// @Failure 404 {object} ErrorResponse +// @Security CookieAuth +// @Router /links/{lid} [put] +func (h *Handler) UpdateLink(w http.ResponseWriter, r *http.Request) { + lidStr := chi.URLParam(r, "lid") + lid, err := uuid.Parse(lidStr) + if err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid link ID") + return + } + + var req dto.UpdateLinkRequest + if err := json.NewDecoder(r.Body).Decode(&req); err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid request body") + return + } + + link, err := h.queries.GetLinkByLID(r.Context(), lid) + if err != nil { + h.handleDBError(w, err) + return + } + + // Permission check + claims, ok := middleware.GetUserClaims(r.Context()) + if !ok { + h.respondError(w, http.StatusUnauthorized, "Unauthorized") + return + } + uid, _ := uuid.Parse(claims.UserID) + + isAdmin, err := h.queries.IsOrgAdmin(r.Context(), database.IsOrgAdminParams{ + Uid: uid, + Oid: link.Oid, + }) + if err != nil { + h.handleDBError(w, err) + return + } + if !isAdmin.Bool { + h.respondError(w, http.StatusForbidden, "Only org admins can update links") + return + } + + updatedLink, err := h.queries.UpdateLink(r.Context(), database.UpdateLinkParams{ + Lid: lid, + EndpointUrl: toPgText(req.EndpointURL), + DestUrl: toPgText(req.DestURL), + }) + if err != nil { + h.handleDBError(w, err) + return + } + + h.respondJSON(w, http.StatusOK, toLinkResponse(updatedLink)) +} + +// ResolveLink resolves a dynamic link, logs a visit, and redirects +// @Summary Resolve link +// @Description Redirects to the destination URL and logs a visit +// @Tags links +// @Param endpoint_url path string true "Dynamic link endpoint URL" +// @Success 302 +// @Failure 404 {object} ErrorResponse +// @Router /r/{endpoint_url} [get] +func (h *Handler) ResolveLink(w http.ResponseWriter, r *http.Request) { + endpointURL := chi.URLParam(r, "endpoint_url") + + link, err := h.queries.GetLinkByEndpointURL(r.Context(), endpointURL) + if err != nil { + h.handleDBError(w, err) + return + } + + // Log visit asynchronously to not block the redirect + go func() { + // Create a detached context so the DB query isn't cancelled when the HTTP request ends + ctx := context.Background() + + var uid pgtype.UUID + claims, ok := middleware.GetUserClaims(r.Context()) + if ok { + parsedUID, err := uuid.Parse(claims.UserID) + if err == nil { + uid = pgtype.UUID{Bytes: parsedUID, Valid: true} + } + } + + _, err := h.queries.LogLinkVisit(ctx, database.LogLinkVisitParams{ + Lid: link.Lid, + Uid: uid, + }) + if err != nil { + slog.Error("failed to log link visit", "lid", link.Lid, "error", err) + } + }() + + http.Redirect(w, r, link.DestUrl, http.StatusFound) +} + +// ListOrgLinks lists all links for an organization +// @Summary List org links +// @Description Returns all dynamic links owned by an organization +// @Tags links +// @Accept json +// @Produce json +// @Param oid path string true "Organization UUID" +// @Success 200 {array} dto.LinkResponse +// @Failure 404 {object} ErrorResponse +// @Security CookieAuth +// @Router /organizations/{oid}/links [get] +func (h *Handler) ListOrgLinks(w http.ResponseWriter, r *http.Request) { + oidStr := chi.URLParam(r, "oid") + oid, err := uuid.Parse(oidStr) + if err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid organization ID") + return + } + + links, err := h.queries.ListLinksByOrg(r.Context(), oid) + if err != nil { + h.handleDBError(w, err) + return + } + + response := make([]dto.LinkResponse, len(links)) + for i, l := range links { + response[i] = toLinkResponse(l) + } + + h.respondJSON(w, http.StatusOK, response) +} + +// GetTotalVisits returns the total number of visits for a link +// @Summary Get visit count +// @Description Returns the total number of visits logged for a link +// @Tags links +// @Produce json +// @Param lid path string true "Link UUID" +// @Success 200 {object} dto.VisitCountResponse +// @Failure 404 {object} ErrorResponse +// @Security CookieAuth +// @Router /links/{lid}/visits [get] +func (h *Handler) GetTotalVisits(w http.ResponseWriter, r *http.Request) { + lidStr := chi.URLParam(r, "lid") + lid, err := uuid.Parse(lidStr) + if err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid link ID") + return + } + + count, err := h.queries.GetTotalVisits(r.Context(), lid) + if err != nil { + h.handleDBError(w, err) + return + } + + h.respondJSON(w, http.StatusOK, dto.VisitCountResponse{ + LID: lid, + Count: count, + }) +} + +type nopWriteCloser struct { + io.Writer +} + +func (nopWriteCloser) Close() error { return nil } + +// GetQRCode generates a QR code for a link's destination URL +// @Summary Get QR code +// @Description Generates and returns a QR code image for the link's destination URL +// @Tags links +// @Produce image/png +// @Param lid path string true "Link UUID" +// @Success 200 {file} image/png +// @Failure 404 {object} ErrorResponse +// @Router /links/{lid}/qrcode [get] +func (h *Handler) GetQRCode(w http.ResponseWriter, r *http.Request) { + lidStr := chi.URLParam(r, "lid") + lid, err := uuid.Parse(lidStr) + if err != nil { + h.respondError(w, http.StatusBadRequest, "Invalid link ID") + return + } + + link, err := h.queries.GetLinkByLID(r.Context(), lid) + if err != nil { + h.handleDBError(w, err) + return + } + + qrc, err := qrcode.NewWith(PUBLIC_LINK_ENDPOINT + link.EndpointUrl) + if err != nil { + slog.Error("failed to generate QR code", "error", err) + h.respondError(w, http.StatusInternalServerError, "Failed to generate QR code") + return + } + + qrcOpts := []standard.ImageOption{ + standard.WithBgColorRGBHex(QR_BG_COLOR), + standard.WithFgColorRGBHex(QR_FG_COLOR), + // standard.WithCircleShape(), + } + + w.Header().Set("Content-Type", "image/png") + wr := standard.NewWithWriter(nopWriteCloser{w}, qrcOpts...) + if err != nil { + slog.Error("failed to create standard writer for QR code", "error", err) + h.respondError(w, http.StatusInternalServerError, "Failed to create QR code writer") + return + } + + if err = qrc.Save(wr); err != nil { + slog.Error("failed to write QR code to response", "error", err) + // Header already set, but we can't do much now if it partially wrote + } +} + +// Helper functions for link conversion +func toLinkResponse(link database.Link) dto.LinkResponse { + return dto.LinkResponse{ + LID: link.Lid, + EndpointURL: link.EndpointUrl, + DestURL: link.DestUrl, + OrgID: link.Oid, + CreatedAt: fromPgTimestamp(link.CreatedAt), + } +} diff --git a/internal/handler/links_test.go b/internal/handler/links_test.go new file mode 100644 index 0000000..7744488 --- /dev/null +++ b/internal/handler/links_test.go @@ -0,0 +1,180 @@ +package handler_test + +import ( + "bytes" + "context" + "encoding/json" + "net/http" + "net/http/httptest" + "testing" + + "github.com/capyrpi/api/internal/config" + "github.com/capyrpi/api/internal/database" + "github.com/capyrpi/api/internal/database/mocks" + "github.com/capyrpi/api/internal/dto" + "github.com/capyrpi/api/internal/handler" + "github.com/capyrpi/api/internal/middleware" + "github.com/go-chi/chi/v5" + "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/mock" +) + +func TestCreateLink(t *testing.T) { + uid := uuid.New() + oid := uuid.New() + lid := uuid.New() + + tests := []struct { + name string + requestBody interface{} + setupMock func(*mocks.Querier) + setupContext func() context.Context + expectedStatus int + }{ + { + name: "Success", + requestBody: dto.CreateLinkRequest{ + EndpointURL: "promo-2024", + DestURL: "https://capyrpi.org/promo", + OrgID: oid, + }, + setupMock: func(m *mocks.Querier) { + m.On("IsOrgAdmin", mock.Anything, database.IsOrgAdminParams{ + Uid: uid, + Oid: oid, + }).Return(pgtype.Bool{Bool: true, Valid: true}, nil) + + m.On("CreateLink", mock.Anything, database.CreateLinkParams{ + EndpointUrl: "promo-2024", + DestUrl: "https://capyrpi.org/promo", + Oid: oid, + }).Return(database.Link{ + Lid: lid, + EndpointUrl: "promo-2024", + DestUrl: "https://capyrpi.org/promo", + Oid: oid, + }, nil) + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: uid.String()} + return context.WithValue(ctx, middleware.UserClaimsKey, claims) + }, + expectedStatus: http.StatusCreated, + }, + { + name: "Forbidden - Not Admin", + requestBody: dto.CreateLinkRequest{ + EndpointURL: "promo-2024", + DestURL: "https://capyrpi.org/promo", + OrgID: oid, + }, + setupMock: func(m *mocks.Querier) { + m.On("IsOrgAdmin", mock.Anything, database.IsOrgAdminParams{ + Uid: uid, + Oid: oid, + }).Return(pgtype.Bool{Bool: false, Valid: true}, nil) + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: uid.String()} + return context.WithValue(ctx, middleware.UserClaimsKey, claims) + }, + expectedStatus: http.StatusForbidden, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + mockQueries := mocks.NewQuerier(t) + if tt.setupMock != nil { + tt.setupMock(mockQueries) + } + + h := handler.New(mockQueries, &config.Config{}) + + body, _ := json.Marshal(tt.requestBody) + req := httptest.NewRequest("POST", "/links", bytes.NewBuffer(body)) + req = req.WithContext(tt.setupContext()) + rr := httptest.NewRecorder() + + http.HandlerFunc(h.CreateLink).ServeHTTP(rr, req) + + assert.Equal(t, tt.expectedStatus, rr.Code) + if tt.expectedStatus == http.StatusCreated { + var res dto.LinkResponse + err := json.Unmarshal(rr.Body.Bytes(), &res) + assert.NoError(t, err) + assert.Equal(t, lid, res.LID) + assert.Equal(t, "promo-2024", res.EndpointURL) + } + }) + } +} + +func TestResolveLink(t *testing.T) { + lid := uuid.New() + endpoint := "my-link" + dest := "https://example.com" + + tests := []struct { + name string + endpointParam string + setupMock func(*mocks.Querier) + setupContext func() context.Context + expectedStatus int + expectedLoc string + }{ + { + name: "Success Redirect", + endpointParam: endpoint, + setupMock: func(m *mocks.Querier) { + m.On("GetLinkByEndpointURL", mock.Anything, endpoint).Return(database.Link{ + Lid: lid, + EndpointUrl: endpoint, + DestUrl: dest, + }, nil) + + // We don't strictly mock the background Context visit log here + // since it happens in a goroutine and is hard to sync without sleep or waitgroups, + // but let's mock it to avoid panic if the mock is strict. + m.On("LogLinkVisit", mock.Anything, mock.MatchedBy(func(p database.LogLinkVisitParams) bool { + return p.Lid == lid + })).Return(database.LinkVisit{}, nil).Maybe() + }, + setupContext: func() context.Context { + return context.Background() + }, + expectedStatus: http.StatusFound, // 302 + expectedLoc: dest, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + mockQueries := mocks.NewQuerier(t) + tt.setupMock(mockQueries) + + h := handler.New(mockQueries, &config.Config{}) + + req := httptest.NewRequest("GET", "/r/"+tt.endpointParam, nil) + req = req.WithContext(tt.setupContext()) + + // Setup chi router context so chi.URLParam works + rctx := chi.NewRouteContext() + rctx.URLParams.Add("endpoint_url", tt.endpointParam) + req = req.WithContext(context.WithValue(req.Context(), chi.RouteCtxKey, rctx)) + + rr := httptest.NewRecorder() + + http.HandlerFunc(h.ResolveLink).ServeHTTP(rr, req) + + assert.Equal(t, tt.expectedStatus, rr.Code) + if tt.expectedStatus == http.StatusFound { + assert.Equal(t, tt.expectedLoc, rr.Header().Get("Location")) + } + }) + } +} diff --git a/internal/handler/localhost_test.go b/internal/handler/localhost_test.go new file mode 100644 index 0000000..3089aab --- /dev/null +++ b/internal/handler/localhost_test.go @@ -0,0 +1,132 @@ +package handler + +import ( + "net/http/httptest" + "testing" + + "github.com/capyrpi/api/internal/config" + "github.com/stretchr/testify/assert" +) + +func TestDevDetection(t *testing.T) { + tests := []struct { + name string + env string + host string + expected bool + }{ + {"dev environment", "development", "api.capyrpi.org", true}, + {"staging environment", "staging", "api.capyrpi.org", true}, + {"empty environment", "", "api.capyrpi.org", true}, + {"production env with dev host", "production", "dev.capyrpi.org", true}, + {"production env with localhost", "production", "localhost:8080", true}, + {"production env with dev forwarded host", "production", "api.capyrpi.org", true}, + {"production env with X-Dev-Host", "production", "api.capyrpi.org", true}, + {"production environment", "production", "api.capyrpi.org", false}, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + h := &Handler{Config: &config.Config{Env: tt.env}} + r := httptest.NewRequest("GET", "/", nil) + r.Host = tt.host + if tt.name == "production env with dev forwarded host" { + r.Header.Set("X-Forwarded-Host", "dev.localhost") + } + if tt.name == "production env with X-Dev-Host" { + r.Header.Set("X-Dev-Host", "localhost:5173") + } + assert.Equal(t, tt.expected, h.isDev(r)) + }) + } +} + +func TestGetCookieDomain(t *testing.T) { + h := &Handler{Config: &config.Config{ + Env: "development", + Cookie: config.CookieConfig{Domain: "capyrpi.org"}, + }} + + // Direct localhost + rLocal := httptest.NewRequest("GET", "/", nil) + rLocal.Host = "localhost:3000" + assert.Equal(t, "localhost", h.getCookieDomain(rLocal)) + + // Proxied to dev.capyrpi.org + rProxied := httptest.NewRequest("GET", "/", nil) + rProxied.Host = "dev.capyrpi.org" + rProxied.Header.Set("X-Forwarded-Host", "localhost:3000") + assert.Equal(t, "localhost", h.getCookieDomain(rProxied)) + + // Production (not in dev mode) + hProd := &Handler{Config: &config.Config{ + Env: "production", + Cookie: config.CookieConfig{Domain: "capyrpi.org"}, + }} + rProd := httptest.NewRequest("GET", "/", nil) + rProd.Host = "api.capyrpi.org" + assert.Equal(t, "capyrpi.org", hProd.getCookieDomain(rProd)) +} + +func TestGetBaseURL(t *testing.T) { + h := &Handler{Config: &config.Config{ + Env: "development", + }} + + // Direct localhost + rLocal := httptest.NewRequest("GET", "/", nil) + rLocal.Host = "localhost:3000" + assert.Equal(t, "http://localhost:3000", h.getBaseURL(rLocal)) + + // Proxied with HTTPS + rProxied := httptest.NewRequest("GET", "/", nil) + rProxied.Host = "dev.capyrpi.org" + rProxied.Header.Set("X-Forwarded-Host", "localhost:3000") + rProxied.Header.Set("X-Forwarded-Proto", "https") + assert.Equal(t, "https://localhost:3000", h.getBaseURL(rProxied)) +} + +func TestGetOAuthRedirectURL(t *testing.T) { + h := &Handler{Config: &config.Config{ + Env: "development", + }} + + providerURL := "https://api.capyrpi.org/api/v1/auth/google/callback" + + // Direct localhost + rLocal := httptest.NewRequest("GET", "/", nil) + rLocal.Host = "localhost:3000" + assert.Equal(t, "http://localhost:3000/api/v1/auth/google/callback", h.getOAuthRedirectURL(rLocal, providerURL)) + + // Proxied + rProxied := httptest.NewRequest("GET", "/", nil) + rProxied.Host = "dev.capyrpi.org" + rProxied.Header.Set("X-Forwarded-Host", "localhost:3000") + assert.Equal(t, "http://localhost:3000/api/v1/auth/google/callback", h.getOAuthRedirectURL(rProxied, providerURL)) + + // Production env with dev host (should work now) + hDevHost := &Handler{Config: &config.Config{Env: "production"}} + rDevHost := httptest.NewRequest("GET", "/", nil) + rDevHost.Host = "dev.capyrpi.org" + rDevHost.Header.Set("X-Forwarded-Host", "localhost:3000") + assert.Equal(t, "http://localhost:3000/api/v1/auth/google/callback", hDevHost.getOAuthRedirectURL(rDevHost, providerURL)) + + // Production env with X-Dev-Host (bypassing proxy) + rXDev := httptest.NewRequest("GET", "/", nil) + rXDev.Host = "api.capyrpi.org" + rXDev.Header.Set("X-Dev-Host", "localhost:5173") + assert.Equal(t, "http://localhost:5173/api/v1/auth/google/callback", hDevHost.getOAuthRedirectURL(rXDev, providerURL)) + + // Production env with X-Dev-Proto + rXProto := httptest.NewRequest("GET", "/", nil) + rXProto.Host = "api.capyrpi.org" + rXProto.Header.Set("X-Dev-Host", "localhost:5173") + rXProto.Header.Set("X-Dev-Proto", "https") + assert.Equal(t, "https://localhost:5173/api/v1/auth/google/callback", hDevHost.getOAuthRedirectURL(rXProto, providerURL)) + + // Production (not in dev mode and not a dev host) + hProd := &Handler{Config: &config.Config{Env: "production"}} + rProd := httptest.NewRequest("GET", "/", nil) + rProd.Host = "api.capyrpi.org" + assert.Equal(t, "", hProd.getOAuthRedirectURL(rProd, providerURL)) +} diff --git a/internal/handler/organizations.go b/internal/handler/organizations.go index 28f6eaa..4e7e378 100644 --- a/internal/handler/organizations.go +++ b/internal/handler/organizations.go @@ -22,7 +22,6 @@ import ( // @Param limit query int false "Limit (default 20, max 100)" // @Param offset query int false "Offset (default 0)" // @Success 200 {array} dto.OrganizationResponse -// @Security CookieAuth // @Router /organizations [get] func (h *Handler) ListOrganizations(w http.ResponseWriter, r *http.Request) { limit, offset := parsePagination(r) @@ -259,16 +258,30 @@ func (h *Handler) AddOrgMember(w http.ResponseWriter, r *http.Request) { return } - if _, ok := h.requireOrgAdmin(w, r, oid); !ok { - return - } - var req dto.AddMemberRequest if err := json.NewDecoder(r.Body).Decode(&req); err != nil { h.respondError(w, http.StatusBadRequest, "Invalid request body") return } + switch middleware.GetAuthType(r.Context()) { + case "bot": + // Bots retain full access to add members on behalf of users. + default: + authenticatedUID, _, ok := h.requireAuthenticatedUser(w, r) + if !ok { + return + } + + // Allow self-join through the existing members endpoint, but never allow + // a human user to self-promote to admin. + if req.UID != authenticatedUID || req.IsAdmin { + if _, ok := h.requireOrgAdmin(w, r, oid); !ok { + return + } + } + } + if err := h.queries.AddOrgMember(r.Context(), database.AddOrgMemberParams{ Uid: req.UID, Oid: oid, @@ -302,10 +315,6 @@ func (h *Handler) RemoveOrgMember(w http.ResponseWriter, r *http.Request) { return } - if _, ok := h.requireOrgAdmin(w, r, oid); !ok { - return - } - uidStr := chi.URLParam(r, "uid") uid, err := uuid.Parse(uidStr) if err != nil { @@ -313,6 +322,22 @@ func (h *Handler) RemoveOrgMember(w http.ResponseWriter, r *http.Request) { return } + switch middleware.GetAuthType(r.Context()) { + case "bot": + // Bots retain full access to remove members on behalf of users. + default: + authenticatedUID, _, ok := h.requireAuthenticatedUser(w, r) + if !ok { + return + } + + if uid != authenticatedUID { + if _, ok := h.requireOrgAdmin(w, r, oid); !ok { + return + } + } + } + if err := h.queries.RemoveOrgMember(r.Context(), database.RemoveOrgMemberParams{ Uid: uid, Oid: oid, diff --git a/internal/handler/organizations_test.go b/internal/handler/organizations_test.go index f302cf8..140fe24 100644 --- a/internal/handler/organizations_test.go +++ b/internal/handler/organizations_test.go @@ -14,7 +14,9 @@ import ( "github.com/capyrpi/api/internal/dto" "github.com/capyrpi/api/internal/handler" "github.com/capyrpi/api/internal/middleware" + "github.com/go-chi/chi/v5" "github.com/google/uuid" + "github.com/jackc/pgx/v5/pgtype" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" ) @@ -128,3 +130,108 @@ func TestListOrganizations(t *testing.T) { }) } } + +func TestAddOrgMemberAllowsSelfJoin(t *testing.T) { + uid := uuid.New() + oid := uuid.New() + + mockQueries := mocks.NewQuerier(t) + mockQueries.On("AddOrgMember", mock.Anything, mock.MatchedBy(func(arg database.AddOrgMemberParams) bool { + return arg.Oid == oid && arg.Uid == uid && arg.IsAdmin.Valid && !arg.IsAdmin.Bool + })).Return(nil) + + h := handler.New(mockQueries, &config.Config{}) + + body, _ := json.Marshal(dto.AddMemberRequest{ + UID: uid, + IsAdmin: false, + }) + + req := httptest.NewRequest("POST", "/organizations/"+oid.String()+"/members", bytes.NewBuffer(body)) + req = req.WithContext(context.WithValue(context.Background(), middleware.UserClaimsKey, &middleware.UserClaims{UserID: uid.String()})) + rctx := chi.NewRouteContext() + rctx.URLParams.Add("oid", oid.String()) + req = req.WithContext(context.WithValue(req.Context(), chi.RouteCtxKey, rctx)) + + rr := httptest.NewRecorder() + http.HandlerFunc(h.AddOrgMember).ServeHTTP(rr, req) + + assert.Equal(t, http.StatusCreated, rr.Code) +} + +func TestRemoveOrgMemberAuthorization(t *testing.T) { + oid := uuid.New() + selfUID := uuid.New() + otherUID := uuid.New() + + tests := []struct { + name string + authUID uuid.UUID + targetUID uuid.UUID + setupMock func(*mocks.Querier) + expectedStatus int + }{ + { + name: "MemberCanRemoveSelf", + authUID: selfUID, + targetUID: selfUID, + setupMock: func(m *mocks.Querier) { + m.On("RemoveOrgMember", mock.Anything, database.RemoveOrgMemberParams{ + Uid: selfUID, + Oid: oid, + }).Return(nil) + }, + expectedStatus: http.StatusNoContent, + }, + { + name: "AdminCanRemoveOtherMember", + authUID: selfUID, + targetUID: otherUID, + setupMock: func(m *mocks.Querier) { + m.On("IsOrgAdmin", mock.Anything, database.IsOrgAdminParams{ + Uid: selfUID, + Oid: oid, + }).Return(pgtype.Bool{Bool: true, Valid: true}, nil) + m.On("RemoveOrgMember", mock.Anything, database.RemoveOrgMemberParams{ + Uid: otherUID, + Oid: oid, + }).Return(nil) + }, + expectedStatus: http.StatusNoContent, + }, + { + name: "NonAdminCannotRemoveOtherMember", + authUID: selfUID, + targetUID: otherUID, + setupMock: func(m *mocks.Querier) { + m.On("IsOrgAdmin", mock.Anything, database.IsOrgAdminParams{ + Uid: selfUID, + Oid: oid, + }).Return(pgtype.Bool{Bool: false, Valid: true}, nil) + }, + expectedStatus: http.StatusForbidden, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + mockQueries := mocks.NewQuerier(t) + tt.setupMock(mockQueries) + + h := handler.New(mockQueries, &config.Config{}) + + req := httptest.NewRequest(http.MethodDelete, "/organizations/"+oid.String()+"/members/"+tt.targetUID.String(), nil) + req = req.WithContext(context.WithValue(context.Background(), middleware.UserClaimsKey, &middleware.UserClaims{UserID: tt.authUID.String()})) + + rctx := chi.NewRouteContext() + rctx.URLParams.Add("oid", oid.String()) + rctx.URLParams.Add("uid", tt.targetUID.String()) + req = req.WithContext(context.WithValue(req.Context(), chi.RouteCtxKey, rctx)) + + rr := httptest.NewRecorder() + http.HandlerFunc(h.RemoveOrgMember).ServeHTTP(rr, req) + + assert.Equal(t, tt.expectedStatus, rr.Code) + }) + } +} diff --git a/internal/handler/users.go b/internal/handler/users.go index 340a592..066b0a3 100644 --- a/internal/handler/users.go +++ b/internal/handler/users.go @@ -40,7 +40,7 @@ func (h *Handler) GetUser(w http.ResponseWriter, r *http.Request) { // UpdateUser updates a user's profile // @Summary Update user -// @Description Updates a user's profile. Users can only update their own profile. +// @Description Updates a user's profile. Only role changes require the caller to have the dev role. // @Tags users // @Accept json // @Produce json @@ -71,13 +71,23 @@ func (h *Handler) UpdateUser(w http.ResponseWriter, r *http.Request) { return } + targetUser, err := h.queries.GetUserByID(r.Context(), uid) + if err != nil { + h.handleDBError(w, err) + return + } + var role database.NullUserRole if req.Role != nil { - if !authenticatedUser.Role.Valid || authenticatedUser.Role.UserRole != database.UserRoleDev { + requestedRole := database.UserRole(*req.Role) + roleChanged := !targetUser.Role.Valid || targetUser.Role.UserRole != requestedRole + if roleChanged && (!authenticatedUser.Role.Valid || authenticatedUser.Role.UserRole != database.UserRoleDev) { h.respondError(w, http.StatusForbidden, "Only dev may update user roles") return } - role = database.NullUserRole{UserRole: database.UserRole(*req.Role), Valid: true} + if roleChanged { + role = database.NullUserRole{UserRole: requestedRole, Valid: true} + } } user, err := h.queries.UpdateUser(r.Context(), database.UpdateUserParams{ @@ -195,6 +205,7 @@ func (h *Handler) GetUserEvents(w http.ResponseWriter, r *http.Request) { for i, event := range events { response[i] = dto.EventResponse{ EID: event.Eid, + Title: fromPgText(event.Title), Location: fromPgText(event.Location), EventTime: fromPgTimestamp(event.EventTime), Description: fromPgText(event.Description), diff --git a/internal/handler/users_test.go b/internal/handler/users_test.go index 44fe5a3..78eabcf 100644 --- a/internal/handler/users_test.go +++ b/internal/handler/users_test.go @@ -1,6 +1,9 @@ package handler_test import ( + "bytes" + "context" + "encoding/json" "fmt" "net/http" "net/http/httptest" @@ -9,7 +12,9 @@ import ( "github.com/capyrpi/api/internal/config" "github.com/capyrpi/api/internal/database" "github.com/capyrpi/api/internal/database/mocks" + "github.com/capyrpi/api/internal/dto" "github.com/capyrpi/api/internal/handler" + "github.com/capyrpi/api/internal/middleware" "github.com/go-chi/chi/v5" "github.com/google/uuid" "github.com/jackc/pgx/v5" @@ -83,3 +88,148 @@ func TestGetUser(t *testing.T) { }) } } + +func TestUpdateUser(t *testing.T) { + targetUID := uuid.New() + otherUID := uuid.New() + firstName := "Updated" + currentRole := "student" + newRole := "faculty" + + tests := []struct { + name string + requestBody dto.UpdateUserRequest + setupContext func() context.Context + mockSetup func(*mocks.Querier) + expectedStatus int + }{ + { + name: "SelfCanUpdateWhenRoleUnchanged", + requestBody: dto.UpdateUserRequest{ + FirstName: &firstName, + Role: ¤tRole, + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: targetUID.String()} + ctx = context.WithValue(ctx, middleware.UserClaimsKey, claims) + return context.WithValue(ctx, middleware.AuthTypeKey, "human") + }, + mockSetup: func(m *mocks.Querier) { + m.On("GetUserByID", mock.Anything, targetUID).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil).Once() + m.On("GetUserByID", mock.Anything, targetUID).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil).Once() + m.On("UpdateUser", mock.Anything, mock.MatchedBy(func(arg database.UpdateUserParams) bool { + return arg.Uid == targetUID && + arg.FirstName.Valid && arg.FirstName.String == firstName && + !arg.Role.Valid + })).Return(database.User{ + Uid: targetUID, + FirstName: firstName, + LastName: "Doe", + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil) + }, + expectedStatus: http.StatusOK, + }, + { + name: "NonDevCannotUpdateAnotherUser", + requestBody: dto.UpdateUserRequest{ + FirstName: &firstName, + Role: ¤tRole, + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: otherUID.String()} + ctx = context.WithValue(ctx, middleware.UserClaimsKey, claims) + return context.WithValue(ctx, middleware.AuthTypeKey, "human") + }, + mockSetup: func(m *mocks.Querier) { + m.On("GetUserByID", mock.Anything, otherUID).Return(database.User{ + Uid: otherUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil) + }, + expectedStatus: http.StatusForbidden, + }, + { + name: "NonDevCannotChangeOwnRole", + requestBody: dto.UpdateUserRequest{ + Role: &newRole, + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: targetUID.String()} + ctx = context.WithValue(ctx, middleware.UserClaimsKey, claims) + return context.WithValue(ctx, middleware.AuthTypeKey, "human") + }, + mockSetup: func(m *mocks.Querier) { + m.On("GetUserByID", mock.Anything, targetUID).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil).Once() + m.On("GetUserByID", mock.Anything, targetUID).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil).Once() + }, + expectedStatus: http.StatusForbidden, + }, + { + name: "DevCanChangeAnotherUsersRole", + requestBody: dto.UpdateUserRequest{ + Role: &newRole, + }, + setupContext: func() context.Context { + ctx := context.Background() + claims := &middleware.UserClaims{UserID: otherUID.String()} + ctx = context.WithValue(ctx, middleware.UserClaimsKey, claims) + return context.WithValue(ctx, middleware.AuthTypeKey, "human") + }, + mockSetup: func(m *mocks.Querier) { + m.On("GetUserByID", mock.Anything, otherUID).Return(database.User{ + Uid: otherUID, + Role: database.NullUserRole{UserRole: database.UserRoleDev, Valid: true}, + }, nil) + m.On("GetUserByID", mock.Anything, targetUID).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }, nil) + m.On("UpdateUser", mock.Anything, mock.MatchedBy(func(arg database.UpdateUserParams) bool { + return arg.Uid == targetUID && + arg.Role.Valid && + arg.Role.UserRole == database.UserRoleFaculty + })).Return(database.User{ + Uid: targetUID, + Role: database.NullUserRole{UserRole: database.UserRoleFaculty, Valid: true}, + }, nil) + }, + expectedStatus: http.StatusOK, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + mockQueries := mocks.NewQuerier(t) + tt.mockSetup(mockQueries) + + h := handler.New(mockQueries, &config.Config{}) + r := chi.NewRouter() + r.Put("/users/{uid}", h.UpdateUser) + + body, _ := json.Marshal(tt.requestBody) + req := httptest.NewRequest(http.MethodPut, fmt.Sprintf("/users/%s", targetUID), bytes.NewBuffer(body)) + req = req.WithContext(tt.setupContext()) + rr := httptest.NewRecorder() + + r.ServeHTTP(rr, req) + + assert.Equal(t, tt.expectedStatus, rr.Code) + }) + } +} diff --git a/internal/middleware/cors.go b/internal/middleware/cors.go index 47a0713..eddb581 100644 --- a/internal/middleware/cors.go +++ b/internal/middleware/cors.go @@ -12,9 +12,16 @@ func CORS(allowedOrigins []string, isDev bool) func(http.Handler) http.Handler { origin := r.Header.Get("Origin") allowed := false - // In development, allow any localhost or 127.0.0.1 origin - isLocal := strings.HasPrefix(origin, "http://localhost") || strings.HasPrefix(origin, "http://127.0.0.1") - if isDev && isLocal { + // Trust local development origins + isLocal := strings.HasPrefix(origin, "http://localhost") || + strings.HasPrefix(origin, "http://127.0.0.1") || + strings.HasPrefix(origin, "https://localhost") + + // In development, also trust origin if it matches X-Forwarded-Host + forwardedHost := r.Header.Get("X-Forwarded-Host") + isForwarded := forwardedHost != "" && strings.Contains(origin, forwardedHost) + + if isDev && (isLocal || isForwarded) { allowed = true } @@ -31,10 +38,8 @@ func CORS(allowedOrigins []string, isDev bool) func(http.Handler) http.Handler { } } - // If no allowed origins specified, allow all (development mode) - // But for credentials to work with *, strict browsers block it. - // So good practice: if development, echo back origin. - if !allowed && len(allowedOrigins) == 0 { + // If no allowed origins specified and we are in dev, allow all + if !allowed && isDev && len(allowedOrigins) == 0 { allowed = true } diff --git a/internal/middleware/cors_test.go b/internal/middleware/cors_test.go index 8933612..d29413a 100644 --- a/internal/middleware/cors_test.go +++ b/internal/middleware/cors_test.go @@ -20,6 +20,7 @@ func TestCORS(t *testing.T) { isDev bool expectedOrigin string expectedCreds string + forwardedHost string }{ { name: "AllowedOrigin", @@ -61,18 +62,28 @@ func TestCORS(t *testing.T) { name: "DevModeAllowAll", origin: "https://random.com", method: "GET", - setupOrigins: []string{}, // Empty = allow all - isDev: false, // Though typically true in dev + setupOrigins: []string{}, // Empty = allow all in dev + isDev: true, expectedOrigin: "https://random.com", expectedCreds: "true", }, { name: "AllowedLocalhostInDev", - origin: "http://localhost:5173", + origin: "http://localhost:9999", + method: "GET", + setupOrigins: []string{"https://app.example.com"}, + isDev: true, + expectedOrigin: "http://localhost:9999", + expectedCreds: "true", + }, + { + name: "AllowedForwardedHostInDev", + origin: "https://my-frontend.local", method: "GET", setupOrigins: []string{"https://app.example.com"}, isDev: true, - expectedOrigin: "http://localhost:5173", + forwardedHost: "my-frontend.local", + expectedOrigin: "https://my-frontend.local", expectedCreds: "true", }, { @@ -96,6 +107,9 @@ func TestCORS(t *testing.T) { if tt.origin != "" { req.Header.Set("Origin", tt.origin) } + if tt.forwardedHost != "" { + req.Header.Set("X-Forwarded-Host", tt.forwardedHost) + } rr := httptest.NewRecorder() handler.ServeHTTP(rr, req) diff --git a/internal/oauth/google.go b/internal/oauth/google.go index ad4d60d..98d9345 100644 --- a/internal/oauth/google.go +++ b/internal/oauth/google.go @@ -47,16 +47,30 @@ func NewGoogleProvider(clientID, clientSecret, redirectURL string) *GoogleProvid } // GetAuthURL generates the OAuth authorization URL with state token -func (p *GoogleProvider) GetAuthURL(state string) string { - return p.config.AuthCodeURL(state, +// If redirectURLOverride is not empty, it will be used instead of the default config +func (p *GoogleProvider) GetAuthURL(state string, redirectURLOverride string) string { + opts := []oauth2.AuthCodeOption{ oauth2.AccessTypeOffline, oauth2.ApprovalForce, - ) + } + if redirectURLOverride != "" { + opts = append(opts, oauth2.SetAuthURLParam("redirect_uri", redirectURLOverride)) + } + return p.config.AuthCodeURL(state, opts...) } // ExchangeCode exchanges the authorization code for a token and fetches user info -func (p *GoogleProvider) ExchangeCode(ctx context.Context, code string) (*GoogleUserInfo, error) { - token, err := p.config.Exchange(ctx, code) +// If redirectURLOverride is not empty, it will be used instead of the default config +func (p *GoogleProvider) ExchangeCode(ctx context.Context, code string, redirectURLOverride string) (*GoogleUserInfo, error) { + conf := p.config + if redirectURLOverride != "" { + // Clone and override + c := *p.config + c.RedirectURL = redirectURLOverride + conf = &c + } + + token, err := conf.Exchange(ctx, code) if err != nil { return nil, fmt.Errorf("failed to exchange code: %w", err) } diff --git a/internal/oauth/microsoft.go b/internal/oauth/microsoft.go index b93b419..1041946 100644 --- a/internal/oauth/microsoft.go +++ b/internal/oauth/microsoft.go @@ -50,16 +50,30 @@ func NewMicrosoftProvider(clientID, clientSecret, redirectURL, tenantID string) } // GetAuthURL generates the OAuth authorization URL with state token -func (p *MicrosoftProvider) GetAuthURL(state string) string { - return p.config.AuthCodeURL(state, +// If redirectURLOverride is not empty, it will be used instead of the default config +func (p *MicrosoftProvider) GetAuthURL(state string, redirectURLOverride string) string { + opts := []oauth2.AuthCodeOption{ oauth2.AccessTypeOffline, oauth2.ApprovalForce, - ) + } + if redirectURLOverride != "" { + opts = append(opts, oauth2.SetAuthURLParam("redirect_uri", redirectURLOverride)) + } + return p.config.AuthCodeURL(state, opts...) } // ExchangeCode exchanges the authorization code for a token and fetches user info -func (p *MicrosoftProvider) ExchangeCode(ctx context.Context, code string) (*MicrosoftUserInfo, error) { - token, err := p.config.Exchange(ctx, code) +// If redirectURLOverride is not empty, it will be used instead of the default config +func (p *MicrosoftProvider) ExchangeCode(ctx context.Context, code string, redirectURLOverride string) (*MicrosoftUserInfo, error) { + conf := p.config + if redirectURLOverride != "" { + // Clone and override + c := *p.config + c.RedirectURL = redirectURLOverride + conf = &c + } + + token, err := conf.Exchange(ctx, code) if err != nil { return nil, fmt.Errorf("failed to exchange code: %w", err) } diff --git a/internal/router/router.go b/internal/router/router.go index 6e2ee5e..969c40f 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -22,28 +22,12 @@ func mountProtectedRoutes(r chi.Router, h *handler.Handler, jwtSecret string) { r.Get("/{uid}/events", h.GetUserEvents) }) - r.Route("/organizations", func(r chi.Router) { - r.Get("/", h.ListOrganizations) - r.Post("/", h.CreateOrganization) - r.Get("/{oid}", h.GetOrganization) - r.Put("/{oid}", h.UpdateOrganization) - r.Delete("/{oid}", h.DeleteOrganization) - r.Get("/{oid}/members", h.ListOrgMembers) - r.Post("/{oid}/members", h.AddOrgMember) - r.Delete("/{oid}/members/{uid}", h.RemoveOrgMember) - r.Get("/{oid}/events", h.ListOrgEvents) - }) - - r.Route("/events", func(r chi.Router) { - r.Get("/", h.ListEvents) - r.Post("/", h.CreateEvent) - r.Get("/org/{oid}", h.ListEventsByOrg) - r.Get("/{eid}", h.GetEvent) - r.Put("/{eid}", h.UpdateEvent) - r.Delete("/{eid}", h.DeleteEvent) - r.Get("/{eid}/registrations", h.ListEventRegistrations) - r.Post("/{eid}/register", h.RegisterForEvent) - r.Delete("/{eid}/register", h.UnregisterFromEvent) + // Links + r.Route("/links", func(r chi.Router) { + r.Post("/", h.CreateLink) + r.Put("/{lid}", h.UpdateLink) + r.Get("/{lid}/visits", h.GetTotalVisits) + r.Get("/{lid}/qrcode", h.GetQRCode) }) r.Route("/bot/tokens", func(r chi.Router) { @@ -52,6 +36,25 @@ func mountProtectedRoutes(r chi.Router, h *handler.Handler, jwtSecret string) { r.Delete("/{token_id}", h.RevokeBotToken) }) }) + + r.With(middleware.Auth(jwtSecret)).Post("/organizations", h.CreateOrganization) + r.With(middleware.Auth(jwtSecret)).Get("/organizations/{oid}", h.GetOrganization) + r.With(middleware.Auth(jwtSecret)).Put("/organizations/{oid}", h.UpdateOrganization) + r.With(middleware.Auth(jwtSecret)).Delete("/organizations/{oid}", h.DeleteOrganization) + r.With(middleware.Auth(jwtSecret)).Get("/organizations/{oid}/members", h.ListOrgMembers) + r.With(middleware.Auth(jwtSecret)).Post("/organizations/{oid}/members", h.AddOrgMember) + r.With(middleware.Auth(jwtSecret)).Delete("/organizations/{oid}/members/{uid}", h.RemoveOrgMember) + r.With(middleware.Auth(jwtSecret)).Get("/organizations/{oid}/events", h.ListOrgEvents) + r.With(middleware.Auth(jwtSecret)).Get("/organizations/{oid}/links", h.ListOrgLinks) + + r.With(middleware.Auth(jwtSecret)).Post("/events", h.CreateEvent) + r.With(middleware.Auth(jwtSecret)).Get("/events/org/{oid}", h.ListEventsByOrg) + r.With(middleware.Auth(jwtSecret)).Get("/events/{eid}", h.GetEvent) + r.With(middleware.Auth(jwtSecret)).Put("/events/{eid}", h.UpdateEvent) + r.With(middleware.Auth(jwtSecret)).Delete("/events/{eid}", h.DeleteEvent) + r.With(middleware.Auth(jwtSecret)).Get("/events/{eid}/registrations", h.ListEventRegistrations) + r.With(middleware.Auth(jwtSecret)).Post("/events/{eid}/register", h.RegisterForEvent) + r.With(middleware.Auth(jwtSecret)).Delete("/events/{eid}/register", h.UnregisterFromEvent) } // New creates a new chi router with all routes configured @@ -66,11 +69,18 @@ func New(h *handler.Handler, queries database.Querier, jwtSecret string, allowed r.Use(chimiddleware.RequestID) r.Use(middleware.CORS(allowedOrigins, h.Config.Env == "development")) + // Public link resolution alias. + r.Get("/r/{endpoint_url}", h.ResolveLink) + // API routes r.Route("/api", func(r chi.Router) { // Health check (public) r.Get("/health", h.Health) + // Link resolution (public) + // TODO Use a global variable to link this with links.go + r.Get("/r/{endpoint_url}", h.ResolveLink) + // Swagger UI (public) - Only in non-production environments if h.Config.Env != "production" { r.Get("/swagger/*", httpSwagger.WrapHandler) @@ -94,6 +104,10 @@ func New(h *handler.Handler, queries database.Querier, jwtSecret string, allowed }) }) + // Public read-only collection routes + r.Get("/organizations", h.ListOrganizations) + r.Get("/events", h.ListEvents) + mountProtectedRoutes(r, h, jwtSecret) // Bot routes (M2M auth) @@ -118,6 +132,7 @@ func New(h *handler.Handler, queries database.Querier, jwtSecret string, allowed r.Get("/organizations/{oid}/members", h.ListOrgMembers) r.Post("/organizations/{oid}/members", h.AddOrgMember) r.Delete("/organizations/{oid}/members/{uid}", h.RemoveOrgMember) + r.Get("/{oid}/links", h.ListOrgLinks) // Events (full access) r.Get("/events", h.ListEvents) @@ -128,12 +143,22 @@ func New(h *handler.Handler, queries database.Querier, jwtSecret string, allowed r.Get("/events/{eid}/registrations", h.ListEventRegistrations) r.Post("/events/{eid}/register", h.RegisterForEvent) r.Delete("/events/{eid}/register", h.UnregisterFromEvent) + + // Links + r.Route("/links", func(r chi.Router) { + r.Post("/", h.CreateLink) + r.Put("/{lid}", h.UpdateLink) + r.Get("/{lid}/visits", h.GetTotalVisits) + r.Get("/{lid}/qrcode", h.GetQRCode) + }) }) }) }) }) r.Route("/v1", func(r chi.Router) { + r.Get("/organizations", h.ListOrganizations) + r.Get("/events", h.ListEvents) mountProtectedRoutes(r, h, jwtSecret) }) diff --git a/internal/router/router_auth_test.go b/internal/router/router_auth_test.go index 43a359d..30ab6eb 100644 --- a/internal/router/router_auth_test.go +++ b/internal/router/router_auth_test.go @@ -265,6 +265,34 @@ func TestBotTokenManagementUsesDatabaseRole(t *testing.T) { assert.Equal(t, http.StatusOK, res.Code) } +func TestPublicCollectionRoutesDoNotRequireAuth(t *testing.T) { + mockQueries := mocks.NewQuerier(t) + routerUnderTest := newTestRouter(mockQueries) + + mockQueries.On("ListOrganizations", mock.Anything, mock.MatchedBy(func(arg database.ListOrganizationsParams) bool { + return arg.Limit == 20 && arg.Offset == 0 + })).Return([]database.Organization{}, nil).Once() + + mockQueries.On("ListEvents", mock.Anything, mock.MatchedBy(func(arg database.ListEventsParams) bool { + return arg.Limit == 20 && arg.Offset == 0 + })).Return([]database.EventsWithOrgID{}, nil).Once() + + orgReq := httptest.NewRequest(http.MethodGet, "/api/v1/organizations", nil) + orgRes := httptest.NewRecorder() + routerUnderTest.ServeHTTP(orgRes, orgReq) + assert.Equal(t, http.StatusOK, orgRes.Code) + + eventReq := httptest.NewRequest(http.MethodGet, "/api/v1/events", nil) + eventRes := httptest.NewRecorder() + routerUnderTest.ServeHTTP(eventRes, eventReq) + assert.Equal(t, http.StatusOK, eventRes.Code) + + protectedReq := httptest.NewRequest(http.MethodPost, "/api/v1/organizations", bytes.NewBufferString(`{"name":"Still Protected"}`)) + protectedRes := httptest.NewRecorder() + routerUnderTest.ServeHTTP(protectedRes, protectedReq) + assert.Equal(t, http.StatusUnauthorized, protectedRes.Code) +} + func newTestRouter(queries database.Querier) http.Handler { cfg := &config.Config{ Env: "test", diff --git a/internal/testutils/container.go b/internal/testutils/container.go index 8f507df..23af7c1 100644 --- a/internal/testutils/container.go +++ b/internal/testutils/container.go @@ -46,16 +46,15 @@ func SetupTestPostgres(t *testing.T) string { return connStr } -// SetupTestDB creates a fresh Postgres container, initializes schema.sql, and returns the connection pool. +// SetupTestDB creates a fresh Postgres container, applies all migrations, and returns the connection pool. func SetupTestDB(t *testing.T) *pgxpool.Pool { ctx := context.Background() _, filename, _, _ := runtime.Caller(0) projectRoot := filepath.Join(filepath.Dir(filename), "../..") - schemaPath := filepath.Join(projectRoot, "schema.sql") + migrationsPath := filepath.Join(projectRoot, "migrations") pgContainer, err := postgres.Run(ctx, "postgres:16-alpine", - postgres.WithInitScripts(schemaPath), postgres.WithDatabase("test_db"), postgres.WithUsername("test"), postgres.WithPassword("test"), @@ -79,6 +78,10 @@ func SetupTestDB(t *testing.T) *pgxpool.Pool { t.Fatalf("failed to get connection string: %v", err) } + if err := database.RunMigrations(ctx, connStr, migrationsPath); err != nil { + t.Fatalf("failed to apply migrations: %v", err) + } + pool, err := database.NewPool(ctx, connStr) if err != nil { t.Fatalf("failed to connect to database: %v", err) diff --git a/migrations/20260326224918_add_links.down.sql b/migrations/20260326224918_add_links.down.sql new file mode 100644 index 0000000..108a49b --- /dev/null +++ b/migrations/20260326224918_add_links.down.sql @@ -0,0 +1,2 @@ +DROP TABLE IF EXISTS link_visits; +DROP TABLE IF EXISTS links; diff --git a/migrations/20260326224918_add_links.up.sql b/migrations/20260326224918_add_links.up.sql new file mode 100644 index 0000000..8d15324 --- /dev/null +++ b/migrations/20260326224918_add_links.up.sql @@ -0,0 +1,14 @@ +CREATE TABLE IF NOT EXISTS links ( + lid UUID PRIMARY KEY DEFAULT gen_random_uuid(), + endpoint_url TEXT NOT NULL UNIQUE, + dest_url TEXT NOT NULL, + oid UUID NOT NULL REFERENCES organizations(oid) ON DELETE CASCADE, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); + +CREATE TABLE IF NOT EXISTS link_visits ( + lvid UUID PRIMARY KEY DEFAULT gen_random_uuid(), + lid UUID NOT NULL REFERENCES links(lid) ON DELETE CASCADE, + uid UUID REFERENCES users(uid) ON DELETE SET NULL, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); \ No newline at end of file diff --git a/migrations/20260327022209_add_event_title.down.sql b/migrations/20260327022209_add_event_title.down.sql new file mode 100644 index 0000000..34e6221 --- /dev/null +++ b/migrations/20260327022209_add_event_title.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE events +DROP COLUMN title; diff --git a/migrations/20260327022209_add_event_title.up.sql b/migrations/20260327022209_add_event_title.up.sql new file mode 100644 index 0000000..8ae34a2 --- /dev/null +++ b/migrations/20260327022209_add_event_title.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE events +ADD COLUMN title TEXT; diff --git a/migrations/20260327180817_add_event_view.down.sql b/migrations/20260327180817_add_event_view.down.sql new file mode 100644 index 0000000..bdeb469 --- /dev/null +++ b/migrations/20260327180817_add_event_view.down.sql @@ -0,0 +1 @@ +DROP VIEW events_with_org_ids \ No newline at end of file diff --git a/migrations/20260327180817_add_event_view.up.sql b/migrations/20260327180817_add_event_view.up.sql new file mode 100644 index 0000000..3bd1bc4 --- /dev/null +++ b/migrations/20260327180817_add_event_view.up.sql @@ -0,0 +1,8 @@ +CREATE VIEW events_with_org_ids AS + SELECT + e.*, + ARRAY_AGG(eh.oid)::uuid[] AS org_ids + FROM events e + LEFT JOIN event_hosting eh ON e.eid = eh.eid + GROUP BY + e.eid; diff --git a/schema.sql b/schema.sql index d67c444..aff59d4 100644 --- a/schema.sql +++ b/schema.sql @@ -2,7 +2,7 @@ -- Database Schema for CAPY (Club Assistant in Python) -- 1. ENUMs & Functions -CREATE TYPE user_role AS ENUM ('student', 'alumni', 'faculty', 'external', 'dev'); +CREATE TYPE user_role AS ENUM ('student', 'alumni', 'faculty', 'external'); CREATE OR REPLACE FUNCTION update_modified_column() RETURNS TRIGGER AS $$ @@ -36,7 +36,7 @@ CREATE TABLE IF NOT EXISTS organizations ( CREATE TABLE IF NOT EXISTS org_members ( uid UUID REFERENCES users(uid) ON DELETE CASCADE, oid UUID REFERENCES organizations(oid) ON DELETE CASCADE, - is_admin BOOLEAN DEFAULT FALSE, + is_admin BOOLEAN DEFAULT FALSE, date_joined DATE DEFAULT CURRENT_DATE, last_active DATE DEFAULT CURRENT_DATE, PRIMARY KEY (uid, oid) diff --git a/sqlc.yaml b/sqlc.yaml index b21bd96..5f90987 100644 --- a/sqlc.yaml +++ b/sqlc.yaml @@ -2,7 +2,13 @@ version: "2" sql: - engine: "postgresql" queries: "internal/database/queries.sql" - schema: "schema.sql" + schema: + - "migrations/20260316192946_initial_schema.up.sql" + - "migrations/20260318030206_telemetry_table.up.sql" + - "migrations/20260319120000_add_dev_user_role.up.sql" + - "migrations/20260326224918_add_links.up.sql" + - "migrations/20260327022209_add_event_title.up.sql" + - "migrations/20260327180817_add_event_view.up.sql" gen: go: package: "database" diff --git a/tests/benchmarks/benchmark_test.go b/tests/benchmarks/benchmark_test.go index e38fb5b..525d1e0 100644 --- a/tests/benchmarks/benchmark_test.go +++ b/tests/benchmarks/benchmark_test.go @@ -31,7 +31,7 @@ func BenchmarkHealthEndpoint(b *testing.B) { b.ReportAllocs() for i := 0; i < b.N; i++ { - resp, err := benchClient.Get(benchServer.URL + "/health") + resp, err := benchClient.Get(benchServer.URL + "/api/health") if err != nil { b.Fatalf("failed to make request: %v", err) } diff --git a/tests/benchmarks/suite_test.go b/tests/benchmarks/suite_test.go index 66f574b..3026b54 100644 --- a/tests/benchmarks/suite_test.go +++ b/tests/benchmarks/suite_test.go @@ -2,6 +2,7 @@ package benchmarks import ( "context" + "flag" "log" "net/http/httptest" "os" @@ -37,19 +38,24 @@ var ( ) func TestMain(m *testing.M) { + flag.Parse() + if testing.Short() { + log.Println("Skipping benchmark suite setup in -short mode") + os.Exit(0) + } + ctx := context.Background() log.Println("Starting benchmark suite setup...") _, filename, _, _ := runtime.Caller(0) projectRoot := filepath.Join(filepath.Dir(filename), "../..") - schemaPath := filepath.Join(projectRoot, "schema.sql") + migrationsPath := filepath.Join(projectRoot, "migrations") - log.Printf("Using schema from: %s", schemaPath) + log.Printf("Using migrations from: %s", migrationsPath) pgContainer, err := postgres.Run(ctx, "postgres:16-alpine", - postgres.WithInitScripts(schemaPath), postgres.WithDatabase("bench_db"), postgres.WithUsername("bench"), postgres.WithPassword("bench"), @@ -82,6 +88,10 @@ func TestMain(m *testing.M) { log.Fatalf("failed to connect to database: %v", err) } + if err := database.RunMigrations(ctx, connStr, migrationsPath); err != nil { + log.Fatalf("failed to apply migrations: %v", err) + } + benchQueries = database.New(benchDB) setupTestData(ctx) @@ -135,6 +145,14 @@ func setupTestData(ctx context.Context) { } benchOrgID = org.Oid.String() + if err := benchQueries.AddOrgMember(ctx, database.AddOrgMemberParams{ + Uid: user.Uid, + Oid: org.Oid, + IsAdmin: pgtype.Bool{Bool: true, Valid: true}, + }); err != nil { + log.Fatalf("failed to add benchmark user as org admin: %v", err) + } + event, err := benchQueries.CreateEvent(ctx, database.CreateEventParams{ Location: pgtype.Text{String: "Bench Event", Valid: true}, EventTime: pgtype.Timestamp{Time: time.Now().Add(24 * time.Hour), Valid: true}, diff --git a/tests/integration/links_test.go b/tests/integration/links_test.go new file mode 100644 index 0000000..bead82a --- /dev/null +++ b/tests/integration/links_test.go @@ -0,0 +1,177 @@ +//go:build integration + +package integration + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "net/http" + "net/http/httptest" + "testing" + "time" + + "github.com/capyrpi/api/internal/config" + "github.com/capyrpi/api/internal/database" + "github.com/capyrpi/api/internal/dto" + "github.com/capyrpi/api/internal/handler" + "github.com/capyrpi/api/internal/middleware" + "github.com/capyrpi/api/internal/router" + "github.com/capyrpi/api/internal/testutils" + "github.com/golang-jwt/jwt/v5" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" +) + +func TestLinkFlow(t *testing.T) { + // 1. Setup DB and Server + pool := testutils.SetupTestDB(t) + defer pool.Close() + + queries := database.New(pool) + cfg := &config.Config{JWT: config.JWTConfig{Secret: "test-secret", ExpiryHours: 1}} + h := handler.New(queries, cfg) + r := router.New(h, queries, cfg.JWT.Secret, []string{}) + server := httptest.NewServer(r) + defer server.Close() + client := server.Client() + + // Disable redirects on the client so we can test the 302 response directly + client.CheckRedirect = func(req *http.Request, via []*http.Request) error { + return http.ErrUseLastResponse + } + + ctx := context.Background() + + // 2. Create User + user, err := queries.CreateUser(ctx, database.CreateUserParams{ + FirstName: "Link", + LastName: "Tester", + Role: database.NullUserRole{UserRole: database.UserRoleStudent, Valid: true}, + }) + require.NoError(t, err) + + // 3. Generate Auth Token + claims := middleware.UserClaims{ + UserID: user.Uid.String(), + RegisteredClaims: jwt.RegisteredClaims{ + ExpiresAt: jwt.NewNumericDate(time.Now().Add(time.Hour)), + }, + } + token := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) + tokenString, err := token.SignedString([]byte(cfg.JWT.Secret)) + require.NoError(t, err) + cookie := &http.Cookie{Name: "capy_auth", Value: tokenString} + + // 4. Create Organization + orgBody := []byte(`{"name":"Link Org","slug":"link-org"}`) + req, _ := http.NewRequest("POST", server.URL+"/v1/organizations", bytes.NewBuffer(orgBody)) + req.AddCookie(cookie) + req.Header.Set("Content-Type", "application/json") + resp, err := client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusCreated, resp.StatusCode) + + var orgResp dto.OrganizationResponse + err = json.NewDecoder(resp.Body).Decode(&orgResp) + require.NoError(t, err) + oid := orgResp.OID.String() + + // 5. Create Link + linkReq := dto.CreateLinkRequest{ + EndpointURL: "my-promo", + DestURL: "https://example.com/dest", + OrgID: orgResp.OID, + } + linkBody, _ := json.Marshal(linkReq) + req, _ = http.NewRequest("POST", server.URL+"/v1/links", bytes.NewBuffer(linkBody)) + req.AddCookie(cookie) + req.Header.Set("Content-Type", "application/json") + + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusCreated, resp.StatusCode) + + var linkResp dto.LinkResponse + err = json.NewDecoder(resp.Body).Decode(&linkResp) + require.NoError(t, err) + require.Equal(t, "my-promo", linkResp.EndpointURL) + lid := linkResp.LID.String() + + // 6. Resolve Link (Simulate user clicking it) + req, _ = http.NewRequest("GET", server.URL+"/r/my-promo", nil) + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + + // Check redirect status and location + assert.Equal(t, http.StatusFound, resp.StatusCode) + assert.Equal(t, "https://example.com/dest", resp.Header.Get("Location")) + + // Give the async goroutine a tiny bit of time to log the visit in DB + time.Sleep(100 * time.Millisecond) + + // 7. Check Visit Count + req, _ = http.NewRequest("GET", fmt.Sprintf("%s/v1/links/%s/visits", server.URL, lid), nil) + req.AddCookie(cookie) + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusOK, resp.StatusCode) + + var visitResp dto.VisitCountResponse + err = json.NewDecoder(resp.Body).Decode(&visitResp) + require.NoError(t, err) + assert.Equal(t, int64(1), visitResp.Count) + + // 8. Update Link + updateReq := dto.UpdateLinkRequest{ + EndpointURL: nil, + DestURL: toPtr("https://example.com/updated"), + } + updateBody, _ := json.Marshal(updateReq) + req, _ = http.NewRequest("PUT", fmt.Sprintf("%s/v1/links/%s", server.URL, lid), bytes.NewBuffer(updateBody)) + req.AddCookie(cookie) + req.Header.Set("Content-Type", "application/json") + + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusOK, resp.StatusCode) + + var updatedLink dto.LinkResponse + err = json.NewDecoder(resp.Body).Decode(&updatedLink) + require.NoError(t, err) + assert.Equal(t, "https://example.com/updated", updatedLink.DestURL) + + // 9. List Org Links + req, _ = http.NewRequest("GET", fmt.Sprintf("%s/v1/organizations/%s/links", server.URL, oid), nil) + req.AddCookie(cookie) + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusOK, resp.StatusCode) + + var links []dto.LinkResponse + err = json.NewDecoder(resp.Body).Decode(&links) + require.NoError(t, err) + require.Len(t, links, 1) + + // 10. Get QR Code + req, _ = http.NewRequest("GET", fmt.Sprintf("%s/v1/links/%s/qrcode", server.URL, lid), nil) + // We don't usually need auth for QR code, but the endpoint currently requires CookieAuth based on swagger tags + // Actually looking at router.go, /links/{lid}/qrcode is under protected group. + req.AddCookie(cookie) + resp, err = client.Do(req) + require.NoError(t, err) + defer resp.Body.Close() + require.Equal(t, http.StatusOK, resp.StatusCode) + assert.Equal(t, "image/png", resp.Header.Get("Content-Type")) +} + +func toPtr(s string) *string { + return &s +}