Skip to content

Commit

Permalink
feat: add ForeignDataWrapperRelationId oid
Browse files Browse the repository at this point in the history
  • Loading branch information
burmecia committed Dec 11, 2023
1 parent bc611d4 commit e06702e
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pgrx-pg-sys/src/include/pg12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2645,6 +2645,15 @@ pub const Anum_pg_extension_extversion: u32 = 6;
pub const Anum_pg_extension_extconfig: u32 = 7;
pub const Anum_pg_extension_extcondition: u32 = 8;
pub const Natts_pg_extension: u32 = 8;
pub const ForeignDataWrapperRelationId: Oid = Oid(2328),
pub const Anum_pg_foreign_data_wrapper_oid: u32 = 1;
pub const Anum_pg_foreign_data_wrapper_fdwname: u32 = 2;
pub const Anum_pg_foreign_data_wrapper_fdwowner: u32 = 3;
pub const Anum_pg_foreign_data_wrapper_fdwhandler: u32 = 4;
pub const Anum_pg_foreign_data_wrapper_fdwvalidator: u32 = 5;
pub const Anum_pg_foreign_data_wrapper_fdwacl: u32 = 6;
pub const Anum_pg_foreign_data_wrapper_fdwoptions: u32 = 7;
pub const Natts_pg_foreign_data_wrapper: u32 = 7;
pub const ForeignServerRelationId: Oid = Oid(1417);
pub const Anum_pg_foreign_server_oid: u32 = 1;
pub const Anum_pg_foreign_server_srvname: u32 = 2;
Expand Down
2 changes: 2 additions & 0 deletions pgrx-pg-sys/src/include/pg12_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ pub enum BuiltinOid {
FLOAT8ARRAYOID = 1022,
FLOAT8OID = 701,
FLOAT8_BTREE_OPS_OID = 3123,
ForeignDataWrapperRelationId = 2328,
ForeignServerRelationId = 1417,
ForeignTableRelationId = 3118,
GIN_AM_OID = 2742,
Expand Down Expand Up @@ -291,6 +292,7 @@ impl BuiltinOid {
1022 => Ok(BuiltinOid::FLOAT8ARRAYOID),
701 => Ok(BuiltinOid::FLOAT8OID),
3123 => Ok(BuiltinOid::FLOAT8_BTREE_OPS_OID),
2328 => Ok(BuiltinOid::ForeignDataWrapperRelationId),
1417 => Ok(BuiltinOid::ForeignServerRelationId),
3118 => Ok(BuiltinOid::ForeignTableRelationId),
2742 => Ok(BuiltinOid::GIN_AM_OID),
Expand Down
9 changes: 9 additions & 0 deletions pgrx-pg-sys/src/include/pg13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2843,6 +2843,15 @@ pub const Anum_pg_extension_extversion: u32 = 6;
pub const Anum_pg_extension_extconfig: u32 = 7;
pub const Anum_pg_extension_extcondition: u32 = 8;
pub const Natts_pg_extension: u32 = 8;
pub const ForeignDataWrapperRelationId: Oid = Oid(2328),
pub const Anum_pg_foreign_data_wrapper_oid: u32 = 1;
pub const Anum_pg_foreign_data_wrapper_fdwname: u32 = 2;
pub const Anum_pg_foreign_data_wrapper_fdwowner: u32 = 3;
pub const Anum_pg_foreign_data_wrapper_fdwhandler: u32 = 4;
pub const Anum_pg_foreign_data_wrapper_fdwvalidator: u32 = 5;
pub const Anum_pg_foreign_data_wrapper_fdwacl: u32 = 6;
pub const Anum_pg_foreign_data_wrapper_fdwoptions: u32 = 7;
pub const Natts_pg_foreign_data_wrapper: u32 = 7;
pub const ForeignServerRelationId: Oid = Oid(1417);
pub const Anum_pg_foreign_server_oid: u32 = 1;
pub const Anum_pg_foreign_server_srvname: u32 = 2;
Expand Down
2 changes: 2 additions & 0 deletions pgrx-pg-sys/src/include/pg13_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pub enum BuiltinOid {
FLOAT8ARRAYOID = 1022,
FLOAT8OID = 701,
FLOAT8_BTREE_OPS_OID = 3123,
ForeignDataWrapperRelationId = 2328,
ForeignServerRelationId = 1417,
ForeignTableRelationId = 3118,
GIN_AM_OID = 2742,
Expand Down Expand Up @@ -304,6 +305,7 @@ impl BuiltinOid {
1022 => Ok(BuiltinOid::FLOAT8ARRAYOID),
701 => Ok(BuiltinOid::FLOAT8OID),
3123 => Ok(BuiltinOid::FLOAT8_BTREE_OPS_OID),
2328 => Ok(BuiltinOid::ForeignDataWrapperRelationId),
1417 => Ok(BuiltinOid::ForeignServerRelationId),
3118 => Ok(BuiltinOid::ForeignTableRelationId),
2742 => Ok(BuiltinOid::GIN_AM_OID),
Expand Down
11 changes: 11 additions & 0 deletions pgrx-pg-sys/src/include/pg14.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2665,6 +2665,17 @@ pub const Anum_pg_extension_extcondition: u32 = 8;
pub const Natts_pg_extension: u32 = 8;
pub const ExtensionOidIndexId: u32 = 3080;
pub const ExtensionNameIndexId: u32 = 3081;
pub const ForeignDataWrapperRelationId: Oid = Oid(2328),
pub const Anum_pg_foreign_data_wrapper_oid: u32 = 1;
pub const Anum_pg_foreign_data_wrapper_fdwname: u32 = 2;
pub const Anum_pg_foreign_data_wrapper_fdwowner: u32 = 3;
pub const Anum_pg_foreign_data_wrapper_fdwhandler: u32 = 4;
pub const Anum_pg_foreign_data_wrapper_fdwvalidator: u32 = 5;
pub const Anum_pg_foreign_data_wrapper_fdwacl: u32 = 6;
pub const Anum_pg_foreign_data_wrapper_fdwoptions: u32 = 7;
pub const Natts_pg_foreign_data_wrapper: u32 = 7;
pub const ForeignDataWrapperOidIndexId: u32 = 112;
pub const ForeignDataWrapperNameIndexId: u32 = 548;
pub const ForeignServerRelationId: Oid = Oid(1417);
pub const Anum_pg_foreign_server_oid: u32 = 1;
pub const Anum_pg_foreign_server_srvname: u32 = 2;
Expand Down
2 changes: 2 additions & 0 deletions pgrx-pg-sys/src/include/pg14_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub enum BuiltinOid {
FLOAT8ARRAYOID = 1022,
FLOAT8OID = 701,
FLOAT8_BTREE_OPS_OID = 3123,
ForeignDataWrapperRelationId = 2328,
ForeignServerRelationId = 1417,
ForeignTableRelationId = 3118,
GIN_AM_OID = 2742,
Expand Down Expand Up @@ -326,6 +327,7 @@ impl BuiltinOid {
1022 => Ok(BuiltinOid::FLOAT8ARRAYOID),
701 => Ok(BuiltinOid::FLOAT8OID),
3123 => Ok(BuiltinOid::FLOAT8_BTREE_OPS_OID),
2328 => Ok(BuiltinOid::ForeignDataWrapperRelationId),
1417 => Ok(BuiltinOid::ForeignServerRelationId),
3118 => Ok(BuiltinOid::ForeignTableRelationId),
2742 => Ok(BuiltinOid::GIN_AM_OID),
Expand Down
11 changes: 11 additions & 0 deletions pgrx-pg-sys/src/include/pg15.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2717,6 +2717,17 @@ pub const Anum_pg_extension_extversion: u32 = 6;
pub const Anum_pg_extension_extconfig: u32 = 7;
pub const Anum_pg_extension_extcondition: u32 = 8;
pub const Natts_pg_extension: u32 = 8;
pub const ForeignDataWrapperRelationId: Oid = Oid(2328),
pub const ForeignDataWrapperOidIndexId: u32 = 112;
pub const ForeignDataWrapperNameIndexId: u32 = 548;
pub const Anum_pg_foreign_data_wrapper_oid: u32 = 1;
pub const Anum_pg_foreign_data_wrapper_fdwname: u32 = 2;
pub const Anum_pg_foreign_data_wrapper_fdwowner: u32 = 3;
pub const Anum_pg_foreign_data_wrapper_fdwhandler: u32 = 4;
pub const Anum_pg_foreign_data_wrapper_fdwvalidator: u32 = 5;
pub const Anum_pg_foreign_data_wrapper_fdwacl: u32 = 6;
pub const Anum_pg_foreign_data_wrapper_fdwoptions: u32 = 7;
pub const Natts_pg_foreign_data_wrapper: u32 = 7;
pub const ForeignServerRelationId: Oid = Oid(1417);
pub const ForeignServerOidIndexId: u32 = 113;
pub const ForeignServerNameIndexId: u32 = 549;
Expand Down
2 changes: 2 additions & 0 deletions pgrx-pg-sys/src/include/pg15_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub enum BuiltinOid {
FLOAT8ARRAYOID = 1022,
FLOAT8OID = 701,
FLOAT8_BTREE_OPS_OID = 3123,
ForeignDataWrapperRelationId = 2328,
ForeignServerRelationId = 1417,
ForeignTableRelationId = 3118,
GIN_AM_OID = 2742,
Expand Down Expand Up @@ -325,6 +326,7 @@ impl BuiltinOid {
1022 => Ok(BuiltinOid::FLOAT8ARRAYOID),
701 => Ok(BuiltinOid::FLOAT8OID),
3123 => Ok(BuiltinOid::FLOAT8_BTREE_OPS_OID),
2328 => Ok(BuiltinOid::ForeignDataWrapperRelationId),
1417 => Ok(BuiltinOid::ForeignServerRelationId),
3118 => Ok(BuiltinOid::ForeignTableRelationId),
2742 => Ok(BuiltinOid::GIN_AM_OID),
Expand Down
11 changes: 11 additions & 0 deletions pgrx-pg-sys/src/include/pg16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2654,6 +2654,17 @@ pub const Anum_pg_extension_extversion: u32 = 6;
pub const Anum_pg_extension_extconfig: u32 = 7;
pub const Anum_pg_extension_extcondition: u32 = 8;
pub const Natts_pg_extension: u32 = 8;
pub const ForeignDataWrapperRelationId: Oid = Oid(2328),
pub const ForeignDataWrapperOidIndexId: u32 = 112;
pub const ForeignDataWrapperNameIndexId: u32 = 548;
pub const Anum_pg_foreign_data_wrapper_oid: u32 = 1;
pub const Anum_pg_foreign_data_wrapper_fdwname: u32 = 2;
pub const Anum_pg_foreign_data_wrapper_fdwowner: u32 = 3;
pub const Anum_pg_foreign_data_wrapper_fdwhandler: u32 = 4;
pub const Anum_pg_foreign_data_wrapper_fdwvalidator: u32 = 5;
pub const Anum_pg_foreign_data_wrapper_fdwacl: u32 = 6;
pub const Anum_pg_foreign_data_wrapper_fdwoptions: u32 = 7;
pub const Natts_pg_foreign_data_wrapper: u32 = 7;
pub const ForeignServerRelationId: Oid = Oid(1417);
pub const ForeignServerOidIndexId: u32 = 113;
pub const ForeignServerNameIndexId: u32 = 549;
Expand Down
2 changes: 2 additions & 0 deletions pgrx-pg-sys/src/include/pg16_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ pub enum BuiltinOid {
FLOAT8ARRAYOID = 1022,
FLOAT8OID = 701,
FLOAT8_BTREE_OPS_OID = 3123,
ForeignDataWrapperRelationId = 2328,
ForeignServerRelationId = 1417,
ForeignTableRelationId = 3118,
GIN_AM_OID = 2742,
Expand Down Expand Up @@ -325,6 +326,7 @@ impl BuiltinOid {
1022 => Ok(BuiltinOid::FLOAT8ARRAYOID),
701 => Ok(BuiltinOid::FLOAT8OID),
3123 => Ok(BuiltinOid::FLOAT8_BTREE_OPS_OID),
2328 => Ok(BuiltinOid::ForeignDataWrapperRelationId),
1417 => Ok(BuiltinOid::ForeignServerRelationId),
3118 => Ok(BuiltinOid::ForeignTableRelationId),
2742 => Ok(BuiltinOid::GIN_AM_OID),
Expand Down

0 comments on commit e06702e

Please sign in to comment.