diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/db.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/db.go new file mode 100644 index 0000000000..6c6a7eb822 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/db.go @@ -0,0 +1,32 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 + +package querytest + +import ( + "context" + + "github.com/jackc/pgconn" + "github.com/jackc/pgx/v4" +) + +type DBTX interface { + Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) + Query(context.Context, string, ...interface{}) (pgx.Rows, error) + QueryRow(context.Context, string, ...interface{}) pgx.Row +} + +func New(db DBTX) *Queries { + return &Queries{db: db} +} + +type Queries struct { + db DBTX +} + +func (q *Queries) WithTx(tx pgx.Tx) *Queries { + return &Queries{ + db: tx, + } +} diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/models.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/models.go new file mode 100644 index 0000000000..ba134fec22 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/models.go @@ -0,0 +1,7 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 + +package querytest + +import () diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/query.sql.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/query.sql.go new file mode 100644 index 0000000000..494d73e888 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/go/query.sql.go @@ -0,0 +1,47 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 +// source: query.sql + +package querytest + +import ( + "context" + "database/sql" +) + +const getTimezones = `-- name: GetTimezones :many +SELECT is_dst, name, utc_offset, abbrev from pg_catalog.pg_timezone_names +` + +type GetTimezonesRow struct { + IsDst sql.NullBool + Name sql.NullString + UtcOffset sql.NullInt64 + Abbrev sql.NullString +} + +func (q *Queries) GetTimezones(ctx context.Context) ([]GetTimezonesRow, error) { + rows, err := q.db.Query(ctx, getTimezones) + if err != nil { + return nil, err + } + defer rows.Close() + var items []GetTimezonesRow + for rows.Next() { + var i GetTimezonesRow + if err := rows.Scan( + &i.IsDst, + &i.Name, + &i.UtcOffset, + &i.Abbrev, + ); err != nil { + return nil, err + } + items = append(items, i) + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/query.sql b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/query.sql new file mode 100644 index 0000000000..26f435b163 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/query.sql @@ -0,0 +1,2 @@ +-- name: GetTimezones :many +SELECT * from pg_catalog.pg_timezone_names; diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/sqlc.json b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/sqlc.json new file mode 100644 index 0000000000..9403bd0279 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/pgx/sqlc.json @@ -0,0 +1,13 @@ +{ + "version": "1", + "packages": [ + { + "path": "go", + "engine": "postgresql", + "sql_package": "pgx/v4", + "name": "querytest", + "schema": "query.sql", + "queries": "query.sql" + } + ] +} diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/db.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/db.go new file mode 100644 index 0000000000..19557a6a5a --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/db.go @@ -0,0 +1,31 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 + +package querytest + +import ( + "context" + "database/sql" +) + +type DBTX interface { + ExecContext(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext(context.Context, string) (*sql.Stmt, error) + QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext(context.Context, string, ...interface{}) *sql.Row +} + +func New(db DBTX) *Queries { + return &Queries{db: db} +} + +type Queries struct { + db DBTX +} + +func (q *Queries) WithTx(tx *sql.Tx) *Queries { + return &Queries{ + db: tx, + } +} diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/models.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/models.go new file mode 100644 index 0000000000..ba134fec22 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/models.go @@ -0,0 +1,7 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 + +package querytest + +import () diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/query.sql.go b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/query.sql.go new file mode 100644 index 0000000000..db08626415 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/go/query.sql.go @@ -0,0 +1,50 @@ +// Code generated by sqlc. DO NOT EDIT. +// versions: +// sqlc v1.14.0 +// source: query.sql + +package querytest + +import ( + "context" + "database/sql" +) + +const getTimezones = `-- name: GetTimezones :many +SELECT is_dst, name, utc_offset, abbrev from pg_catalog.pg_timezone_names +` + +type GetTimezonesRow struct { + IsDst sql.NullBool + Name sql.NullString + UtcOffset sql.NullInt64 + Abbrev sql.NullString +} + +func (q *Queries) GetTimezones(ctx context.Context) ([]GetTimezonesRow, error) { + rows, err := q.db.QueryContext(ctx, getTimezones) + if err != nil { + return nil, err + } + defer rows.Close() + var items []GetTimezonesRow + for rows.Next() { + var i GetTimezonesRow + if err := rows.Scan( + &i.IsDst, + &i.Name, + &i.UtcOffset, + &i.Abbrev, + ); err != nil { + return nil, err + } + items = append(items, i) + } + if err := rows.Close(); err != nil { + return nil, err + } + if err := rows.Err(); err != nil { + return nil, err + } + return items, nil +} diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/query.sql b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/query.sql new file mode 100644 index 0000000000..26f435b163 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/query.sql @@ -0,0 +1,2 @@ +-- name: GetTimezones :many +SELECT * from pg_catalog.pg_timezone_names; diff --git a/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/sqlc.json b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/sqlc.json new file mode 100644 index 0000000000..c72b6132d5 --- /dev/null +++ b/internal/endtoend/testdata/pg_timezone_names/postgresql/stdlib/sqlc.json @@ -0,0 +1,12 @@ +{ + "version": "1", + "packages": [ + { + "path": "go", + "engine": "postgresql", + "name": "querytest", + "schema": "query.sql", + "queries": "query.sql" + } + ] +} diff --git a/internal/engine/postgresql/contrib/adminpack.go b/internal/engine/postgresql/contrib/adminpack.go index 45cd9a1e38..9364a0dbfc 100644 --- a/internal/engine/postgresql/contrib/adminpack.go +++ b/internal/engine/postgresql/contrib/adminpack.go @@ -19,9 +19,6 @@ func Adminpack() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -34,9 +31,21 @@ func Adminpack() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "pg_file_sync", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "void"}, + }, { Name: "pg_file_unlink", Args: []*catalog.Argument{ diff --git a/internal/engine/postgresql/contrib/citext.go b/internal/engine/postgresql/contrib/citext.go index f0c7519dc7..d32fcb60ed 100644 --- a/internal/engine/postgresql/contrib/citext.go +++ b/internal/engine/postgresql/contrib/citext.go @@ -23,7 +23,7 @@ func Citext() *catalog.Schema { Name: "citext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "character"}, }, }, ReturnType: &ast.TypeName{Name: "citext"}, @@ -32,7 +32,7 @@ func Citext() *catalog.Schema { Name: "citext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "citext"}, @@ -254,21 +254,13 @@ func Citext() *catalog.Schema { ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "max", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "citext"}, - }, - }, + Name: "max", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "citext"}, }, { - Name: "min", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "citext"}, - }, - }, + Name: "min", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "citext"}, }, { @@ -307,9 +299,6 @@ func Citext() *catalog.Schema { { Type: &ast.TypeName{Name: "citext"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -322,6 +311,9 @@ func Citext() *catalog.Schema { { Type: &ast.TypeName{Name: "citext"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -367,9 +359,6 @@ func Citext() *catalog.Schema { { Type: &ast.TypeName{Name: "citext"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -382,6 +371,9 @@ func Citext() *catalog.Schema { { Type: &ast.TypeName{Name: "citext"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -485,7 +477,7 @@ func Citext() *catalog.Schema { Type: &ast.TypeName{Name: "citext"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "citext"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -497,7 +489,7 @@ func Citext() *catalog.Schema { Type: &ast.TypeName{Name: "citext"}, }, { - Type: &ast.TypeName{Name: "citext"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, diff --git a/internal/engine/postgresql/contrib/cube.go b/internal/engine/postgresql/contrib/cube.go index 687eb93e2c..90373f822a 100644 --- a/internal/engine/postgresql/contrib/cube.go +++ b/internal/engine/postgresql/contrib/cube.go @@ -14,7 +14,7 @@ func Cube() *catalog.Schema { Name: "cube", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "cube"}, }, { Type: &ast.TypeName{Name: "double precision"}, @@ -26,10 +26,13 @@ func Cube() *catalog.Schema { Name: "cube", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision[]"}, + Type: &ast.TypeName{Name: "cube"}, }, { - Type: &ast.TypeName{Name: "double precision[]"}, + Type: &ast.TypeName{Name: "double precision"}, + }, + { + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "cube"}, @@ -38,7 +41,7 @@ func Cube() *catalog.Schema { Name: "cube", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision[]"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "cube"}, @@ -46,9 +49,6 @@ func Cube() *catalog.Schema { { Name: "cube", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cube"}, - }, { Type: &ast.TypeName{Name: "double precision"}, }, @@ -62,7 +62,7 @@ func Cube() *catalog.Schema { Name: "cube", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "double precision[]"}, }, }, ReturnType: &ast.TypeName{Name: "cube"}, @@ -71,10 +71,10 @@ func Cube() *catalog.Schema { Name: "cube", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cube"}, + Type: &ast.TypeName{Name: "double precision[]"}, }, { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "double precision[]"}, }, }, ReturnType: &ast.TypeName{Name: "cube"}, diff --git a/internal/engine/postgresql/contrib/dblink.go b/internal/engine/postgresql/contrib/dblink.go index c5208cf1e2..94c15ca8a9 100644 --- a/internal/engine/postgresql/contrib/dblink.go +++ b/internal/engine/postgresql/contrib/dblink.go @@ -16,12 +16,6 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -32,7 +26,7 @@ func Dblink() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "record"}, @@ -44,7 +38,7 @@ func Dblink() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "record"}, @@ -55,6 +49,12 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -133,9 +133,6 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -145,6 +142,9 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -157,15 +157,15 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "dblink_close", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -310,18 +310,12 @@ func Dblink() *catalog.Schema { { Name: "dblink_fetch", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "text"}, - }, { Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -332,10 +326,10 @@ func Dblink() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "record"}, @@ -347,10 +341,10 @@ func Dblink() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "record"}, @@ -358,12 +352,18 @@ func Dblink() *catalog.Schema { { Name: "dblink_fetch", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, { Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -387,9 +387,6 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -399,6 +396,9 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -420,12 +420,6 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -438,6 +432,9 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -451,7 +448,7 @@ func Dblink() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -468,6 +465,9 @@ func Dblink() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, diff --git a/internal/engine/postgresql/contrib/fuzzystrmatch.go b/internal/engine/postgresql/contrib/fuzzystrmatch.go index b2174ebf03..95002247c0 100644 --- a/internal/engine/postgresql/contrib/fuzzystrmatch.go +++ b/internal/engine/postgresql/contrib/fuzzystrmatch.go @@ -85,15 +85,6 @@ func Fuzzystrmatch() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -109,6 +100,15 @@ func Fuzzystrmatch() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, diff --git a/internal/engine/postgresql/contrib/hstore.go b/internal/engine/postgresql/contrib/hstore.go index a3ad1b27a9..3bd9f6a8ba 100644 --- a/internal/engine/postgresql/contrib/hstore.go +++ b/internal/engine/postgresql/contrib/hstore.go @@ -47,7 +47,7 @@ func Hstore() *catalog.Schema { Type: &ast.TypeName{Name: "hstore"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "hstore"}, }, }, ReturnType: &ast.TypeName{Name: "hstore"}, @@ -59,7 +59,7 @@ func Hstore() *catalog.Schema { Type: &ast.TypeName{Name: "hstore"}, }, { - Type: &ast.TypeName{Name: "text[]"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "hstore"}, @@ -71,7 +71,7 @@ func Hstore() *catalog.Schema { Type: &ast.TypeName{Name: "hstore"}, }, { - Type: &ast.TypeName{Name: "hstore"}, + Type: &ast.TypeName{Name: "text[]"}, }, }, ReturnType: &ast.TypeName{Name: "hstore"}, @@ -191,7 +191,10 @@ func Hstore() *catalog.Schema { Name: "hstore", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text[]"}, + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "hstore"}, @@ -202,9 +205,6 @@ func Hstore() *catalog.Schema { { Type: &ast.TypeName{Name: "text[]"}, }, - { - Type: &ast.TypeName{Name: "text[]"}, - }, }, ReturnType: &ast.TypeName{Name: "hstore"}, }, @@ -212,10 +212,10 @@ func Hstore() *catalog.Schema { Name: "hstore", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "text[]"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "text[]"}, }, }, ReturnType: &ast.TypeName{Name: "hstore"}, diff --git a/internal/engine/postgresql/contrib/intagg.go b/internal/engine/postgresql/contrib/intagg.go index 7e3591ac5c..690b0a2b98 100644 --- a/internal/engine/postgresql/contrib/intagg.go +++ b/internal/engine/postgresql/contrib/intagg.go @@ -11,12 +11,8 @@ func Intagg() *catalog.Schema { s := &catalog.Schema{Name: "pg_catalog"} s.Funcs = []*catalog.Function{ { - Name: "int_array_aggregate", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "int_array_aggregate", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "integer[]"}, }, { diff --git a/internal/engine/postgresql/contrib/intarray.go b/internal/engine/postgresql/contrib/intarray.go index 9fb23b0d28..532886e63b 100644 --- a/internal/engine/postgresql/contrib/intarray.go +++ b/internal/engine/postgresql/contrib/intarray.go @@ -301,9 +301,6 @@ func Intarray() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "integer[]"}, }, @@ -316,6 +313,9 @@ func Intarray() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "integer[]"}, }, diff --git a/internal/engine/postgresql/contrib/isn.go b/internal/engine/postgresql/contrib/isn.go index ab49dc3a3e..daaafbce73 100644 --- a/internal/engine/postgresql/contrib/isn.go +++ b/internal/engine/postgresql/contrib/isn.go @@ -29,7 +29,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -41,7 +41,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -53,7 +53,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -65,7 +65,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -77,7 +77,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -89,7 +89,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -101,7 +101,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -113,7 +113,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -125,7 +125,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -137,7 +137,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -185,7 +185,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -197,7 +197,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -221,7 +221,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -233,7 +233,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -245,7 +245,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -293,7 +293,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -317,7 +317,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -359,7 +359,7 @@ func Isn() *catalog.Schema { Name: "ean13_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -377,7 +377,7 @@ func Isn() *catalog.Schema { Name: "ean13_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -386,7 +386,7 @@ func Isn() *catalog.Schema { Name: "ean13_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -467,7 +467,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -476,7 +476,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -494,7 +494,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -503,7 +503,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -512,7 +512,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -521,7 +521,7 @@ func Isn() *catalog.Schema { Name: "is_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -611,7 +611,7 @@ func Isn() *catalog.Schema { Name: "isn_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -620,7 +620,7 @@ func Isn() *catalog.Schema { Name: "isn_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -629,7 +629,7 @@ func Isn() *catalog.Schema { Name: "isn_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -638,21 +638,33 @@ func Isn() *catalog.Schema { Name: "isn_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, }, + { + Name: "isn_weak", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "isn_weak", Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isn_weak", + Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "ean13"}, + }, + { + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -664,7 +676,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -676,7 +688,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -688,7 +700,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -712,7 +724,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -724,7 +736,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -736,7 +748,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -745,10 +757,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -757,10 +769,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -769,10 +781,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -793,7 +805,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { Type: &ast.TypeName{Name: "isbn"}, @@ -805,7 +817,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { Type: &ast.TypeName{Name: "isbn13"}, @@ -817,7 +829,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -829,10 +841,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -841,10 +853,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -865,7 +877,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { Type: &ast.TypeName{Name: "ismn"}, @@ -877,7 +889,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { Type: &ast.TypeName{Name: "ismn13"}, @@ -889,7 +901,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "issn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -901,10 +913,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -913,10 +925,10 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -937,7 +949,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "issn"}, @@ -949,7 +961,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "issn13"}, @@ -961,7 +973,7 @@ func Isn() *catalog.Schema { Name: "isneq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -982,10 +994,10 @@ func Isn() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isneq", + Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -997,10 +1009,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1012,7 +1024,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1021,7 +1033,7 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { Type: &ast.TypeName{Name: "ismn"}, @@ -1036,7 +1048,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1045,10 +1057,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1060,7 +1072,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1069,10 +1081,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1084,7 +1096,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1093,10 +1105,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1105,10 +1117,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1117,10 +1129,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1129,10 +1141,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1144,7 +1156,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1153,7 +1165,7 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1168,7 +1180,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1177,10 +1189,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1189,10 +1201,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1201,10 +1213,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1228,7 +1240,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1237,10 +1249,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1249,10 +1261,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1261,7 +1273,7 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1276,7 +1288,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1285,10 +1297,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1297,10 +1309,10 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1309,22 +1321,22 @@ func Isn() *catalog.Schema { Name: "isnge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isnge", + Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1333,10 +1345,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1345,10 +1357,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1357,10 +1369,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1369,10 +1381,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1381,7 +1393,7 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { Type: &ast.TypeName{Name: "issn"}, @@ -1393,10 +1405,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1408,7 +1420,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1417,10 +1429,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1429,10 +1441,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1453,10 +1465,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1465,10 +1477,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1477,10 +1489,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1489,7 +1501,7 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1513,10 +1525,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1525,7 +1537,7 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1537,10 +1549,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1549,10 +1561,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1561,10 +1573,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1573,10 +1585,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1585,10 +1597,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1597,10 +1609,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1609,10 +1621,10 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1636,7 +1648,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1645,16 +1657,16 @@ func Isn() *catalog.Schema { Name: "isngt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isngt", + Name: "isnle", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "ean13"}, @@ -1668,24 +1680,12 @@ func Isn() *catalog.Schema { { Name: "isnle", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "issn13"}, - }, { Type: &ast.TypeName{Name: "ean13"}, }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "isnle", - Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "isbn"}, }, - { - Type: &ast.TypeName{Name: "ean13"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -1693,10 +1693,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1705,7 +1705,7 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { Type: &ast.TypeName{Name: "ismn"}, @@ -1717,10 +1717,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1729,10 +1729,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1741,10 +1741,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1756,7 +1756,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1765,7 +1765,7 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1777,10 +1777,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1789,10 +1789,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1801,10 +1801,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1813,10 +1813,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1825,10 +1825,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1837,7 +1837,7 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -1849,10 +1849,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1861,10 +1861,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1873,10 +1873,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1885,10 +1885,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1897,10 +1897,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1908,24 +1908,12 @@ func Isn() *catalog.Schema { { Name: "isnle", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "ean13"}, - }, { Type: &ast.TypeName{Name: "issn"}, }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "isnle", - Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "ean13"}, }, - { - Type: &ast.TypeName{Name: "ismn"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -1933,10 +1921,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1945,7 +1933,7 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, { Type: &ast.TypeName{Name: "issn13"}, @@ -1957,10 +1945,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1969,10 +1957,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1981,10 +1969,10 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1993,22 +1981,22 @@ func Isn() *catalog.Schema { Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isnlt", + Name: "isnle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2017,10 +2005,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2032,7 +2020,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2041,10 +2029,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2053,7 +2041,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { Type: &ast.TypeName{Name: "ismn"}, @@ -2065,10 +2053,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2077,10 +2065,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2092,7 +2080,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2101,10 +2089,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2113,7 +2101,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -2125,10 +2113,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2137,7 +2125,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { Type: &ast.TypeName{Name: "isbn13"}, @@ -2149,10 +2137,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2161,10 +2149,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2173,10 +2161,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2185,7 +2173,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -2197,10 +2185,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2209,7 +2197,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ismn13"}, @@ -2221,10 +2209,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2233,10 +2221,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2248,7 +2236,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2257,7 +2245,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "issn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -2269,10 +2257,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2281,10 +2269,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2293,10 +2281,10 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2305,7 +2293,7 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "issn"}, @@ -2329,22 +2317,22 @@ func Isn() *catalog.Schema { Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "isnne", + Name: "isnlt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2353,10 +2341,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2365,10 +2353,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2377,10 +2365,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2392,7 +2380,7 @@ func Isn() *catalog.Schema { Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2401,10 +2389,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2413,10 +2401,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2425,10 +2413,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2437,10 +2425,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2449,10 +2437,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2461,10 +2449,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2473,10 +2461,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "isbn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2485,10 +2473,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "ismn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2497,10 +2485,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2509,10 +2497,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2521,7 +2509,7 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -2533,10 +2521,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "ismn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2545,10 +2533,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn"}, }, { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2557,10 +2545,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2581,10 +2569,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2592,11 +2580,23 @@ func Isn() *catalog.Schema { { Name: "isnne", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "issn"}, + }, { Type: &ast.TypeName{Name: "ean13"}, }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "isnne", + Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn"}, + }, + { + Type: &ast.TypeName{Name: "issn"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2605,10 +2605,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn"}, }, { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2617,10 +2617,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn13"}, }, { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2629,7 +2629,7 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "issn"}, @@ -2641,7 +2641,7 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "issn13"}, }, { Type: &ast.TypeName{Name: "issn13"}, @@ -2653,7 +2653,7 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "upc"}, }, { Type: &ast.TypeName{Name: "ean13"}, @@ -2665,10 +2665,10 @@ func Isn() *catalog.Schema { Name: "isnne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "upc"}, }, { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -2713,28 +2713,28 @@ func Isn() *catalog.Schema { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ismn13"}, + Type: &ast.TypeName{Name: "ean13"}, }, }, - ReturnType: &ast.TypeName{Name: "ismn13"}, + ReturnType: &ast.TypeName{Name: "ean13"}, }, { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "ean13"}, + Type: &ast.TypeName{Name: "isbn"}, }, }, - ReturnType: &ast.TypeName{Name: "ean13"}, + ReturnType: &ast.TypeName{Name: "isbn"}, }, { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn"}, + Type: &ast.TypeName{Name: "isbn13"}, }, }, - ReturnType: &ast.TypeName{Name: "isbn"}, + ReturnType: &ast.TypeName{Name: "isbn13"}, }, { Name: "make_valid", @@ -2749,37 +2749,37 @@ func Isn() *catalog.Schema { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn"}, + Type: &ast.TypeName{Name: "ismn13"}, }, }, - ReturnType: &ast.TypeName{Name: "issn"}, + ReturnType: &ast.TypeName{Name: "ismn13"}, }, { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "isbn13"}, + Type: &ast.TypeName{Name: "issn"}, }, }, - ReturnType: &ast.TypeName{Name: "isbn13"}, + ReturnType: &ast.TypeName{Name: "issn"}, }, { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "upc"}, + Type: &ast.TypeName{Name: "issn13"}, }, }, - ReturnType: &ast.TypeName{Name: "upc"}, + ReturnType: &ast.TypeName{Name: "issn13"}, }, { Name: "make_valid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "issn13"}, + Type: &ast.TypeName{Name: "upc"}, }, }, - ReturnType: &ast.TypeName{Name: "issn13"}, + ReturnType: &ast.TypeName{Name: "upc"}, }, { Name: "upc", diff --git a/internal/engine/postgresql/contrib/ltree.go b/internal/engine/postgresql/contrib/ltree.go index aabc28ae61..ce7839449a 100644 --- a/internal/engine/postgresql/contrib/ltree.go +++ b/internal/engine/postgresql/contrib/ltree.go @@ -187,9 +187,6 @@ func Ltree() *catalog.Schema { { Type: &ast.TypeName{Name: "ltree"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -202,6 +199,9 @@ func Ltree() *catalog.Schema { { Type: &ast.TypeName{Name: "ltree"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -217,15 +217,6 @@ func Ltree() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "ltree"}, }, - { - Name: "lca", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "ltree[]"}, - }, - }, - ReturnType: &ast.TypeName{Name: "ltree"}, - }, { Name: "lca", Args: []*catalog.Argument{ @@ -361,6 +352,15 @@ func Ltree() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "ltree"}, }, + { + Name: "lca", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "ltree[]"}, + }, + }, + ReturnType: &ast.TypeName{Name: "ltree"}, + }, { Name: "lquery_in", Args: []*catalog.Argument{ @@ -379,6 +379,15 @@ func Ltree() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "cstring"}, }, + { + Name: "lquery_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "lquery"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, { Name: "lt_q_regex", Args: []*catalog.Argument{ @@ -604,6 +613,15 @@ func Ltree() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "ltree_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "ltree"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, { Name: "ltree_textadd", Args: []*catalog.Argument{ @@ -658,6 +676,15 @@ func Ltree() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "ltxtq_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "ltxtquery"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, { Name: "nlevel", Args: []*catalog.Argument{ diff --git a/internal/engine/postgresql/contrib/pageinspect.go b/internal/engine/postgresql/contrib/pageinspect.go index 61e838e715..dc3713de75 100644 --- a/internal/engine/postgresql/contrib/pageinspect.go +++ b/internal/engine/postgresql/contrib/pageinspect.go @@ -104,10 +104,6 @@ func Pageinspect() *catalog.Schema { Name: "t_bits", Type: &ast.TypeName{Name: "text"}, }, - { - Name: "do_detoast", - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea[]"}, }, @@ -134,6 +130,10 @@ func Pageinspect() *catalog.Schema { Name: "t_bits", Type: &ast.TypeName{Name: "text"}, }, + { + Name: "do_detoast", + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea[]"}, }, diff --git a/internal/engine/postgresql/contrib/pgcrypto.go b/internal/engine/postgresql/contrib/pgcrypto.go index 5a2468c4e6..ef41cea152 100644 --- a/internal/engine/postgresql/contrib/pgcrypto.go +++ b/internal/engine/postgresql/contrib/pgcrypto.go @@ -16,12 +16,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, - { - Type: &ast.TypeName{Name: "text[]"}, - }, - { - Type: &ast.TypeName{Name: "text[]"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -31,6 +25,12 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -92,7 +92,7 @@ func Pgcrypto() *catalog.Schema { Name: "digest", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -104,7 +104,7 @@ func Pgcrypto() *catalog.Schema { Name: "digest", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -154,11 +154,6 @@ func Pgcrypto() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "bytea"}, }, - { - Name: "gen_random_uuid", - Args: []*catalog.Argument{}, - ReturnType: &ast.TypeName{Name: "uuid"}, - }, { Name: "gen_salt", Args: []*catalog.Argument{ @@ -184,10 +179,10 @@ func Pgcrypto() *catalog.Schema { Name: "hmac", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -199,10 +194,10 @@ func Pgcrypto() *catalog.Schema { Name: "hmac", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -243,9 +238,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -261,6 +253,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -273,12 +268,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -291,6 +280,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -306,6 +298,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -318,9 +313,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -333,6 +325,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -372,9 +367,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -387,6 +379,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -426,9 +421,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -441,6 +433,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -453,9 +448,6 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -468,6 +460,9 @@ func Pgcrypto() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, diff --git a/internal/engine/postgresql/contrib/pgstattuple.go b/internal/engine/postgresql/contrib/pgstattuple.go index 2c128f9c38..7ec32c9d26 100644 --- a/internal/engine/postgresql/contrib/pgstattuple.go +++ b/internal/engine/postgresql/contrib/pgstattuple.go @@ -15,7 +15,7 @@ func Pgstattuple() *catalog.Schema { Args: []*catalog.Argument{ { Name: "relname", - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "regclass"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -25,7 +25,7 @@ func Pgstattuple() *catalog.Schema { Args: []*catalog.Argument{ { Name: "relname", - Type: &ast.TypeName{Name: "regclass"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, diff --git a/internal/engine/postgresql/contrib/tablefunc.go b/internal/engine/postgresql/contrib/tablefunc.go index 1c8af295dd..27a1687452 100644 --- a/internal/engine/postgresql/contrib/tablefunc.go +++ b/internal/engine/postgresql/contrib/tablefunc.go @@ -112,9 +112,6 @@ func Tablefunc() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "record"}, }, @@ -124,6 +121,9 @@ func Tablefunc() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "record"}, }, diff --git a/internal/engine/postgresql/contrib/xml2.go b/internal/engine/postgresql/contrib/xml2.go index 9de8ba30d8..0b251471f6 100644 --- a/internal/engine/postgresql/contrib/xml2.go +++ b/internal/engine/postgresql/contrib/xml2.go @@ -49,9 +49,6 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -64,6 +61,9 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -76,12 +76,6 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -94,6 +88,9 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -109,6 +106,9 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -166,9 +166,6 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -181,6 +178,9 @@ func Xml2() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, diff --git a/internal/engine/postgresql/pg_catalog.go b/internal/engine/postgresql/pg_catalog.go index f0a5bf92fa..a0b5374bb3 100644 --- a/internal/engine/postgresql/pg_catalog.go +++ b/internal/engine/postgresql/pg_catalog.go @@ -7,6 +7,12 @@ import ( "github.com/kyleconroy/sqlc/internal/sql/catalog" ) +// toPointer converts an int to a pointer without a temporary +// variable at the call-site +func toPointer(x int) *int { + return &x +} + func genPGCatalog() *catalog.Schema { s := &catalog.Schema{Name: "pg_catalog"} s.Funcs = []*catalog.Function{ @@ -74,7 +80,7 @@ func genPGCatalog() *catalog.Schema { Name: "abbrev", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "cidr"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -83,7 +89,7 @@ func genPGCatalog() *catalog.Schema { Name: "abbrev", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cidr"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -92,28 +98,28 @@ func genPGCatalog() *catalog.Schema { Name: "abs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { Name: "abs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "abs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "smallint"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { Name: "abs", @@ -128,19 +134,19 @@ func genPGCatalog() *catalog.Schema { Name: "abs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "real"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "real"}, }, { Name: "abs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "smallint"}, }, }, - ReturnType: &ast.TypeName{Name: "real"}, + ReturnType: &ast.TypeName{Name: "smallint"}, }, { Name: "aclcontains", @@ -251,16 +257,16 @@ func genPGCatalog() *catalog.Schema { Name: "age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "xid"}, }, }, - ReturnType: &ast.TypeName{Name: "interval"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { Name: "age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "interval"}, @@ -269,10 +275,10 @@ func genPGCatalog() *catalog.Schema { Name: "age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "interval"}, @@ -281,19 +287,19 @@ func genPGCatalog() *catalog.Schema { Name: "age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "interval"}, }, { Name: "age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "interval"}, @@ -352,6 +358,93 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "bytea"}, }, + { + Name: "anycompatible_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anycompatible"}, + }, + { + Name: "anycompatible_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anycompatible"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "anycompatiblearray_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anycompatiblearray"}, + }, + { + Name: "anycompatiblearray_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anycompatiblearray"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "anycompatiblearray_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anycompatiblearray"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "anycompatiblenonarray_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anycompatiblenonarray"}, + }, + { + Name: "anycompatiblenonarray_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anycompatiblenonarray"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "anycompatiblerange_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anycompatiblerange"}, + }, + { + Name: "anycompatiblerange_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anycompatiblerange"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, { Name: "anyelement_in", Args: []*catalog.Argument{ @@ -446,7 +539,7 @@ func genPGCatalog() *catalog.Schema { Name: "area", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -455,7 +548,7 @@ func genPGCatalog() *catalog.Schema { Name: "area", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "path"}, + Type: &ast.TypeName{Name: "circle"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -464,27 +557,19 @@ func genPGCatalog() *catalog.Schema { Name: "area", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "path"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "array_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "anyarray"}, - }, - }, + Name: "array_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "anyarray"}, }, { - Name: "array_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "anynonarray"}, - }, - }, + Name: "array_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "anyarray"}, }, { @@ -541,9 +626,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer[]"}, }, - { - Type: &ast.TypeName{Name: "integer[]"}, - }, }, ReturnType: &ast.TypeName{Name: "anyarray"}, }, @@ -556,6 +638,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer[]"}, }, + { + Type: &ast.TypeName{Name: "integer[]"}, + }, }, ReturnType: &ast.TypeName{Name: "anyarray"}, }, @@ -697,9 +782,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "anyelement"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -712,6 +794,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "anyelement"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -793,9 +878,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "anyarray"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "json"}, }, @@ -805,6 +887,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "anyarray"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "json"}, }, @@ -817,9 +902,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -832,6 +914,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -980,67 +1065,39 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, + Name: "avg", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "avg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "interval"}, - }, - }, + Name: "avg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "interval"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, + Name: "avg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, + Name: "avg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "avg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, + Name: "avg", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "avg", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "binary_upgrade_create_empty_extension", @@ -1181,64 +1238,48 @@ func genPGCatalog() *catalog.Schema { Name: "bit", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bit"}, }, { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "bit"}, }, { Name: "bit", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bit"}, - }, { Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "bit"}, }, { - Name: "bit_and", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, + Name: "bit_and", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "bit_and", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "smallint"}, + Name: "bit_and", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { - Name: "bit_and", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "bit_and", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "bit_and", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bit"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bit"}, + Name: "bit_and", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "smallint"}, }, { Name: "bit_in", @@ -1283,40 +1324,24 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "bit_or", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "smallint"}, + Name: "bit_or", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "bit_or", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, + Name: "bit_or", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { - Name: "bit_or", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bit"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bit"}, + Name: "bit_or", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "bit_or", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bigint"}, + Name: "bit_or", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "smallint"}, }, { Name: "bit_out", @@ -1523,7 +1548,7 @@ func genPGCatalog() *catalog.Schema { Name: "bool", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -1532,27 +1557,19 @@ func genPGCatalog() *catalog.Schema { Name: "bool", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "bool_and", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "boolean"}, - }, - }, + Name: "bool_and", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "bool_or", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "boolean"}, - }, - }, + Name: "bool_or", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "boolean"}, }, { @@ -1694,7 +1711,7 @@ func genPGCatalog() *catalog.Schema { Name: "box", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "polygon"}, + Type: &ast.TypeName{Name: "circle"}, }, }, ReturnType: &ast.TypeName{Name: "box"}, @@ -1724,7 +1741,7 @@ func genPGCatalog() *catalog.Schema { Name: "box", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "polygon"}, }, }, ReturnType: &ast.TypeName{Name: "box"}, @@ -2081,13 +2098,7 @@ func genPGCatalog() *catalog.Schema { Name: "bpchar", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "char"}, }, }, ReturnType: &ast.TypeName{Name: "character"}, @@ -2096,7 +2107,13 @@ func genPGCatalog() *catalog.Schema { Name: "bpchar", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "character"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "character"}, @@ -2105,7 +2122,7 @@ func genPGCatalog() *catalog.Schema { Name: "bpchar", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "char"}, + Type: &ast.TypeName{Name: "name"}, }, }, ReturnType: &ast.TypeName{Name: "character"}, @@ -2503,6 +2520,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "integer"}, }, + { + Name: "btequalimage", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "btfloat48cmp", Args: []*catalog.Argument{ @@ -2735,13 +2761,13 @@ func genPGCatalog() *catalog.Schema { Name: "btrim", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { Name: "btrim", @@ -2756,13 +2782,13 @@ func genPGCatalog() *catalog.Schema { Name: "btrim", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "bttext_pattern_cmp", @@ -2812,6 +2838,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "integer"}, }, + { + Name: "btvarstrequalimage", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "byteacat", Args: []*catalog.Argument{ @@ -3281,19 +3316,19 @@ func genPGCatalog() *catalog.Schema { Name: "ceil", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "ceil", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "ceiling", @@ -3335,7 +3370,7 @@ func genPGCatalog() *catalog.Schema { Name: "char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "char"}, @@ -3344,7 +3379,7 @@ func genPGCatalog() *catalog.Schema { Name: "char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "char"}, @@ -3572,10 +3607,7 @@ func genPGCatalog() *catalog.Schema { Name: "circle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "circle"}, @@ -3584,7 +3616,10 @@ func genPGCatalog() *catalog.Schema { Name: "circle", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "circle"}, @@ -4075,15 +4110,8 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "corr", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "corr", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { @@ -4132,12 +4160,8 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "count", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - }, - }, + Name: "count", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "bigint"}, }, { @@ -4146,27 +4170,13 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "covar_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "covar_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "covar_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "covar_samp", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { @@ -4231,9 +4241,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -4243,6 +4250,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -4390,7 +4400,7 @@ func genPGCatalog() *catalog.Schema { Name: "date", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "date"}, @@ -4399,7 +4409,7 @@ func genPGCatalog() *catalog.Schema { Name: "date", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "date"}, @@ -4729,7 +4739,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4741,7 +4751,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4753,7 +4763,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4765,7 +4775,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4777,7 +4787,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4789,7 +4799,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "time with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -4846,10 +4856,10 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + ReturnType: &ast.TypeName{Name: "interval"}, }, { Name: "date_trunc", @@ -4858,10 +4868,10 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, }, { Name: "date_trunc", @@ -4872,9 +4882,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "timestamp with time zone"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, @@ -4885,10 +4892,13 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "interval"}, + ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, { Name: "daterange", @@ -5025,82 +5035,82 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_cpoint", + Name: "dist_bl", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "box"}, }, { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "line"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_cpoly", + Name: "dist_bp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "box"}, }, { - Type: &ast.TypeName{Name: "polygon"}, + Type: &ast.TypeName{Name: "point"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_lb", + Name: "dist_bs", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "line"}, + Type: &ast.TypeName{Name: "box"}, }, { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "lseg"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_pb", + Name: "dist_cpoint", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "circle"}, }, { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "point"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_pc", + Name: "dist_cpoly", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "circle"}, }, { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "polygon"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_pl", + Name: "dist_lb", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "line"}, }, { - Type: &ast.TypeName{Name: "line"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_polyp", + Name: "dist_lp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "polygon"}, + Type: &ast.TypeName{Name: "line"}, }, { Type: &ast.TypeName{Name: "point"}, @@ -5109,58 +5119,58 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_ppath", + Name: "dist_ls", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "line"}, }, { - Type: &ast.TypeName{Name: "path"}, + Type: &ast.TypeName{Name: "lseg"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_ppoly", + Name: "dist_pathp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "path"}, }, { - Type: &ast.TypeName{Name: "polygon"}, + Type: &ast.TypeName{Name: "point"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_ps", + Name: "dist_pb", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "point"}, }, { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_sb", + Name: "dist_pc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "point"}, }, { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "circle"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dist_sl", + Name: "dist_pl", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "point"}, }, { Type: &ast.TypeName{Name: "line"}, @@ -5169,25 +5179,121 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "div", + Name: "dist_polyc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "polygon"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "circle"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "dlog1", + Name: "dist_polyp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "polygon"}, }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, + { + Type: &ast.TypeName{Name: "point"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_ppath", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "path"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_ppoly", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "polygon"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_ps", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "lseg"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_sb", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "lseg"}, + }, + { + Type: &ast.TypeName{Name: "box"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_sl", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "lseg"}, + }, + { + Type: &ast.TypeName{Name: "line"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "dist_sp", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "lseg"}, + }, + { + Type: &ast.TypeName{Name: "point"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "div", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, + }, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "dlog1", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "double precision"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "dlog10", @@ -5472,12 +5578,8 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "every", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "boolean"}, - }, - }, + Name: "every", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "boolean"}, }, { @@ -5547,7 +5649,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5556,7 +5658,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5565,7 +5667,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5574,7 +5676,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5583,7 +5685,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5592,7 +5694,7 @@ func genPGCatalog() *catalog.Schema { Name: "float4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "smallint"}, }, }, ReturnType: &ast.TypeName{Name: "real"}, @@ -5931,7 +6033,7 @@ func genPGCatalog() *catalog.Schema { Name: "float8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -5940,7 +6042,7 @@ func genPGCatalog() *catalog.Schema { Name: "float8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -5949,7 +6051,7 @@ func genPGCatalog() *catalog.Schema { Name: "float8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -5958,7 +6060,7 @@ func genPGCatalog() *catalog.Schema { Name: "float8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -5976,7 +6078,7 @@ func genPGCatalog() *catalog.Schema { Name: "float8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "smallint"}, }, }, ReturnType: &ast.TypeName{Name: "double precision"}, @@ -6585,11 +6687,20 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "generate_series", + Name: "gcd", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, + { + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "gcd", + Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "integer"}, }, @@ -6600,53 +6711,79 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "generate_series", + Name: "gcd", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + }, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "gen_random_uuid", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "uuid"}, + }, + { + Name: "generate_series", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bigint"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "bigint"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "bigint"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "generate_series", + Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, @@ -6660,40 +6797,46 @@ func genPGCatalog() *catalog.Schema { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "interval"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, }, { Name: "generate_series", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, + }, + { + Type: &ast.TypeName{Name: "interval"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, { Name: "generate_subscripts", @@ -6704,9 +6847,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -6719,6 +6859,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -6726,7 +6869,7 @@ func genPGCatalog() *catalog.Schema { Name: "get_bit", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "bit"}, }, { Type: &ast.TypeName{Name: "integer"}, @@ -6738,10 +6881,10 @@ func genPGCatalog() *catalog.Schema { Name: "get_bit", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -6827,6 +6970,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_any_column_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -6855,7 +7001,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_any_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "oid"}, @@ -6875,9 +7021,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -6888,7 +7031,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -6911,6 +7054,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_column_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -6930,10 +7076,10 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -6945,11 +7091,14 @@ func genPGCatalog() *catalog.Schema { Name: "has_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "name"}, }, { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "smallint"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -6960,7 +7109,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -6975,7 +7127,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "smallint"}, @@ -6990,7 +7145,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "oid"}, @@ -7007,9 +7162,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_column_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "name"}, - }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7032,7 +7184,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "smallint"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7049,9 +7201,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "smallint"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7065,7 +7214,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7080,10 +7229,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_column_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, - }, - { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "smallint"}, @@ -7097,9 +7243,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_column_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "name"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7131,7 +7274,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_database_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7143,10 +7289,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_database_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7158,7 +7304,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_database_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7173,7 +7319,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7184,9 +7330,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_database_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7200,7 +7343,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_foreign_data_wrapper_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, { Type: &ast.TypeName{Name: "oid"}, @@ -7214,6 +7357,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_foreign_data_wrapper_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7227,7 +7373,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_foreign_data_wrapper_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "oid"}, @@ -7242,10 +7388,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_foreign_data_wrapper_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7262,15 +7405,15 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { Name: "has_foreign_data_wrapper_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7287,7 +7430,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7298,6 +7441,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_function_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7310,6 +7456,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_function_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7328,9 +7477,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -7341,7 +7487,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7353,10 +7499,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_function_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7368,7 +7511,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_language_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, { Type: &ast.TypeName{Name: "oid"}, @@ -7383,7 +7526,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_language_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7398,10 +7541,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_language_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7425,10 +7568,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_language_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7455,7 +7598,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7466,6 +7609,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_schema_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7478,6 +7624,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_schema_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7490,9 +7639,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_schema_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "name"}, - }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7521,10 +7667,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_schema_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, - }, - { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7536,7 +7679,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_sequence_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7548,7 +7694,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_sequence_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7580,9 +7729,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -7590,10 +7736,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_sequence_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7604,9 +7750,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_sequence_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "name"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7649,6 +7792,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_server_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7662,7 +7808,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_server_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7677,7 +7823,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7688,9 +7834,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_server_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7704,7 +7847,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_table_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7730,6 +7876,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_table_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7742,9 +7891,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_table_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "name"}, - }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7773,10 +7919,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_table_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, - }, - { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7788,10 +7931,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_tablespace_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7802,6 +7945,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_tablespace_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7830,10 +7976,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_tablespace_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7845,10 +7988,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_tablespace_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7860,7 +8003,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_tablespace_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7875,7 +8018,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7886,6 +8029,9 @@ func genPGCatalog() *catalog.Schema { { Name: "has_type_privilege", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, @@ -7902,7 +8048,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7913,9 +8059,6 @@ func genPGCatalog() *catalog.Schema { { Name: "has_type_privilege", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -7929,10 +8072,10 @@ func genPGCatalog() *catalog.Schema { Name: "has_type_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -7944,7 +8087,7 @@ func genPGCatalog() *catalog.Schema { Name: "has_type_privilege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -8403,13 +8546,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bigint"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bigint"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8424,10 +8567,10 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -8445,13 +8588,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "double precision"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "double precision"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "double precision"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8472,7 +8615,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bigint"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8508,13 +8651,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "smallint"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8529,10 +8672,10 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -8550,13 +8693,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "numeric"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8571,13 +8714,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "real"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "real"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "double precision"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8592,13 +8735,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "bigint"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8613,13 +8756,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8634,13 +8777,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "smallint"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "smallint"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8655,10 +8798,10 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -8676,13 +8819,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8697,13 +8840,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8718,13 +8861,13 @@ func genPGCatalog() *catalog.Schema { Name: "in_range", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "time with time zone"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "time with time zone"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "boolean"}, @@ -8906,7 +9049,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -8915,7 +9058,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -8924,7 +9067,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -8933,7 +9076,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -8942,7 +9085,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -8951,7 +9094,7 @@ func genPGCatalog() *catalog.Schema { Name: "int2", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "real"}, }, }, ReturnType: &ast.TypeName{Name: "smallint"}, @@ -9563,7 +9706,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9572,7 +9715,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "bit"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9581,7 +9724,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9590,7 +9733,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "char"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9608,7 +9751,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9617,7 +9760,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9626,7 +9769,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "char"}, + Type: &ast.TypeName{Name: "real"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -9635,7 +9778,7 @@ func genPGCatalog() *catalog.Schema { Name: "int4", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "smallint"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -10162,9 +10305,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "int4range"}, }, @@ -10177,6 +10317,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "int4range"}, }, @@ -10280,7 +10423,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "bit"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10289,7 +10432,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10298,7 +10441,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10307,7 +10450,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10316,7 +10459,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10334,7 +10477,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "real"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -10343,7 +10486,7 @@ func genPGCatalog() *catalog.Schema { Name: "int8", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "smallint"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -11069,7 +11212,10 @@ func genPGCatalog() *catalog.Schema { Name: "interval", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "interval"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "interval"}, @@ -11078,10 +11224,7 @@ func genPGCatalog() *catalog.Schema { Name: "interval", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "interval"}, @@ -11428,6 +11571,18 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "cstring"}, }, + { + Name: "is_normalized", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "isclosed", Args: []*catalog.Argument{ @@ -11450,7 +11605,7 @@ func genPGCatalog() *catalog.Schema { Name: "isfinite", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11459,7 +11614,7 @@ func genPGCatalog() *catalog.Schema { Name: "isfinite", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "interval"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11477,7 +11632,7 @@ func genPGCatalog() *catalog.Schema { Name: "isfinite", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11525,10 +11680,10 @@ func genPGCatalog() *catalog.Schema { Name: "isparallel", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "line"}, }, { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "line"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11537,10 +11692,10 @@ func genPGCatalog() *catalog.Schema { Name: "isparallel", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "line"}, + Type: &ast.TypeName{Name: "lseg"}, }, { - Type: &ast.TypeName{Name: "line"}, + Type: &ast.TypeName{Name: "lseg"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11573,10 +11728,7 @@ func genPGCatalog() *catalog.Schema { Name: "isvertical", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, - }, - { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "line"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -11594,18 +11746,17 @@ func genPGCatalog() *catalog.Schema { Name: "isvertical", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "line"}, + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "point"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "json_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "anyelement"}, - }, - }, + Name: "json_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "json"}, }, { @@ -11646,23 +11797,13 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "json_build_array", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - Mode: ast.FuncParamVariadic, - }, - }, + Name: "json_build_array", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "json"}, }, { - Name: "json_build_object", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - Mode: ast.FuncParamVariadic, - }, - }, + Name: "json_build_object", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "json"}, }, { @@ -11696,15 +11837,8 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "json"}, }, { - Name: "json_object_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - }, - { - Type: &ast.TypeName{Name: "any"}, - }, - }, + Name: "json_object_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "json"}, }, { @@ -11830,9 +11964,6 @@ func genPGCatalog() *catalog.Schema { { Name: "json_to_tsvector", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regconfig"}, - }, { Type: &ast.TypeName{Name: "json"}, }, @@ -11845,6 +11976,9 @@ func genPGCatalog() *catalog.Schema { { Name: "json_to_tsvector", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regconfig"}, + }, { Type: &ast.TypeName{Name: "json"}, }, @@ -11864,12 +11998,8 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "jsonb_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "anyelement"}, - }, - }, + Name: "jsonb_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "jsonb"}, }, { @@ -11910,23 +12040,13 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "jsonb_build_array", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - Mode: ast.FuncParamVariadic, - }, - }, + Name: "jsonb_build_array", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_build_object", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - Mode: ast.FuncParamVariadic, - }, - }, + Name: "jsonb_build_object", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "jsonb"}, }, { @@ -12180,9 +12300,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text[]"}, }, - { - Type: &ast.TypeName{Name: "text[]"}, - }, }, ReturnType: &ast.TypeName{Name: "jsonb"}, }, @@ -12192,19 +12309,15 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text[]"}, }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, }, ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_object_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "any"}, - }, - { - Type: &ast.TypeName{Name: "any"}, - }, - }, + Name: "jsonb_object_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "jsonb"}, }, { @@ -12289,6 +12402,30 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "jsonb_path_exists_tz", + Args: []*catalog.Argument{ + { + Name: "target", + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "path", + Type: &ast.TypeName{Name: "jsonpath"}, + }, + { + Name: "vars", + HasDefault: true, + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "silent", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "jsonb_path_match", Args: []*catalog.Argument{ @@ -12326,7 +12463,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "jsonb_path_query", + Name: "jsonb_path_match_tz", Args: []*catalog.Argument{ { Name: "target", @@ -12347,10 +12484,10 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "boolean"}, }, }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "jsonb_path_query_array", + Name: "jsonb_path_query", Args: []*catalog.Argument{ { Name: "target", @@ -12374,7 +12511,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_path_query_first", + Name: "jsonb_path_query_array", Args: []*catalog.Argument{ { Name: "target", @@ -12398,64 +12535,71 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_populate_record", + Name: "jsonb_path_query_array_tz", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyelement"}, + Name: "target", + Type: &ast.TypeName{Name: "jsonb"}, }, { - Type: &ast.TypeName{Name: "jsonb"}, + Name: "path", + Type: &ast.TypeName{Name: "jsonpath"}, }, - }, - ReturnType: &ast.TypeName{Name: "anyelement"}, - }, - { - Name: "jsonb_populate_recordset", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyelement"}, + Name: "vars", + HasDefault: true, + Type: &ast.TypeName{Name: "jsonb"}, }, { - Type: &ast.TypeName{Name: "jsonb"}, + Name: "silent", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, }, }, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_pretty", + Name: "jsonb_path_query_first", Args: []*catalog.Argument{ { + Name: "target", Type: &ast.TypeName{Name: "jsonb"}, }, - }, - ReturnType: &ast.TypeName{Name: "text"}, - }, - { - Name: "jsonb_send", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Name: "path", + Type: &ast.TypeName{Name: "jsonpath"}, + }, + { + Name: "vars", + HasDefault: true, + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "silent", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_set", + Name: "jsonb_path_query_first_tz", Args: []*catalog.Argument{ { - Name: "jsonb_in", + Name: "target", Type: &ast.TypeName{Name: "jsonb"}, }, { Name: "path", - Type: &ast.TypeName{Name: "text[]"}, + Type: &ast.TypeName{Name: "jsonpath"}, }, { - Name: "replacement", - Type: &ast.TypeName{Name: "jsonb"}, + Name: "vars", + HasDefault: true, + Type: &ast.TypeName{Name: "jsonb"}, }, { - Name: "create_if_missing", + Name: "silent", HasDefault: true, Type: &ast.TypeName{Name: "boolean"}, }, @@ -12463,13 +12607,130 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "jsonb"}, }, { - Name: "jsonb_strip_nulls", + Name: "jsonb_path_query_tz", Args: []*catalog.Argument{ { + Name: "target", Type: &ast.TypeName{Name: "jsonb"}, }, - }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + { + Name: "path", + Type: &ast.TypeName{Name: "jsonpath"}, + }, + { + Name: "vars", + HasDefault: true, + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "silent", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "jsonb_populate_record", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anyelement"}, + }, + { + Type: &ast.TypeName{Name: "jsonb"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anyelement"}, + }, + { + Name: "jsonb_populate_recordset", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anyelement"}, + }, + { + Type: &ast.TypeName{Name: "jsonb"}, + }, + }, + ReturnType: &ast.TypeName{Name: "anyelement"}, + }, + { + Name: "jsonb_pretty", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "jsonb"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "jsonb_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "jsonb"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "jsonb_set", + Args: []*catalog.Argument{ + { + Name: "jsonb_in", + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "path", + Type: &ast.TypeName{Name: "text[]"}, + }, + { + Name: "replacement", + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "create_if_missing", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "jsonb_set_lax", + Args: []*catalog.Argument{ + { + Name: "jsonb_in", + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "path", + Type: &ast.TypeName{Name: "text[]"}, + }, + { + Name: "replacement", + Type: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "create_if_missing", + HasDefault: true, + Type: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "null_value_treatment", + HasDefault: true, + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "jsonb"}, + }, + { + Name: "jsonb_strip_nulls", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "jsonb"}, + }, + }, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { Name: "jsonb_to_record", @@ -12492,9 +12753,6 @@ func genPGCatalog() *catalog.Schema { { Name: "jsonb_to_tsvector", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regconfig"}, - }, { Type: &ast.TypeName{Name: "jsonb"}, }, @@ -12507,6 +12765,9 @@ func genPGCatalog() *catalog.Schema { { Name: "jsonb_to_tsvector", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regconfig"}, + }, { Type: &ast.TypeName{Name: "jsonb"}, }, @@ -12647,6 +12908,42 @@ func genPGCatalog() *catalog.Schema { Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "bigint"}, }, + { + Name: "lcm", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bigint"}, + }, + { + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "lcm", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "lcm", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, + }, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, { Name: "lead", Args: []*catalog.Argument{ @@ -12665,9 +12962,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "anyelement"}, - }, }, ReturnType: &ast.TypeName{Name: "anyelement"}, }, @@ -12680,6 +12974,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "anyelement"}, + }, }, ReturnType: &ast.TypeName{Name: "anyelement"}, }, @@ -12699,10 +12996,10 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "lseg"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "length", @@ -12717,10 +13014,10 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "bit"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { Name: "length", @@ -12728,9 +13025,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "bytea"}, }, - { - Type: &ast.TypeName{Name: "name"}, - }, }, ReturnType: &ast.TypeName{Name: "integer"}, }, @@ -12738,7 +13032,10 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "tsvector"}, + Type: &ast.TypeName{Name: "bytea"}, + }, + { + Type: &ast.TypeName{Name: "name"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -12747,7 +13044,7 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "character"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -12756,7 +13053,7 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -12765,7 +13062,7 @@ func genPGCatalog() *catalog.Schema { Name: "length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "tsvector"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -12774,10 +13071,10 @@ func genPGCatalog() *catalog.Schema { Name: "like", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -12786,10 +13083,10 @@ func genPGCatalog() *catalog.Schema { Name: "like", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -12798,7 +13095,7 @@ func genPGCatalog() *catalog.Schema { Name: "like", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -13058,9 +13355,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "oid"}, - }, }, ReturnType: &ast.TypeName{Name: "oid"}, }, @@ -13070,6 +13364,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "oid"}, + }, }, ReturnType: &ast.TypeName{Name: "oid"}, }, @@ -13185,22 +13482,19 @@ func genPGCatalog() *catalog.Schema { Name: "log", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "log", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "log", @@ -13208,6 +13502,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "numeric"}, }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, @@ -13215,19 +13512,19 @@ func genPGCatalog() *catalog.Schema { Name: "log10", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "log10", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "loread", @@ -13245,19 +13542,19 @@ func genPGCatalog() *catalog.Schema { Name: "lower", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "anyrange"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "anyelement"}, }, { Name: "lower", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyrange"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "lower_inc", @@ -13320,10 +13617,7 @@ func genPGCatalog() *catalog.Schema { Name: "lseg", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "point"}, - }, - { - Type: &ast.TypeName{Name: "point"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "lseg"}, @@ -13332,7 +13626,10 @@ func genPGCatalog() *catalog.Schema { Name: "lseg", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "point"}, + }, + { + Type: &ast.TypeName{Name: "point"}, }, }, ReturnType: &ast.TypeName{Name: "lseg"}, @@ -13538,9 +13835,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -13550,6 +13844,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -14002,10 +14299,6 @@ func genPGCatalog() *catalog.Schema { Name: "sec", Type: &ast.TypeName{Name: "double precision"}, }, - { - Name: "timezone", - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, @@ -14036,6 +14329,10 @@ func genPGCatalog() *catalog.Schema { Name: "sec", Type: &ast.TypeName{Name: "double precision"}, }, + { + Name: "timezone", + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, @@ -14067,125 +14364,328 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "max", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "timestamp with time zone"}, - }, - }, + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "anyarray"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "anyenum"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "character"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "date"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "inet"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "interval"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "money"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "oid"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "pg_lsn"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "real"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "smallint"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "tid"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Name: "max", + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "time without time zone"}, + }, + { + Name: "max", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "time with time zone"}, + }, + { + Name: "md5", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, - ReturnType: &ast.TypeName{Name: "inet"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "max", + Name: "md5", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyenum"}, + Type: &ast.TypeName{Name: "text"}, }, }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "anyarray"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "anyenum"}, }, { - Name: "max", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "character"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "date"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "inet"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "max", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "interval"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "money"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "oid"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "pg_lsn"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "real"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "smallint"}, }, { - Name: "max", + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "tid"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "time without time zone"}, + }, + { + Name: "min", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "time with time zone"}, + }, + { + Name: "min_scale", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "oid"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "max", + Name: "mod", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "bigint"}, + }, + { + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "real"}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "max", + Name: "mod", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "max", + Name: "mod", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "date"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "max", + Name: "mod", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "smallint"}, + }, + { + Type: &ast.TypeName{Name: "smallint"}, }, }, - ReturnType: &ast.TypeName{Name: "time without time zone"}, + ReturnType: &ast.TypeName{Name: "smallint"}, + }, + { + Name: "mode", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "anyelement"}, }, { - Name: "max", + Name: "money", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "time with time zone"}, + ReturnType: &ast.TypeName{Name: "money"}, }, { - Name: "max", + Name: "money", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "money"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "money"}, }, { - Name: "max", + Name: "money", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + ReturnType: &ast.TypeName{Name: "money"}, }, { - Name: "max", + Name: "mul_d_interval", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "double precision"}, + }, { Type: &ast.TypeName{Name: "interval"}, }, @@ -14193,600 +14693,541 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "interval"}, }, { - Name: "max", + Name: "mxid_age", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "xid"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "max", + Name: "name", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "character"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "name"}, }, { - Name: "max", + Name: "name", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyarray"}, + Type: &ast.TypeName{Name: "character varying"}, }, }, - ReturnType: &ast.TypeName{Name: "anyarray"}, + ReturnType: &ast.TypeName{Name: "name"}, }, { - Name: "max", + Name: "name", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "character"}, + ReturnType: &ast.TypeName{Name: "name"}, }, { - Name: "max", + Name: "nameconcatoid", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "tid"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "tid"}, - }, - { - Name: "max", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "oid"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "name"}, }, { - Name: "md5", + Name: "nameeq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "md5", + Name: "nameeqtext", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "namege", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "interval"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "namegetext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "character"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "smallint"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "namegt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "bigint"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "oid"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "namegttext", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "nameiclike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "time without time zone"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "time with time zone"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "nameicnlike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "inet"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "money"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "money"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "nameicregexeq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "nameicregexne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "real"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyarray"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "anyarray"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "namein", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyenum"}, + Type: &ast.TypeName{Name: "cstring"}, }, }, - ReturnType: &ast.TypeName{Name: "anyenum"}, + ReturnType: &ast.TypeName{Name: "name"}, }, { - Name: "min", + Name: "namele", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "min", + Name: "nameletext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "tid"}, + Type: &ast.TypeName{Name: "name"}, }, - }, - ReturnType: &ast.TypeName{Name: "tid"}, - }, - { - Name: "min", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "date"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "mod", + Name: "namelike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "mod", + Name: "namelt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "mod", + Name: "namelttext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "smallint"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "mod", + Name: "namene", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "mode", - Args: []*catalog.Argument{}, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "money", + Name: "namenetext", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "money"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "money", + Name: "namenlike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "money"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "money", + Name: "nameout", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "money"}, + ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "mul_d_interval", + Name: "nameregexeq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "interval"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "mxid_age", + Name: "nameregexne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Type: &ast.TypeName{Name: "name"}, + }, + { + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "name", + Name: "namesend", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character varying"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "name"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "name", + Name: "netmask", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, - ReturnType: &ast.TypeName{Name: "name"}, + ReturnType: &ast.TypeName{Name: "inet"}, }, { - Name: "name", + Name: "network", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "inet"}, }, }, - ReturnType: &ast.TypeName{Name: "name"}, + ReturnType: &ast.TypeName{Name: "cidr"}, }, { - Name: "nameconcatoid", + Name: "network_cmp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "inet"}, }, }, - ReturnType: &ast.TypeName{Name: "name"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "nameeq", + Name: "network_eq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameeqtext", + Name: "network_ge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namege", + Name: "network_gt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namegetext", + Name: "network_larger", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "inet"}, }, { - Name: "namegt", + Name: "network_le", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namegttext", + Name: "network_lt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameiclike", + Name: "network_ne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameicnlike", + Name: "network_overlap", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameicregexeq", + Name: "network_smaller", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "inet"}, }, { - Name: "nameicregexne", + Name: "network_sub", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namein", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cstring"}, - }, - }, - ReturnType: &ast.TypeName{Name: "name"}, - }, - { - Name: "namele", + Name: "network_subeq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameletext", + Name: "network_sup", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namelike", + Name: "network_supeq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "inet"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namelt", + Name: "nextval", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "regclass"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "namelttext", + Name: "normalize", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "namene", + Name: "notlike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namenetext", + Name: "notlike", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "name"}, @@ -14798,10 +15239,10 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "namenlike", + Name: "notlike", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -14810,408 +15251,363 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nameout", + Name: "now", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + }, + { + Name: "npoints", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "path"}, }, }, - ReturnType: &ast.TypeName{Name: "cstring"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "nameregexeq", + Name: "npoints", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "polygon"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "nameregexne", + Name: "nth_value", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "anyelement"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "anyelement"}, }, { - Name: "namesend", + Name: "ntile", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "netmask", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "inet"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "cidr"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_cmp", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_eq", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_ge", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "money"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_gt", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_larger", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "real"}, }, }, - ReturnType: &ast.TypeName{Name: "inet"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_le", + Name: "numeric", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "smallint"}, }, + }, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "numeric_abs", + Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_lt", + Name: "numeric_add", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_ne", + Name: "numeric_cmp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "network_overlap", + Name: "numeric_div", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_smaller", + Name: "numeric_div_trunc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "inet"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_sub", + Name: "numeric_eq", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "network_subeq", + Name: "numeric_exp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_sup", + Name: "numeric_fac", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, - }, - { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "network_supeq", + Name: "numeric_ge", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "nextval", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regclass"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bigint"}, - }, - { - Name: "notlike", + Name: "numeric_gt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "notlike", + Name: "numeric_in", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "cstring"}, }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "notlike", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "now", - Args: []*catalog.Argument{}, - ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "npoints", + Name: "numeric_inc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "path"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "npoints", + Name: "numeric_larger", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "polygon"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "nth_value", + Name: "numeric_le", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyelement"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "ntile", + Name: "numeric_ln", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric", + Name: "numeric_log", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric", + Name: "numeric_lt", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "numeric", + Name: "numeric_mod", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "numeric"}, }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "money"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric", + Name: "numeric_mul", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Type: &ast.TypeName{Name: "numeric"}, }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric", + Name: "numeric_ne", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "numeric_abs", + Name: "numeric_out", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "numeric_add", + Name: "numeric_power", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15223,19 +15619,16 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_cmp", + Name: "numeric_send", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, }, - ReturnType: &ast.TypeName{Name: "integer"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "numeric_div", + Name: "numeric_smaller", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15247,19 +15640,16 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_div_trunc", + Name: "numeric_sqrt", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_eq", + Name: "numeric_sub", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15268,10 +15658,10 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_exp", + Name: "numeric_uminus", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15280,64 +15670,55 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_fac", + Name: "numeric_uplus", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "numeric_ge", + Name: "numerictypmodin", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "cstring[]"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "numeric_gt", + Name: "numerictypmodout", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "numeric_in", + Name: "numnode", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, - }, - { - Type: &ast.TypeName{Name: "oid"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "tsquery"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "numeric_inc", + Name: "numrange", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "numrange"}, }, { - Name: "numeric_larger", + Name: "numrange", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15345,11 +15726,14 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "numeric"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "numrange"}, }, { - Name: "numeric_le", + Name: "numrange_subdiff", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -15358,250 +15742,52 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "numeric_ln", + Name: "obj_description", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "oid"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "numeric_log", + Name: "obj_description", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "oid"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "name"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "numeric_lt", + Name: "octet_length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "bit"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "numeric_mod", + Name: "octet_length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "numeric_mul", + Name: "octet_length", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_ne", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "numeric_out", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "numeric_power", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_send", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "numeric_smaller", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_sqrt", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_sub", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_uminus", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numeric_uplus", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "numerictypmodin", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cstring[]"}, - }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "numerictypmodout", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "numnode", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "tsquery"}, - }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "numrange", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "text"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numrange"}, - }, - { - Name: "numrange", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numrange"}, - }, - { - Name: "numrange_subdiff", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "obj_description", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, - { - Type: &ast.TypeName{Name: "name"}, - }, - }, - ReturnType: &ast.TypeName{Name: "text"}, - }, - { - Name: "obj_description", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, - }, - ReturnType: &ast.TypeName{Name: "text"}, - }, - { - Name: "octet_length", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "character"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -15615,24 +15801,6 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "integer"}, }, - { - Name: "octet_length", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "character"}, - }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "octet_length", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bytea"}, - }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, { Name: "oid", Args: []*catalog.Argument{ @@ -15945,35 +16113,17 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, - { - Name: "opaque_in", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cstring"}, - }, - }, - ReturnType: &ast.TypeName{Name: "opaque"}, - }, - { - Name: "opaque_out", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "opaque"}, - }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -15985,16 +16135,16 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16003,13 +16153,13 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -16024,7 +16174,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "timestamp without time zone"}, @@ -16039,13 +16189,13 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, @@ -16057,16 +16207,16 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16075,16 +16225,16 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16102,7 +16252,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16111,16 +16261,16 @@ func genPGCatalog() *catalog.Schema { Name: "overlaps", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, { Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16132,7 +16282,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "time without time zone"}, }, { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "time without time zone"}, @@ -16168,7 +16318,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "time without time zone"}, }, { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, { Type: &ast.TypeName{Name: "time without time zone"}, @@ -16201,28 +16351,25 @@ func genPGCatalog() *catalog.Schema { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bit"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bit"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "bit"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "bit"}, }, { Type: &ast.TypeName{Name: "integer"}, @@ -16231,70 +16378,73 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "bytea"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "bit"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, - }, - { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "bit"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "overlay", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "parse_ident", @@ -16544,6 +16694,15 @@ func genPGCatalog() *catalog.Schema { Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, + { + Name: "percentile_cont", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "double precision"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, { Name: "percentile_cont", Args: []*catalog.Argument{ @@ -16560,16 +16719,16 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "interval"}, }, { - Name: "percentile_disc", + Name: "percentile_cont", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "double precision[]"}, }, }, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "interval[]"}, }, { Name: "percentile_disc", @@ -16581,13 +16740,19 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "anyarray"}, }, { - Name: "pg_advisory_lock", + Name: "percentile_disc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "double precision"}, }, + }, + ReturnType: &ast.TypeName{Name: "anyelement"}, + }, + { + Name: "pg_advisory_lock", + Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16596,7 +16761,10 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_lock", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16626,10 +16794,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_unlock", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16638,7 +16803,10 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_unlock", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "boolean"}, @@ -16673,10 +16841,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_xact_lock", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16685,7 +16850,10 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_xact_lock", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16694,10 +16862,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_xact_lock_shared", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16706,7 +16871,10 @@ func genPGCatalog() *catalog.Schema { Name: "pg_advisory_xact_lock_shared", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "void"}, @@ -16841,6 +17009,11 @@ func genPGCatalog() *catalog.Schema { Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "text"}, }, + { + Name: "pg_current_snapshot", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "pg_snapshot"}, + }, { Name: "pg_current_wal_flush_lsn", Args: []*catalog.Argument{}, @@ -16856,6 +17029,16 @@ func genPGCatalog() *catalog.Schema { Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "pg_lsn"}, }, + { + Name: "pg_current_xact_id", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, + { + Name: "pg_current_xact_id_if_assigned", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, { Name: "pg_database_size", Args: []*catalog.Argument{ @@ -17001,9 +17184,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, @@ -17016,9 +17196,21 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "pg_file_sync", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "void"}, + }, { Name: "pg_file_unlink", Args: []*catalog.Argument{ @@ -17094,9 +17286,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17109,6 +17298,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17166,12 +17358,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17181,6 +17367,12 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17217,9 +17409,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17229,6 +17418,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "oid"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17287,10 +17479,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_get_viewdef", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "oid"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -17323,7 +17512,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_get_viewdef", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -17334,12 +17523,18 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "pg_has_role", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, { Type: &ast.TypeName{Name: "name"}, }, @@ -17353,10 +17548,10 @@ func genPGCatalog() *catalog.Schema { Name: "pg_has_role", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -17370,9 +17565,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "name"}, }, - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -17383,7 +17575,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_has_role", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, { Type: &ast.TypeName{Name: "name"}, @@ -17397,6 +17589,9 @@ func genPGCatalog() *catalog.Schema { { Name: "pg_has_role", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -17409,9 +17604,6 @@ func genPGCatalog() *catalog.Schema { { Name: "pg_has_role", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "oid"}, - }, { Type: &ast.TypeName{Name: "oid"}, }, @@ -17566,7 +17758,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, ReturnType: &ast.TypeName{Name: "pg_lsn"}, @@ -17581,7 +17773,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "pg_lsn"}, @@ -17592,12 +17784,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17607,6 +17793,12 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -17688,6 +17880,18 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "pg_lsn"}, }, + { + Name: "pg_lsn_larger", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_lsn"}, + }, + { + Type: &ast.TypeName{Name: "pg_lsn"}, + }, + }, + ReturnType: &ast.TypeName{Name: "pg_lsn"}, + }, { Name: "pg_lsn_le", Args: []*catalog.Argument{ @@ -17754,6 +17958,18 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "bytea"}, }, + { + Name: "pg_lsn_smaller", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_lsn"}, + }, + { + Type: &ast.TypeName{Name: "pg_lsn"}, + }, + }, + ReturnType: &ast.TypeName{Name: "pg_lsn"}, + }, { Name: "pg_mcv_list_in", Args: []*catalog.Argument{ @@ -17929,6 +18145,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, + { + Name: "pg_read_binary_file", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, { Name: "pg_read_binary_file", Args: []*catalog.Argument{ @@ -17963,13 +18188,13 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "pg_read_binary_file", + Name: "pg_read_file", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "bytea"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "pg_read_file", @@ -17983,9 +18208,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "bigint"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -18001,14 +18223,8 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "bigint"}, }, - }, - ReturnType: &ast.TypeName{Name: "text"}, - }, - { - Name: "pg_read_file", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -18271,6 +18487,60 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "void"}, }, + { + Name: "pg_snapshot_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "pg_snapshot"}, + }, + { + Name: "pg_snapshot_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "pg_snapshot_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "pg_snapshot_xip", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, + { + Name: "pg_snapshot_xmax", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, + { + Name: "pg_snapshot_xmin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, { Name: "pg_start_backup", Args: []*catalog.Argument{ @@ -18752,6 +19022,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "double precision"}, }, + { + Name: "pg_stat_get_ins_since_vacuum", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "oid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, { Name: "pg_stat_get_last_analyze_time", Args: []*catalog.Argument{ @@ -19023,6 +19302,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "void"}, }, + { + Name: "pg_stat_reset_slru", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "void"}, + }, { Name: "pg_statistics_obj_is_visible", Args: []*catalog.Argument{ @@ -19082,7 +19370,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_tablespace_size", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "oid"}, + Type: &ast.TypeName{Name: "name"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -19091,7 +19379,7 @@ func genPGCatalog() *catalog.Schema { Name: "pg_tablespace_size", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "oid"}, }, }, ReturnType: &ast.TypeName{Name: "bigint"}, @@ -19119,6 +19407,15 @@ func genPGCatalog() *catalog.Schema { Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "integer"}, }, + { + Name: "pg_try_advisory_lock", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bigint"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "pg_try_advisory_lock", Args: []*catalog.Argument{ @@ -19132,7 +19429,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "pg_try_advisory_lock", + Name: "pg_try_advisory_lock_shared", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "bigint"}, @@ -19153,7 +19450,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "pg_try_advisory_lock_shared", + Name: "pg_try_advisory_xact_lock", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "bigint"}, @@ -19174,7 +19471,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "pg_try_advisory_xact_lock", + Name: "pg_try_advisory_xact_lock_shared", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "bigint"}, @@ -19194,15 +19491,6 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "boolean"}, }, - { - Name: "pg_try_advisory_xact_lock_shared", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, { Name: "pg_ts_config_is_visible", Args: []*catalog.Argument{ @@ -19257,6 +19545,18 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "regtype"}, }, + { + Name: "pg_visible_in_snapshot", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "pg_snapshot"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, { Name: "pg_wal_lsn_diff", Args: []*catalog.Argument{ @@ -19297,6 +19597,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, + { + Name: "pg_xact_status", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, { Name: "phraseto_tsquery", Args: []*catalog.Argument{ @@ -19362,7 +19671,7 @@ func genPGCatalog() *catalog.Schema { Name: "point", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "circle"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "point"}, @@ -19371,7 +19680,7 @@ func genPGCatalog() *catalog.Schema { Name: "point", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "path"}, + Type: &ast.TypeName{Name: "circle"}, }, }, ReturnType: &ast.TypeName{Name: "point"}, @@ -19392,7 +19701,7 @@ func genPGCatalog() *catalog.Schema { Name: "point", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "lseg"}, }, }, ReturnType: &ast.TypeName{Name: "point"}, @@ -19401,7 +19710,7 @@ func genPGCatalog() *catalog.Schema { Name: "point", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "lseg"}, + Type: &ast.TypeName{Name: "path"}, }, }, ReturnType: &ast.TypeName{Name: "point"}, @@ -19815,7 +20124,7 @@ func genPGCatalog() *catalog.Schema { Name: "polygon", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "path"}, + Type: &ast.TypeName{Name: "box"}, }, }, ReturnType: &ast.TypeName{Name: "polygon"}, @@ -19845,7 +20154,7 @@ func genPGCatalog() *catalog.Schema { Name: "polygon", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Type: &ast.TypeName{Name: "path"}, }, }, ReturnType: &ast.TypeName{Name: "polygon"}, @@ -19863,10 +20172,10 @@ func genPGCatalog() *catalog.Schema { Name: "position", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "bit"}, }, { - Type: &ast.TypeName{Name: "bytea"}, + Type: &ast.TypeName{Name: "bit"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -19875,10 +20184,10 @@ func genPGCatalog() *catalog.Schema { Name: "position", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bytea"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -19887,10 +20196,10 @@ func genPGCatalog() *catalog.Schema { Name: "position", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "integer"}, @@ -19911,25 +20220,25 @@ func genPGCatalog() *catalog.Schema { Name: "pow", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "pow", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "power", @@ -20613,6 +20922,33 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "bytea"}, }, + { + Name: "regcollationin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "regcollation"}, + }, + { + Name: "regcollationout", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regcollation"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "regcollationsend", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regcollation"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, { Name: "regconfigin", Args: []*catalog.Argument{ @@ -20676,9 +21012,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -20691,6 +21024,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -20703,9 +21039,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -20718,6 +21051,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text[]"}, }, @@ -20790,9 +21126,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -20805,6 +21138,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -20944,151 +21280,88 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "regr_avgx", + Name: "regr_avgx", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_avgy", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_count", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bigint"}, + }, + { + Name: "regr_intercept", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_r2", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_slope", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_sxx", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_sxy", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regr_syy", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "regrolein", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "cstring"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "regrole"}, }, { - Name: "regr_avgy", + Name: "regroleout", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "regrole"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "regr_count", + Name: "regrolesend", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "regrole"}, }, }, - ReturnType: &ast.TypeName{Name: "bigint"}, + ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "regr_intercept", + Name: "regtypein", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "cstring"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "regtype"}, }, { - Name: "regr_r2", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "regr_slope", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "regr_sxx", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "regr_sxy", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "regr_syy", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "regrolein", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cstring"}, - }, - }, - ReturnType: &ast.TypeName{Name: "regrole"}, - }, - { - Name: "regroleout", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regrole"}, - }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "regrolesend", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regrole"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "regtypein", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "cstring"}, - }, - }, - ReturnType: &ast.TypeName{Name: "regtype"}, - }, - { - Name: "regtypeout", + Name: "regtypeout", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "regtype"}, @@ -21157,13 +21430,10 @@ func genPGCatalog() *catalog.Schema { Name: "round", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "round", @@ -21178,10 +21448,13 @@ func genPGCatalog() *catalog.Schema { Name: "round", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "row_number", @@ -21212,9 +21485,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "record"}, }, - { - Type: &ast.TypeName{Name: "boolean"}, - }, }, ReturnType: &ast.TypeName{Name: "json"}, }, @@ -21224,6 +21494,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "record"}, }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, }, ReturnType: &ast.TypeName{Name: "json"}, }, @@ -21260,9 +21533,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -21272,6 +21542,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -21377,7 +21650,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "bytea"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "bigint"}, }, { Type: &ast.TypeName{Name: "integer"}, @@ -21484,9 +21757,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "char"}, }, - { - Type: &ast.TypeName{Name: "text[]"}, - }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, }, @@ -21499,6 +21769,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "char"}, }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, }, @@ -21545,13 +21818,13 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "cstring"}, }, }, - ReturnType: &ast.TypeName{Name: "opaque"}, + ReturnType: &ast.TypeName{Name: "void"}, }, { Name: "shell_out", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "opaque"}, + Type: &ast.TypeName{Name: "void"}, }, }, ReturnType: &ast.TypeName{Name: "cstring"}, @@ -21572,19 +21845,19 @@ func genPGCatalog() *catalog.Schema { Name: "sign", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "sign", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "similar_escape", @@ -21598,6 +21871,27 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "text"}, }, + { + Name: "similar_to_escape", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "similar_to_escape", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "text"}, + }, { Name: "sin", Args: []*catalog.Argument{ @@ -21665,19 +21959,19 @@ func genPGCatalog() *catalog.Schema { Name: "sqrt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "double precision"}, }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { Name: "sqrt", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "starts_with", @@ -21697,189 +21991,103 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, + Name: "stddev", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "stddev", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, + Name: "stddev", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, + Name: "stddev", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "stddev", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, + Name: "stddev", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_pop", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, + Name: "stddev_pop", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, + Name: "stddev_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, + Name: "stddev_samp", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, + Name: "stddev_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "stddev_samp", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "stddev_samp", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "string_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bytea"}, - }, - { - Type: &ast.TypeName{Name: "bytea"}, - }, - }, + Name: "stddev_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "stddev_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "string_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "bytea"}, }, { - Name: "string_agg", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "text"}, - }, - }, + Name: "string_agg", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "text"}, }, { @@ -21966,9 +22174,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -21981,6 +22186,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -21988,25 +22196,28 @@ func genPGCatalog() *catalog.Schema { Name: "substring", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bit"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { Name: "substring", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "bit"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, { Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "bit"}, }, { Name: "substring", @@ -22017,9 +22228,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -22032,6 +22240,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "integer"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "bytea"}, }, @@ -22042,10 +22253,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, - }, - { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22069,100 +22277,68 @@ func genPGCatalog() *catalog.Schema { Name: "substring", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "bit"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "substring", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "bit"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "integer"}, - }, - }, + Name: "sum", + Args: []*catalog.Argument{}, ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "numeric"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "bigint"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "interval"}, - }, - }, - ReturnType: &ast.TypeName{Name: "interval"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "money"}, - }, - }, - ReturnType: &ast.TypeName{Name: "money"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "interval"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "double precision"}, - }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "money"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real"}, - }, - }, - ReturnType: &ast.TypeName{Name: "real"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "smallint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "bigint"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "sum", - Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "bigint"}, - }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, + Name: "sum", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "real"}, }, { Name: "suppress_redundant_updates_trigger", @@ -22284,7 +22460,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "boolean"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22293,7 +22469,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character"}, + Type: &ast.TypeName{Name: "char"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22302,7 +22478,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Type: &ast.TypeName{Name: "character"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22311,7 +22487,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "char"}, + Type: &ast.TypeName{Name: "inet"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22320,7 +22496,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "boolean"}, + Type: &ast.TypeName{Name: "name"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22329,7 +22505,7 @@ func genPGCatalog() *catalog.Schema { Name: "text", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "inet"}, + Type: &ast.TypeName{Name: "xml"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -22833,7 +23009,7 @@ func genPGCatalog() *catalog.Schema { Name: "time", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, }, ReturnType: &ast.TypeName{Name: "time without time zone"}, @@ -22842,10 +23018,7 @@ func genPGCatalog() *catalog.Schema { Name: "time", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "time without time zone"}, @@ -22854,7 +23027,7 @@ func genPGCatalog() *catalog.Schema { Name: "time", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "time without time zone"}, @@ -22863,7 +23036,10 @@ func genPGCatalog() *catalog.Schema { Name: "time", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time with time zone"}, + Type: &ast.TypeName{Name: "time without time zone"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "time without time zone"}, @@ -22872,7 +23048,7 @@ func genPGCatalog() *catalog.Schema { Name: "time", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "time with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "time without time zone"}, @@ -23096,7 +23272,7 @@ func genPGCatalog() *catalog.Schema { Name: "timestamp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, }, ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, @@ -23107,6 +23283,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "date"}, }, + { + Type: &ast.TypeName{Name: "time without time zone"}, + }, }, ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, }, @@ -23126,10 +23305,7 @@ func genPGCatalog() *catalog.Schema { Name: "timestamp", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, - }, - { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, @@ -23524,9 +23700,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "date"}, }, - { - Type: &ast.TypeName{Name: "time with time zone"}, - }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, @@ -23534,10 +23707,10 @@ func genPGCatalog() *catalog.Schema { Name: "timestamptz", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "date"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, @@ -23548,6 +23721,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "date"}, }, + { + Type: &ast.TypeName{Name: "time with time zone"}, + }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, @@ -23564,10 +23740,10 @@ func genPGCatalog() *catalog.Schema { Name: "timestamptz", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "date"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, @@ -23966,10 +24142,7 @@ func genPGCatalog() *catalog.Schema { Name: "timetz", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time with time zone"}, - }, - { - Type: &ast.TypeName{Name: "integer"}, + Type: &ast.TypeName{Name: "time without time zone"}, }, }, ReturnType: &ast.TypeName{Name: "time with time zone"}, @@ -23978,7 +24151,10 @@ func genPGCatalog() *catalog.Schema { Name: "timetz", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "time without time zone"}, + Type: &ast.TypeName{Name: "time with time zone"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "time with time zone"}, @@ -24206,16 +24382,16 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, + ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, }, { Name: "timezone", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "timestamp with time zone"}, @@ -24227,13 +24403,13 @@ func genPGCatalog() *catalog.Schema { Name: "timezone", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "interval"}, }, { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, }, - ReturnType: &ast.TypeName{Name: "timestamp without time zone"}, + ReturnType: &ast.TypeName{Name: "timestamp with time zone"}, }, { Name: "timezone", @@ -24251,7 +24427,7 @@ func genPGCatalog() *catalog.Schema { Name: "timezone", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "time with time zone"}, @@ -24263,7 +24439,7 @@ func genPGCatalog() *catalog.Schema { Name: "timezone", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "time with time zone"}, @@ -24277,9 +24453,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -24290,7 +24463,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "name"}, + Type: &ast.TypeName{Name: "integer"}, }, }, ReturnType: &ast.TypeName{Name: "text"}, @@ -24301,6 +24474,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "text"}, }, + { + Type: &ast.TypeName{Name: "name"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -24308,7 +24484,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp without time zone"}, + Type: &ast.TypeName{Name: "bigint"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24320,7 +24496,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Type: &ast.TypeName{Name: "double precision"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24344,7 +24520,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "timestamp with time zone"}, + Type: &ast.TypeName{Name: "interval"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24356,7 +24532,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "interval"}, + Type: &ast.TypeName{Name: "numeric"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24368,7 +24544,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Type: &ast.TypeName{Name: "real"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24380,7 +24556,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "timestamp without time zone"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24392,7 +24568,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_char", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Type: &ast.TypeName{Name: "timestamp with time zone"}, }, { Type: &ast.TypeName{Name: "text"}, @@ -24469,6 +24645,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "regclass"}, }, + { + Name: "to_regcollation", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "regcollation"}, + }, { Name: "to_regnamespace", Args: []*catalog.Argument{ @@ -24587,7 +24772,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_tsvector", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "jsonb"}, }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, @@ -24599,7 +24784,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "regconfig"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "json"}, }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, @@ -24607,6 +24792,9 @@ func genPGCatalog() *catalog.Schema { { Name: "to_tsvector", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regconfig"}, + }, { Type: &ast.TypeName{Name: "jsonb"}, }, @@ -24620,7 +24808,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "regconfig"}, }, { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, @@ -24629,10 +24817,7 @@ func genPGCatalog() *catalog.Schema { Name: "to_tsvector", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "regconfig"}, - }, - { - Type: &ast.TypeName{Name: "json"}, + Type: &ast.TypeName{Name: "text"}, }, }, ReturnType: &ast.TypeName{Name: "tsvector"}, @@ -24676,7 +24861,7 @@ func genPGCatalog() *catalog.Schema { ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "trunc", + Name: "trim_scale", Args: []*catalog.Argument{ { Type: &ast.TypeName{Name: "numeric"}, @@ -24684,6 +24869,15 @@ func genPGCatalog() *catalog.Schema { }, ReturnType: &ast.TypeName{Name: "numeric"}, }, + { + Name: "trunc", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "double precision"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, { Name: "trunc", Args: []*catalog.Argument{ @@ -24708,9 +24902,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "numeric"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "numeric"}, }, @@ -24718,10 +24909,13 @@ func genPGCatalog() *catalog.Schema { Name: "trunc", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, }, }, - ReturnType: &ast.TypeName{Name: "double precision"}, + ReturnType: &ast.TypeName{Name: "numeric"}, }, { Name: "ts_delete", @@ -24775,16 +24969,16 @@ func genPGCatalog() *catalog.Schema { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "regconfig"}, + Type: &ast.TypeName{Name: "json"}, }, { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "tsquery"}, }, { - Type: &ast.TypeName{Name: "tsquery"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + ReturnType: &ast.TypeName{Name: "json"}, }, { Name: "ts_headline", @@ -24793,52 +24987,49 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "regconfig"}, }, { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "json"}, }, { Type: &ast.TypeName{Name: "tsquery"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + ReturnType: &ast.TypeName{Name: "json"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "regconfig"}, + }, + { + Type: &ast.TypeName{Name: "json"}, }, { Type: &ast.TypeName{Name: "tsquery"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "json"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "jsonb"}, }, { Type: &ast.TypeName{Name: "tsquery"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "regconfig"}, - }, - { - Type: &ast.TypeName{Name: "json"}, + Type: &ast.TypeName{Name: "jsonb"}, }, { Type: &ast.TypeName{Name: "tsquery"}, @@ -24847,7 +25038,7 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "json"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { Name: "ts_headline", @@ -24856,19 +25047,22 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "regconfig"}, }, { - Type: &ast.TypeName{Name: "json"}, + Type: &ast.TypeName{Name: "jsonb"}, }, { Type: &ast.TypeName{Name: "tsquery"}, }, }, - ReturnType: &ast.TypeName{Name: "json"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "json"}, + Type: &ast.TypeName{Name: "regconfig"}, + }, + { + Type: &ast.TypeName{Name: "jsonb"}, }, { Type: &ast.TypeName{Name: "tsquery"}, @@ -24877,22 +25071,22 @@ func genPGCatalog() *catalog.Schema { Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "json"}, + ReturnType: &ast.TypeName{Name: "jsonb"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "regconfig"}, }, { - Type: &ast.TypeName{Name: "tsquery"}, + Type: &ast.TypeName{Name: "text"}, }, { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "tsquery"}, }, }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "ts_headline", @@ -24906,6 +25100,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "tsquery"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "text"}, }, @@ -24913,20 +25110,17 @@ func genPGCatalog() *catalog.Schema { Name: "ts_headline", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "jsonb"}, + Type: &ast.TypeName{Name: "text"}, }, { Type: &ast.TypeName{Name: "tsquery"}, }, }, - ReturnType: &ast.TypeName{Name: "jsonb"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "ts_headline", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "regconfig"}, - }, { Type: &ast.TypeName{Name: "text"}, }, @@ -25011,15 +25205,15 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "tsquery"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "real"}, }, { Name: "ts_rank", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "real[]"}, + }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25035,9 +25229,6 @@ func genPGCatalog() *catalog.Schema { { Name: "ts_rank", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real[]"}, - }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25056,12 +25247,18 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "tsquery"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "real"}, }, { Name: "ts_rank_cd", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "real[]"}, + }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25074,6 +25271,9 @@ func genPGCatalog() *catalog.Schema { { Name: "ts_rank_cd", Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "real[]"}, + }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25089,9 +25289,6 @@ func genPGCatalog() *catalog.Schema { { Name: "ts_rank_cd", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real[]"}, - }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25104,9 +25301,6 @@ func genPGCatalog() *catalog.Schema { { Name: "ts_rank_cd", Args: []*catalog.Argument{ - { - Type: &ast.TypeName{Name: "real[]"}, - }, { Type: &ast.TypeName{Name: "tsvector"}, }, @@ -25314,9 +25508,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "tsquery"}, }, - { - Type: &ast.TypeName{Name: "integer"}, - }, }, ReturnType: &ast.TypeName{Name: "tsquery"}, }, @@ -25329,6 +25520,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "tsquery"}, }, + { + Type: &ast.TypeName{Name: "integer"}, + }, }, ReturnType: &ast.TypeName{Name: "tsquery"}, }, @@ -25368,9 +25562,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "timestamp without time zone"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "tsrange"}, }, @@ -25383,6 +25574,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "timestamp without time zone"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "tsrange"}, }, @@ -25407,9 +25601,6 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "timestamp with time zone"}, }, - { - Type: &ast.TypeName{Name: "text"}, - }, }, ReturnType: &ast.TypeName{Name: "tstzrange"}, }, @@ -25422,6 +25613,9 @@ func genPGCatalog() *catalog.Schema { { Type: &ast.TypeName{Name: "timestamp with time zone"}, }, + { + Type: &ast.TypeName{Name: "text"}, + }, }, ReturnType: &ast.TypeName{Name: "tstzrange"}, }, @@ -25714,19 +25908,19 @@ func genPGCatalog() *catalog.Schema { Name: "upper", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Type: &ast.TypeName{Name: "anyrange"}, }, }, - ReturnType: &ast.TypeName{Name: "text"}, + ReturnType: &ast.TypeName{Name: "anyelement"}, }, { Name: "upper", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyrange"}, + Type: &ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "anyelement"}, + ReturnType: &ast.TypeName{Name: "text"}, }, { Name: "upper_inc", @@ -25873,753 +26067,10499 @@ func genPGCatalog() *catalog.Schema { Name: "uuid_send", Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "uuid"}, + Type: &ast.TypeName{Name: "uuid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_pop", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "var_samp", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "varbit", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bit varying"}, + }, + { + Name: "varbit_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bit varying"}, + }, + { + Name: "varbit_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "varbit_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "varbitcmp", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "varbiteq", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbitge", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbitgt", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbitle", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbitlt", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbitne", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + { + Type: &ast.TypeName{Name: "bit varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "varbittypmodin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring[]"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "varbittypmodout", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "varchar", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "character varying"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + { + Type: &ast.TypeName{Name: "boolean"}, + }, + }, + ReturnType: &ast.TypeName{Name: "character varying"}, + }, + { + Name: "varchar", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "name"}, + }, + }, + ReturnType: &ast.TypeName{Name: "character varying"}, + }, + { + Name: "varcharin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + { + Type: &ast.TypeName{Name: "oid"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "character varying"}, + }, + { + Name: "varcharout", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "character varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "varcharsend", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "character varying"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "varchartypmodin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring[]"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "varchartypmodout", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "variance", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "numeric"}, + }, + { + Name: "version", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "text"}, + }, + { + Name: "void_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "void"}, + }, + { + Name: "void_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "void"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "void_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "void"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "websearch_to_tsquery", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "regconfig"}, + }, + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "tsquery"}, + }, + { + Name: "websearch_to_tsquery", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "tsquery"}, + }, + { + Name: "width", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "box"}, + }, + }, + ReturnType: &ast.TypeName{Name: "double precision"}, + }, + { + Name: "width_bucket", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "anyelement"}, + }, + { + Type: &ast.TypeName{Name: "anyarray"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "width_bucket", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "double precision"}, + }, + { + Type: &ast.TypeName{Name: "double precision"}, + }, + { + Type: &ast.TypeName{Name: "double precision"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "width_bucket", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "numeric"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "xid", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid"}, + }, + { + Name: "xid8cmp", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "integer"}, + }, + { + Name: "xid8eq", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8ge", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8gt", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid8"}, + }, + { + Name: "xid8le", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8lt", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8ne", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xid8out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "xid8send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid8"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "xideq", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + { + Type: &ast.TypeName{Name: "xid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xideqint4", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xidin", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xid"}, + }, + { + Name: "xidneq", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + { + Type: &ast.TypeName{Name: "xid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xidneqint4", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + { + Type: &ast.TypeName{Name: "integer"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xidout", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "xidsend", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xid"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "xml", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml"}, + }, + { + Name: "xml_in", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "cstring"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml"}, + }, + { + Name: "xml_is_well_formed", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xml_is_well_formed_content", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xml_is_well_formed_document", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xml_out", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "cstring"}, + }, + { + Name: "xml_send", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "bytea"}, + }, + { + Name: "xmlagg", + Args: []*catalog.Argument{}, + ReturnType: &ast.TypeName{Name: "xml"}, + }, + { + Name: "xmlcomment", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml"}, + }, + { + Name: "xmlconcat2", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xml"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml"}, + }, + { + Name: "xmlexists", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xmlvalidate", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "xml"}, + }, + { + Type: &ast.TypeName{Name: "text"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xpath", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml[]"}, + }, + { + Name: "xpath", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, + }, + ReturnType: &ast.TypeName{Name: "xml[]"}, + }, + { + Name: "xpath_exists", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + { + Name: "xpath_exists", + Args: []*catalog.Argument{ + { + Type: &ast.TypeName{Name: "text"}, + }, + { + Type: &ast.TypeName{Name: "xml"}, + }, + { + Type: &ast.TypeName{Name: "text[]"}, + }, + }, + ReturnType: &ast.TypeName{Name: "boolean"}, + }, + } + s.Tables = []*catalog.Table{ + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_aggregate", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "aggfnoid", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggkind", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "aggnumdirectargs", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "aggtransfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggfinalfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggcombinefn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggserialfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggdeserialfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggmtransfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggminvtransfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggmfinalfn", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggfinalextra", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "aggmfinalextra", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "aggfinalmodify", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "aggmfinalmodify", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "aggsortop", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggtranstype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggtransspace", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggmtranstype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "aggmtransspace", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "agginitval", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "aggminitval", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_am", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "amhandler", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_amop", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amopfamily", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amoplefttype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amoprighttype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amopstrategy", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "amoppurpose", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "amopopr", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amopmethod", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amopsortfamily", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_amproc", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amprocfamily", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amproclefttype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amprocrighttype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "amprocnum", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "amproc", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_attrdef", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "adrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "adnum", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "adbin", + Type: ast.TypeName{Name: "pg_node_tree"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_attribute", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "attrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "atttypid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attstattarget", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attlen", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "attnum", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "attndims", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attcacheoff", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "atttypmod", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attbyval", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attstorage", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attalign", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attnotnull", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "atthasdef", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "atthasmissing", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attidentity", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attgenerated", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attisdropped", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attislocal", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "attinhcount", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attcollation", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "attacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + { + Name: "attoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "attfdwoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "attmissingval", + Type: ast.TypeName{Name: "anyarray"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_auth_members", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "roleid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "member", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "grantor", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "admin_option", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_authid", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rolname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "rolsuper", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolinherit", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolcreaterole", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolcreatedb", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolcanlogin", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolreplication", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolbypassrls", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "rolconnlimit", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rolpassword", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "rolvaliduntil", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_available_extension_versions", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "version", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "installed", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "superuser", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "trusted", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "relocatable", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "schema", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "requires", + Type: ast.TypeName{Name: "_name"}, + IsArray: true, + }, + { + Name: "comment", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_available_extensions", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "default_version", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "installed_version", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "comment", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_cast", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "castsource", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "casttarget", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "castfunc", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "castcontext", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "castmethod", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_class", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "relnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "reltype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "reloftype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relam", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relfilenode", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "reltablespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relpages", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "reltuples", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relallvisible", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "reltoastrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relhasindex", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relisshared", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relpersistence", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relkind", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relnatts", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "relchecks", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "relhasrules", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relhastriggers", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relhassubclass", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relrowsecurity", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relforcerowsecurity", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relispopulated", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relreplident", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relispartition", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "relrewrite", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relfrozenxid", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relminmxid", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "relacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + { + Name: "reloptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "relpartbound", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_collation", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "collname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "collnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "collowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "collprovider", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "collisdeterministic", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "collencoding", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "collcollate", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "collctype", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "collversion", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_config", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "setting", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_constraint", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "connamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "contype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "condeferrable", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "condeferred", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "convalidated", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "conrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "contypid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conindid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conparentid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "confrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "confupdtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "confdeltype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "confmatchtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "conislocal", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "coninhcount", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "connoinherit", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "conkey", + Type: ast.TypeName{Name: "_int2"}, + IsArray: true, + }, + { + Name: "confkey", + Type: ast.TypeName{Name: "_int2"}, + IsArray: true, + }, + { + Name: "conpfeqop", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "conppeqop", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "conffeqop", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "conexclop", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "conbin", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_conversion", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "connamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conforencoding", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "contoencoding", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "conproc", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "condefault", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_cursors", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "statement", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "is_holdable", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "is_binary", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "is_scrollable", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "creation_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_database", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "datdba", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "encoding", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datcollate", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "datctype", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "datistemplate", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "datallowconn", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "datconnlimit", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datlastsysoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datfrozenxid", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datminmxid", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "dattablespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "datacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_db_role_setting", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "setdatabase", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "setrole", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "setconfig", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_default_acl", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "defaclrole", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "defaclnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "defaclobjtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "defaclacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsNotNull: true, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_depend", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "classid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "refclassid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "refobjid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "refobjsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "deptype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_description", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "description", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_enum", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "enumtypid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "enumsortorder", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "enumlabel", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_event_trigger", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "evtname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "evtevent", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "evtowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "evtfoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "evtenabled", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "evttags", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_extension", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "extname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "extowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "extnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "extrelocatable", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "extversion", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "extconfig", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "extcondition", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_file_settings", + }, + Columns: []*catalog.Column{ + { + Name: "sourcefile", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sourceline", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "seqno", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "setting", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "applied", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "error", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_foreign_data_wrapper", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "fdwname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "fdwowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "fdwhandler", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "fdwvalidator", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "fdwacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + { + Name: "fdwoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_foreign_server", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "srvname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "srvowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "srvfdw", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "srvtype", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "srvversion", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "srvacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + { + Name: "srvoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_foreign_table", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "ftrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ftserver", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ftoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_group", + }, + Columns: []*catalog.Column{ + { + Name: "groname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "grosysid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "grolist", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_hba_file_rules", + }, + Columns: []*catalog.Column{ + { + Name: "line_number", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "type", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "database", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "user_name", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "address", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "netmask", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "auth_method", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "options", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "error", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_index", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "indrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "indnatts", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "indnkeyatts", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "indisunique", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisprimary", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisexclusion", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indimmediate", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisclustered", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisvalid", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indcheckxmin", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisready", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indislive", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indisreplident", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "indkey", + Type: ast.TypeName{Name: "int2vector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "indcollation", + Type: ast.TypeName{Name: "oidvector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "indclass", + Type: ast.TypeName{Name: "oidvector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "indoption", + Type: ast.TypeName{Name: "int2vector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "indexprs", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + { + Name: "indpred", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablespace", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexdef", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_inherits", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "inhrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "inhparent", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "inhseqno", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_init_privs", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "privtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "initprivs", + Type: ast.TypeName{Name: "_aclitem"}, + IsNotNull: true, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_language", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lanname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "lanowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lanispl", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "lanpltrusted", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "lanplcallfoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "laninline", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lanvalidator", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lanacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_largeobject", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "loid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "pageno", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "data", + Type: ast.TypeName{Name: "bytea"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_largeobject_metadata", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lomowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "lomacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_locks", + }, + Columns: []*catalog.Column{ + { + Name: "locktype", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "database", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "relation", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "page", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "tuple", + Type: ast.TypeName{Name: "int2"}, + Length: toPointer(2), + }, + { + Name: "virtualxid", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "transactionid", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "classid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "objid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int2"}, + Length: toPointer(2), + }, + { + Name: "virtualtransaction", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "mode", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "granted", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "fastpath", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_matviews", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "matviewname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "matviewowner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablespace", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "hasindexes", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "ispopulated", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "definition", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_namespace", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "nspname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "nspowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "nspacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_opclass", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcmethod", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "opcnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcfamily", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcintype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opcdefault", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "opckeytype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_operator", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "oprnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprkind", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "oprcanmerge", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "oprcanhash", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "oprleft", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprright", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprresult", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprcom", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprnegate", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprcode", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprrest", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "oprjoin", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_opfamily", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opfmethod", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opfname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "opfnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "opfowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_partitioned_table", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "partrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "partstrat", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "partnatts", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "partdefid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "partattrs", + Type: ast.TypeName{Name: "int2vector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "partclass", + Type: ast.TypeName{Name: "oidvector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "partcollation", + Type: ast.TypeName{Name: "oidvector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "partexprs", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_policies", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "policyname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "permissive", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "roles", + Type: ast.TypeName{Name: "_name"}, + IsArray: true, + }, + { + Name: "cmd", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "qual", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "with_check", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_policy", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "polname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "polrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "polcmd", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "polpermissive", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "polroles", + Type: ast.TypeName{Name: "_oid"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "polqual", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + { + Name: "polwithcheck", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_prepared_statements", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "statement", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "prepare_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "parameter_types", + Type: ast.TypeName{Name: "_regtype"}, + IsArray: true, + }, + { + Name: "from_sql", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_prepared_xacts", + }, + Columns: []*catalog.Column{ + { + Name: "transaction", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "gid", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "prepared", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "owner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "database", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_proc", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "proname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "pronamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "proowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prolang", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "procost", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prorows", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "provariadic", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prosupport", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prokind", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "prosecdef", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "proleakproof", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "proisstrict", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "proretset", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "provolatile", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "proparallel", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pronargs", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "pronargdefaults", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "prorettype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "proargtypes", + Type: ast.TypeName{Name: "oidvector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "proallargtypes", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "proargmodes", + Type: ast.TypeName{Name: "_char"}, + IsArray: true, + }, + { + Name: "proargnames", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "proargdefaults", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + { + Name: "protrftypes", + Type: ast.TypeName{Name: "_oid"}, + IsArray: true, + }, + { + Name: "prosrc", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "probin", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "proconfig", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "proacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_publication", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "pubname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "pubowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "puballtables", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pubinsert", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pubupdate", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pubdelete", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pubtruncate", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "pubviaroot", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_publication_rel", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prpubid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "prrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_publication_tables", + }, + Columns: []*catalog.Column{ + { + Name: "pubname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_range", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "rngtypid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rngsubtype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rngcollation", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rngsubopc", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rngcanonical", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rngsubdiff", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_replication_origin", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "roident", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "roname", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_replication_origin_status", + }, + Columns: []*catalog.Column{ + { + Name: "local_id", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "external_id", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "remote_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "local_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_replication_slots", + }, + Columns: []*catalog.Column{ + { + Name: "slot_name", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "plugin", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "slot_type", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "datoid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "database", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "temporary", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "active", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "active_pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "catalog_xmin", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "restart_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "confirmed_flush_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "wal_status", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "safe_wal_size", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_rewrite", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "rulename", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "ev_class", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ev_type", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "ev_enabled", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "is_instead", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "ev_qual", + Type: ast.TypeName{Name: "pg_node_tree"}, + IsNotNull: true, + }, + { + Name: "ev_action", + Type: ast.TypeName{Name: "pg_node_tree"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_roles", + }, + Columns: []*catalog.Column{ + { + Name: "rolname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "rolsuper", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolinherit", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolcreaterole", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolcreatedb", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolcanlogin", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolreplication", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolconnlimit", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "rolpassword", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "rolvaliduntil", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "rolbypassrls", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rolconfig", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_rules", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "rulename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "definition", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_seclabel", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "provider", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "label", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_seclabels", + }, + Columns: []*catalog.Column{ + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "objtype", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "objnamespace", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "objname", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "provider", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "label", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_sequence", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "seqrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "seqtypid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "seqstart", + Type: ast.TypeName{Name: "int8"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "seqincrement", + Type: ast.TypeName{Name: "int8"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "seqmax", + Type: ast.TypeName{Name: "int8"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "seqmin", + Type: ast.TypeName{Name: "int8"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "seqcache", + Type: ast.TypeName{Name: "int8"}, + IsNotNull: true, + Length: toPointer(8), + }, + { + Name: "seqcycle", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_sequences", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "sequencename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "sequenceowner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "data_type", + Type: ast.TypeName{Name: "regtype"}, + Length: toPointer(4), + }, + { + Name: "start_value", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "min_value", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "max_value", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "increment_by", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "cycle", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "cache_size", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_value", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_settings", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "setting", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "unit", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "category", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "short_desc", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "extra_desc", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "context", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "vartype", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "source", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "min_val", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "max_val", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "enumvals", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "boot_val", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "reset_val", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sourcefile", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sourceline", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "pending_restart", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_shadow", + }, + Columns: []*catalog.Column{ + { + Name: "usename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "usesysid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "usecreatedb", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "usesuper", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "userepl", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "usebypassrls", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "passwd", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "valuntil", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "useconfig", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_shdepend", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "dbid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "objsubid", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "refclassid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "refobjid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "deptype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_shdescription", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "description", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_shmem_allocations", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "off", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "size", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "allocated_size", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_shseclabel", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "objoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "classoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "provider", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "label", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_activity", + }, + Columns: []*catalog.Column{ + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "leader_pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "usesysid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "usename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "application_name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "client_addr", + Type: ast.TypeName{Name: "inet"}, + }, + { + Name: "client_hostname", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "client_port", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "backend_start", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "xact_start", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "query_start", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "state_change", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "wait_event_type", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "wait_event", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "state", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "backend_xid", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "backend_xmin", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "query", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "backend_type", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_all_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_all_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_live_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_dead_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_mod_since_analyze", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_ins_since_vacuum", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_vacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autovacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_analyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autoanalyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "vacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autovacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "analyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autoanalyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_archiver", + }, + Columns: []*catalog.Column{ + { + Name: "archived_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_archived_wal", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "last_archived_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "failed_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_failed_wal", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "last_failed_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "stats_reset", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_bgwriter", + }, + Columns: []*catalog.Column{ + { + Name: "checkpoints_timed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "checkpoints_req", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "checkpoint_write_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "checkpoint_sync_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "buffers_checkpoint", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "buffers_clean", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "maxwritten_clean", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "buffers_backend", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "buffers_backend_fsync", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "buffers_alloc", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "stats_reset", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_database", + }, + Columns: []*catalog.Column{ + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "numbackends", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "xact_commit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "xact_rollback", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tup_returned", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tup_fetched", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tup_inserted", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tup_updated", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tup_deleted", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "conflicts", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "temp_files", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "temp_bytes", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "deadlocks", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "checksum_failures", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "checksum_last_failure", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "blk_read_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "blk_write_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "stats_reset", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_database_conflicts", + }, + Columns: []*catalog.Column{ + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "confl_tablespace", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "confl_lock", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "confl_snapshot", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "confl_bufferpin", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "confl_deadlock", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_gssapi", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "gss_authenticated", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "principal", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "encrypted", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_progress_analyze", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "phase", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sample_blks_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "sample_blks_scanned", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "ext_stats_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "ext_stats_computed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "child_tables_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "child_tables_done", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "current_child_table_relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_progress_basebackup", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "phase", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "backup_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "backup_streamed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tablespaces_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tablespaces_streamed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_progress_cluster", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "command", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "phase", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "cluster_index_relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "heap_tuples_scanned", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_tuples_written", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_scanned", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "index_rebuild_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_progress_create_index", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "index_relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "command", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "phase", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "lockers_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "lockers_done", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "current_locker_pid", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blocks_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blocks_done", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tuples_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tuples_done", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "partitions_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "partitions_done", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_progress_vacuum", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "datid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "datname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "phase", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "heap_blks_total", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_scanned", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_vacuumed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "index_vacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "max_dead_tuples", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "num_dead_tuples", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_replication", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "usesysid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "usename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "application_name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "client_addr", + Type: ast.TypeName{Name: "inet"}, + }, + { + Name: "client_hostname", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "client_port", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "backend_start", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "backend_xmin", + Type: ast.TypeName{Name: "xid"}, + Length: toPointer(4), + }, + { + Name: "state", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sent_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "write_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "flush_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "replay_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "write_lag", + Type: ast.TypeName{Name: "interval"}, + Length: toPointer(16), + }, + { + Name: "flush_lag", + Type: ast.TypeName{Name: "interval"}, + Length: toPointer(16), + }, + { + Name: "replay_lag", + Type: ast.TypeName{Name: "interval"}, + Length: toPointer(16), + }, + { + Name: "sync_priority", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "sync_state", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "reply_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_slru", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "blks_zeroed", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_written", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_exists", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "flushes", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "truncates", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "stats_reset", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_ssl", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "ssl", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "version", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "cipher", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "bits", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "compression", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "client_dn", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "client_serial", + Type: ast.TypeName{Name: "numeric"}, + }, + { + Name: "issuer_dn", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_subscription", + }, + Columns: []*catalog.Column{ + { + Name: "subid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "subname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "received_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "last_msg_send_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_msg_receipt_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "latest_end_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "latest_end_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_sys_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_sys_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_live_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_dead_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_mod_since_analyze", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_ins_since_vacuum", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_vacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autovacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_analyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autoanalyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "vacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autovacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "analyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autoanalyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_user_functions", + }, + Columns: []*catalog.Column{ + { + Name: "funcid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "funcname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "calls", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "total_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "self_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_user_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_user_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_live_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_dead_tup", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_mod_since_analyze", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_ins_since_vacuum", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "last_vacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autovacuum", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_analyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_autoanalyze", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "vacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autovacuum_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "analyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "autoanalyze_count", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_wal_receiver", + }, + Columns: []*catalog.Column{ + { + Name: "pid", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "status", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "receive_start_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "receive_start_tli", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "written_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "flushed_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "received_tli", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "last_msg_send_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "last_msg_receipt_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "latest_end_lsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + { + Name: "latest_end_time", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), + }, + { + Name: "slot_name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sender_host", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "sender_port", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "conninfo", + Type: ast.TypeName{Name: "text"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_xact_all_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_xact_sys_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_xact_user_functions", + }, + Columns: []*catalog.Column{ + { + Name: "funcid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "funcname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "calls", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "total_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + { + Name: "self_time", + Type: ast.TypeName{Name: "float8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stat_xact_user_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "seq_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "seq_tup_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_scan", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_tup_fetch", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_ins", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_del", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "n_tup_hot_upd", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_all_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_all_sequences", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_all_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "heap_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_sys_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_sys_sequences", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_sys_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "heap_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_user_indexes", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "indexrelid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "indexrelname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_user_sequences", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statio_user_tables", + }, + Columns: []*catalog.Column{ + { + Name: "relid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), + }, + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "relname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "heap_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "heap_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "idx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "toast_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_read", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + { + Name: "tidx_blks_hit", + Type: ast.TypeName{Name: "int8"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statistic", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "starelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "staattnum", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "stainherit", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "stanullfrac", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stawidth", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stadistinct", + Type: ast.TypeName{Name: "float4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stakind1", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "stakind2", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "stakind3", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "stakind4", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "stakind5", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "staop1", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "staop2", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "staop3", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "staop4", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "staop5", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stacoll1", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stacoll2", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stacoll3", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stacoll4", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stacoll5", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stanumbers1", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "stanumbers2", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "stanumbers3", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "stanumbers4", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "stanumbers5", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "stavalues1", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "stavalues2", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "stavalues3", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "stavalues4", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "stavalues5", + Type: ast.TypeName{Name: "anyarray"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statistic_ext", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "stxnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxstattarget", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxkeys", + Type: ast.TypeName{Name: "int2vector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "stxkind", + Type: ast.TypeName{Name: "_char"}, + IsNotNull: true, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_statistic_ext_data", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "stxoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "stxdndistinct", + Type: ast.TypeName{Name: "pg_ndistinct"}, + }, + { + Name: "stxddependencies", + Type: ast.TypeName{Name: "pg_dependencies"}, + }, + { + Name: "stxdmcv", + Type: ast.TypeName{Name: "pg_mcv_list"}, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stats", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "attname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "inherited", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "null_frac", + Type: ast.TypeName{Name: "float4"}, + Length: toPointer(4), + }, + { + Name: "avg_width", + Type: ast.TypeName{Name: "int4"}, + Length: toPointer(4), + }, + { + Name: "n_distinct", + Type: ast.TypeName{Name: "float4"}, + Length: toPointer(4), + }, + { + Name: "most_common_vals", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "most_common_freqs", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "histogram_bounds", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "correlation", + Type: ast.TypeName{Name: "float4"}, + Length: toPointer(4), + }, + { + Name: "most_common_elems", + Type: ast.TypeName{Name: "anyarray"}, + }, + { + Name: "most_common_elem_freqs", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + { + Name: "elem_count_histogram", + Type: ast.TypeName{Name: "_float4"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_stats_ext", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "statistics_schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "statistics_name", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "statistics_owner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "attnames", + Type: ast.TypeName{Name: "_name"}, + IsArray: true, + }, + { + Name: "kinds", + Type: ast.TypeName{Name: "_char"}, + IsArray: true, + }, + { + Name: "n_distinct", + Type: ast.TypeName{Name: "pg_ndistinct"}, + }, + { + Name: "dependencies", + Type: ast.TypeName{Name: "pg_dependencies"}, + }, + { + Name: "most_common_vals", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + { + Name: "most_common_val_nulls", + Type: ast.TypeName{Name: "_bool"}, + IsArray: true, + }, + { + Name: "most_common_freqs", + Type: ast.TypeName{Name: "_float8"}, + IsArray: true, + }, + { + Name: "most_common_base_freqs", + Type: ast.TypeName{Name: "_float8"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_subscription", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "subdbid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "subname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "subowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "subenabled", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "subconninfo", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "subslotname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "subsynccommit", + Type: ast.TypeName{Name: "text"}, + IsNotNull: true, + }, + { + Name: "subpublications", + Type: ast.TypeName{Name: "_text"}, + IsNotNull: true, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_subscription_rel", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "srsubid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "srrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "srsubstate", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "srsublsn", + Type: ast.TypeName{Name: "pg_lsn"}, + Length: toPointer(8), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_tables", + }, + Columns: []*catalog.Column{ + { + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tableowner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tablespace", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "hasindexes", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "hasrules", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "hastriggers", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + { + Name: "rowsecurity", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_tablespace", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "spcname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "spcowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "spcacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, + }, + { + Name: "spcoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_timezone_abbrevs", + }, + Columns: []*catalog.Column{ + { + Name: "abbrev", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "utc_offset", + Type: ast.TypeName{Name: "interval"}, + Length: toPointer(16), + }, + { + Name: "is_dst", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_timezone_names", + }, + Columns: []*catalog.Column{ + { + Name: "name", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "abbrev", + Type: ast.TypeName{Name: "text"}, + }, + { + Name: "utc_offset", + Type: ast.TypeName{Name: "interval"}, + Length: toPointer(16), + }, + { + Name: "is_dst", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_transform", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "trftype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "trflang", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "trffromsql", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "trftosql", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_trigger", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgparentid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "tgfoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgtype", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "tgenabled", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "tgisinternal", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "tgconstrrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgconstrindid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgconstraint", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "tgdeferrable", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "tginitdeferred", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), + }, + { + Name: "tgnargs", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), + }, + { + Name: "tgattr", + Type: ast.TypeName{Name: "int2vector"}, + IsNotNull: true, + IsArray: true, + }, + { + Name: "tgargs", + Type: ast.TypeName{Name: "bytea"}, + IsNotNull: true, + }, + { + Name: "tgqual", + Type: ast.TypeName{Name: "pg_node_tree"}, + }, + { + Name: "tgoldtable", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "tgnewtable", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + }, + }, + { + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_ts_config", + }, + Columns: []*catalog.Column{ + { + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cfgname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), + }, + { + Name: "cfgnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "cfgowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "var_pop", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Name: "cfgparser", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "var_pop", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_ts_config_map", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "numeric"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_pop", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "var_pop", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "var_pop", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_pop", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_samp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "var_samp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Name: "mapcfg", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_samp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Name: "maptokentype", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_samp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Name: "mapseqno", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "var_samp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Name: "mapdict", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, }, - ReturnType: &ast.TypeName{Name: "numeric"}, }, { - Name: "var_samp", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_ts_dict", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "double precision"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "varbit", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "boolean"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "bit varying"}, - }, - { - Name: "varbit_in", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "oid"}, + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "bit varying"}, - }, - { - Name: "varbit_out", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "dictname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "varbit_send", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "dictnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "varbitcmp", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "dictowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "dicttemplate", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "dictinitoption", + Type: ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "integer"}, }, { - Name: "varbiteq", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_ts_parser", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbitge", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbitgt", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbitle", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "prsname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbitlt", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "prsnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "prsstart", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbitne", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "prstoken", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "bit varying"}, + Name: "prsend", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "varbittypmodin", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring[]"}, + Name: "prsheadline", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "varbittypmodout", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Name: "prslextype", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, }, - ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "varchar", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_ts_template", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "name"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "character varying"}, - }, - { - Name: "varchar", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character varying"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "boolean"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "character varying"}, - }, - { - Name: "varcharin", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "oid"}, + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "character varying"}, - }, - { - Name: "varcharout", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character varying"}, + Name: "tmplname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "varcharsend", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "character varying"}, + Name: "tmplnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "varchartypmodin", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring[]"}, + Name: "tmplinit", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "varchartypmodout", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Name: "tmpllexize", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, }, - ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "variance", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_type", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "numeric"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "variance", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "bigint"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "variance", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "integer"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "variance", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "smallint"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), + }, + { + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "typname", + Type: ast.TypeName{Name: "name"}, + IsNotNull: true, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "numeric"}, - }, - { - Name: "variance", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "real"}, + Name: "typnamespace", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "variance", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Name: "typowner", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "version", - Args: []*catalog.Argument{}, - ReturnType: &ast.TypeName{Name: "text"}, - }, - { - Name: "void_in", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, + Name: "typlen", + Type: ast.TypeName{Name: "int2"}, + IsNotNull: true, + Length: toPointer(2), }, - }, - ReturnType: &ast.TypeName{Name: "void"}, - }, - { - Name: "void_out", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "void"}, + Name: "typbyval", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "void_send", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "void"}, + Name: "typtype", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "websearch_to_tsquery", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "typcategory", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "tsquery"}, - }, - { - Name: "websearch_to_tsquery", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "regconfig"}, + Name: "typispreferred", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), }, { - Type: &ast.TypeName{Name: "text"}, + Name: "typisdefined", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "tsquery"}, - }, - { - Name: "width", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "box"}, + Name: "typdelim", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "double precision"}, - }, - { - Name: "width_bucket", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "double precision"}, + Name: "typrelid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "double precision"}, + Name: "typelem", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "double precision"}, + Name: "typarray", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "typinput", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "width_bucket", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "numeric"}, + Name: "typoutput", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "numeric"}, + Name: "typreceive", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "numeric"}, + Name: "typsend", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "typmodin", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "width_bucket", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "anyelement"}, + Name: "typmodout", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "anyarray"}, + Name: "typanalyze", + Type: ast.TypeName{Name: "regproc"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "integer"}, - }, - { - Name: "xideq", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "typalign", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), }, { - Type: &ast.TypeName{Name: "xid"}, + Name: "typstorage", + Type: ast.TypeName{Name: "char"}, + IsNotNull: true, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xideqint4", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "typnotnull", + Type: ast.TypeName{Name: "bool"}, + IsNotNull: true, + Length: toPointer(1), }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "typbasetype", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xidin", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, + Name: "typtypmod", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "xid"}, - }, - { - Name: "xidneq", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "typndims", + Type: ast.TypeName{Name: "int4"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xid"}, + Name: "typcollation", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xidneqint4", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "typdefaultbin", + Type: ast.TypeName{Name: "pg_node_tree"}, }, { - Type: &ast.TypeName{Name: "integer"}, + Name: "typdefault", + Type: ast.TypeName{Name: "text"}, }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xidout", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "typacl", + Type: ast.TypeName{Name: "_aclitem"}, + IsArray: true, }, }, - ReturnType: &ast.TypeName{Name: "cstring"}, }, { - Name: "xidsend", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_user", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "xid"}, + Name: "usename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "xml", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "usesysid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "xml"}, - }, - { - Name: "xml_in", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "cstring"}, + Name: "usecreatedb", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "xml"}, - }, - { - Name: "xml_is_well_formed", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "usesuper", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xml_is_well_formed_content", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "userepl", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xml_is_well_formed_document", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "usebypassrls", + Type: ast.TypeName{Name: "bool"}, + Length: toPointer(1), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xml_out", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Name: "passwd", + Type: ast.TypeName{Name: "text"}, }, - }, - ReturnType: &ast.TypeName{Name: "cstring"}, - }, - { - Name: "xml_send", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Name: "valuntil", + Type: ast.TypeName{Name: "timestamptz"}, + Length: toPointer(8), }, - }, - ReturnType: &ast.TypeName{Name: "bytea"}, - }, - { - Name: "xmlagg", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Name: "useconfig", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, }, }, - ReturnType: &ast.TypeName{Name: "xml"}, }, { - Name: "xmlcomment", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_user_mapping", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "text"}, + Name: "tableoid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "xml"}, - }, - { - Name: "xmlconcat2", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Name: "cmax", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "xmax", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "xml"}, - }, - { - Name: "xmlexists", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "cmin", + Type: ast.TypeName{Name: "cid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "xmin", + Type: ast.TypeName{Name: "xid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xmlvalidate", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "xml"}, + Name: "ctid", + Type: ast.TypeName{Name: "tid"}, + IsNotNull: true, + Length: toPointer(6), }, { - Type: &ast.TypeName{Name: "text"}, + Name: "oid", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, - }, - ReturnType: &ast.TypeName{Name: "boolean"}, - }, - { - Name: "xpath", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "umuser", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "umserver", + Type: ast.TypeName{Name: "oid"}, + IsNotNull: true, + Length: toPointer(4), + }, + { + Name: "umoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, }, }, - ReturnType: &ast.TypeName{Name: "xml[]"}, }, { - Name: "xpath", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_user_mappings", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "text"}, + Name: "umid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "srvid", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "text[]"}, + Name: "srvname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), }, - }, - ReturnType: &ast.TypeName{Name: "xml[]"}, - }, - { - Name: "xpath_exists", - Args: []*catalog.Argument{ { - Type: &ast.TypeName{Name: "text"}, + Name: "umuser", + Type: ast.TypeName{Name: "oid"}, + Length: toPointer(4), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "usename", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "umoptions", + Type: ast.TypeName{Name: "_text"}, + IsArray: true, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, }, { - Name: "xpath_exists", - Args: []*catalog.Argument{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: "pg_catalog", + Name: "pg_views", + }, + Columns: []*catalog.Column{ { - Type: &ast.TypeName{Name: "text"}, + Name: "schemaname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), }, { - Type: &ast.TypeName{Name: "xml"}, + Name: "viewname", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), }, { - Type: &ast.TypeName{Name: "text[]"}, + Name: "viewowner", + Type: ast.TypeName{Name: "name"}, + Length: toPointer(64), + }, + { + Name: "definition", + Type: ast.TypeName{Name: "text"}, }, }, - ReturnType: &ast.TypeName{Name: "boolean"}, }, } return s diff --git a/internal/ext/wasm/wasm.go b/internal/ext/wasm/wasm.go index a55d8551d1..78c20d2b8d 100644 --- a/internal/ext/wasm/wasm.go +++ b/internal/ext/wasm/wasm.go @@ -175,7 +175,31 @@ func (r *Runner) loadWASM(ctx context.Context, cache string, expected string) ([ return wmod, nil } +// removePGCatalog removes the pg_catalog schema from the request. There is a +// mysterious (reason unknown) bug with wasm plugins when a large amount of +// tables (like there are in the catalog) are sent. +// @see https://github.com/kyleconroy/sqlc/pull/1748 +func removePGCatalog(req *plugin.CodeGenRequest) { + if req.Catalog == nil || req.Catalog.Schemas == nil { + return + } + + filtered := make([]*plugin.Schema, 0, len(req.Catalog.Schemas)) + for _, schema := range req.Catalog.Schemas { + if schema.Name == "pg_catalog" { + continue + } + + filtered = append(filtered, schema) + } + + req.Catalog.Schemas = filtered +} + func (r *Runner) Generate(ctx context.Context, req *plugin.CodeGenRequest) (*plugin.CodeGenResponse, error) { + // Remove the pg_catalog schema. Its sheer size causes unknown issues with wasm plugins + removePGCatalog(req) + stdinBlob, err := req.MarshalVT() if err != nil { return nil, err diff --git a/internal/tools/sqlc-pg-gen/main.go b/internal/tools/sqlc-pg-gen/main.go index 990920d1d0..bc7acfae9f 100644 --- a/internal/tools/sqlc-pg-gen/main.go +++ b/internal/tools/sqlc-pg-gen/main.go @@ -20,16 +20,55 @@ import ( // https://stackoverflow.com/questions/25308765/postgresql-how-can-i-inspect-which-arguments-to-a-procedure-have-a-default-valu const catalogFuncs = ` SELECT p.proname as name, - format_type(p.prorettype, NULL), - array(select format_type(unnest(p.proargtypes), NULL)), - p.proargnames, - p.proargnames[p.pronargs-p.pronargdefaults+1:p.pronargs] + format_type(p.prorettype, NULL) as return_type, + arg_types.direct_arg_types, + arg_types.aggregated_arg_types, + p.proargnames as arg_names, + p.proargnames[p.pronargs-p.pronargdefaults+1:p.pronargs] as has_default, + p.prokind::text as kind FROM pg_catalog.pg_proc p LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace +LEFT JOIN pg_catalog.pg_aggregate agg on agg.aggfnoid = p.oid and p.prokind = 'a' +CROSS JOIN LATERAL ( + select + array_agg(format_type(arg_type, NULL)) filter (where agg is null OR argn <= agg.aggnumdirectargs), + array_agg(format_type(arg_type, NULL)) filter (where argn > agg.aggnumdirectargs) + from unnest(p.proargtypes) WITH ORDINALITY as arg_type(arg_type, argn) +) arg_types(direct_arg_types, aggregated_arg_types) WHERE n.nspname OPERATOR(pg_catalog.~) '^(pg_catalog)$' AND p.proargmodes IS NULL AND pg_function_is_visible(p.oid) -ORDER BY 1; +-- The order isn't too important - just that it is stable between runs +ORDER BY 1, 2, 3, 4, 5, 6, 7 +` + +// Relations are the relations available in pg_tables and pg_views +// such as pg_catalog.pg_timezone_names +const relations = ` +with relations as ( + select schemaname, tablename as name from pg_catalog.pg_tables + UNION ALL + select schemaname, viewname as name from pg_catalog.pg_views +) +select + relations.schemaname, + relations.name as tablename, + pg_attribute.attname as column_name, + attnotnull as column_notnull, + column_type.typname as column_type, + nullif(column_type.typlen, -1) as column_length, + column_type.typcategory = 'A' as column_isarray +from relations +inner join pg_catalog.pg_class on pg_class.relname = relations.name +left join pg_catalog.pg_attribute on pg_attribute.attrelid = pg_class.oid +inner join pg_catalog.pg_type column_type on pg_attribute.atttypid = column_type.oid +where relations.schemaname = 'pg_catalog' +-- Make sure these columns are always generated in the same order +-- so that the output is stable +order by + relations.schemaname ASC, + relations.name ASC, + pg_attribute.attnum ASC ` // https://dba.stackexchange.com/questions/255412/how-to-select-functions-that-belong-in-a-given-extension-in-postgresql @@ -46,15 +85,25 @@ WITH extension_funcs AS ( WHERE d.deptype = 'e' AND e.extname = $1 ) SELECT p.proname as name, - format_type(p.prorettype, NULL), - array(select format_type(unnest(p.proargtypes), NULL)), - p.proargnames, - p.proargnames[p.pronargs-p.pronargdefaults+1:p.pronargs] + format_type(p.prorettype, NULL) as return_type, + arg_types.direct_arg_types, + arg_types.aggregated_arg_types, + p.proargnames as arg_names, + p.proargnames[p.pronargs-p.pronargdefaults+1:p.pronargs] as has_default, + p.prokind::text as kind FROM pg_catalog.pg_proc p JOIN extension_funcs ef ON ef.oid = p.oid +LEFT JOIN pg_catalog.pg_aggregate agg on agg.aggfnoid = p.oid and p.prokind = 'a' +CROSS JOIN LATERAL ( + select + array_agg(format_type(arg_type, NULL)) filter (where agg is null OR argn <= agg.aggnumdirectargs), + array_agg(format_type(arg_type, NULL)) filter (where argn > agg.aggnumdirectargs) + from unnest(p.proargtypes) WITH ORDINALITY as arg_type(arg_type, argn) +) arg_types(direct_arg_types, aggregated_arg_types) WHERE p.proargmodes IS NULL AND pg_function_is_visible(p.oid) -ORDER BY 1; +-- The order isn't too important - just that it is stable between runs +ORDER BY 1, 2, 3, 4, 5, 6, 7 ` const catalogTmpl = ` @@ -67,6 +116,14 @@ import ( "github.com/kyleconroy/sqlc/internal/sql/catalog" ) +{{- if .Tables }} +// toPointer converts an int to a pointer without a temporary +// variable at the call-site +func toPointer(x int) *int { + return &x +} +{{- end }} + func {{.Name}}() *catalog.Schema { s := &catalog.Schema{Name: "pg_catalog"} s.Funcs = []*catalog.Function{ @@ -89,6 +146,36 @@ func {{.Name}}() *catalog.Schema { }, {{- end}} } + {{- if .Tables }} + s.Tables = []*catalog.Table { + {{- range .Tables}} + { + Rel: &ast.TableName{ + Catalog: "{{.Rel.Catalog}}", + Schema: "{{.Rel.Schema}}", + Name: "{{.Rel.Name}}", + }, + Columns: []*catalog.Column{ + {{- range .Columns}} + { + Name: "{{.Name}}", + Type: ast.TypeName{Name: "{{.Type.Name}}"}, + {{- if .IsNotNull}} + IsNotNull: true, + {{- end}} + {{- if .IsArray}} + IsArray: true, + {{- end}} + {{- if .Length }} + Length: toPointer({{ .Length }}), + {{- end}} + }, + {{- end}} + }, + }, + {{- end}} + } + {{- end }} return s } ` @@ -115,9 +202,10 @@ func loadExtension(name string) *catalog.Schema { ` type tmplCtx struct { - Pkg string - Name string - Funcs []catalog.Function + Pkg string + Name string + Funcs []catalog.Function + Tables []catalog.Table } func main() { @@ -126,12 +214,25 @@ func main() { } } +// ProcKind is the type that tells what type of routine the pg_proc is +// This corresponds to the pg_proc.prokind column +type ProcKind string + +const ( + ProcKindNormal = ProcKind("f") + ProcKindWindow = ProcKind("w") + ProcKindAggregate = ProcKind("a") + ProcKindProcedure = ProcKind("p") +) + type Proc struct { - Name string - ReturnType string - ArgTypes []string - ArgNames []string - HasDefault []string + Name string + ReturnType string + DirectArgTypes []string + AggregatedArgTypes []string + ArgNames []string + HasDefault []string + Kind ProcKind } func clean(arg string) string { @@ -153,13 +254,13 @@ func (p Proc) Func() catalog.Function { func (p Proc) Args() []*catalog.Argument { defaults := map[string]bool{} var args []*catalog.Argument - if len(p.ArgTypes) == 0 { + if len(p.DirectArgTypes) == 0 { return args } for _, name := range p.HasDefault { defaults[name] = true } - for i, arg := range p.ArgTypes { + for i, arg := range p.DirectArgTypes { var name string if i < len(p.ArgNames) { name = p.ArgNames[i] @@ -173,6 +274,59 @@ func (p Proc) Args() []*catalog.Argument { return args } +func scanTables(rows pgx.Rows) ([]catalog.Table, error) { + defer rows.Close() + // Iterate through the result set + var tables []catalog.Table + var prevTable *catalog.Table + + for rows.Next() { + var schemaName string + var tableName string + var columnName string + var columnNotNull bool + var columnType string + var columnLength *int + var columnIsArray bool + err := rows.Scan( + &schemaName, + &tableName, + &columnName, + &columnNotNull, + &columnType, + &columnLength, + &columnIsArray, + ) + if err != nil { + return nil, err + } + + if prevTable == nil || tableName != prevTable.Rel.Name { + // We are on the same table, just keep adding columns + t := catalog.Table{ + Rel: &ast.TableName{ + Catalog: "pg_catalog", + Schema: schemaName, + Name: tableName, + }, + } + + tables = append(tables, t) + prevTable = &tables[len(tables)-1] + } + + prevTable.Columns = append(prevTable.Columns, &catalog.Column{ + Name: columnName, + Type: ast.TypeName{Name: columnType}, + IsNotNull: columnNotNull, + IsArray: columnIsArray, + Length: columnLength, + }) + } + + return tables, rows.Err() +} + func scanFuncs(rows pgx.Rows) ([]catalog.Function, error) { defer rows.Close() // Iterate through the result set @@ -182,9 +336,11 @@ func scanFuncs(rows pgx.Rows) ([]catalog.Function, error) { err := rows.Scan( &p.Name, &p.ReturnType, - &p.ArgTypes, + &p.DirectArgTypes, + &p.AggregatedArgTypes, &p.ArgNames, &p.HasDefault, + &p.Kind, ) if err != nil { return nil, err @@ -205,8 +361,8 @@ func scanFuncs(rows pgx.Rows) ([]catalog.Function, error) { // // https://www.postgresql.org/docs/current/datatype-pseudo.html var skip bool - for i := range p.ArgTypes { - if p.ArgTypes[i] == "internal" { + for i := range p.DirectArgTypes { + if p.DirectArgTypes[i] == "internal" { skip = true } } @@ -238,12 +394,24 @@ func run(ctx context.Context) error { if err != nil { return err } + funcs, err := scanFuncs(rows) if err != nil { return err } + + rows, err = conn.Query(ctx, relations) + if err != nil { + return err + } + + tables, err := scanTables(rows) + if err != nil { + return err + } + out := bytes.NewBuffer([]byte{}) - if err := tmpl.Execute(out, tmplCtx{Pkg: "postgresql", Name: "genPGCatalog", Funcs: funcs}); err != nil { + if err := tmpl.Execute(out, tmplCtx{Pkg: "postgresql", Name: "genPGCatalog", Funcs: funcs, Tables: tables}); err != nil { return err } code, err := format.Source(out.Bytes())