Skip to content

Commit

Permalink
Update version to 0.12.7 (#1931)
Browse files Browse the repository at this point in the history
  • Loading branch information
eeeebbbbrrrr authored Oct 27, 2024
1 parent a1e45c7 commit 5a4ff45
Show file tree
Hide file tree
Showing 23 changed files with 649 additions and 24 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ exclude = [
cargo-pgrx = { path = "cargo-pgrx" }

[workspace.dependencies]
pgrx-macros = { path = "./pgrx-macros", version = "=0.12.6" }
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.6" }
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.6" }
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.6" }
pgrx-bindgen = { path = "./pgrx-bindgen", version = "0.12.6" }
pgrx-macros = { path = "./pgrx-macros", version = "=0.12.7" }
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.7" }
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.7" }
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.7" }
pgrx-bindgen = { path = "./pgrx-bindgen", version = "0.12.7" }

cargo_metadata = "0.18.0"
cargo-edit = "0.12.2" # format-preserving edits to cargo.toml
Expand Down
2 changes: 1 addition & 1 deletion cargo-pgrx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "cargo-pgrx"
version = "0.12.6"
version = "0.12.7"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"
Expand Down
4 changes: 2 additions & 2 deletions cargo-pgrx/src/templates/cargo_toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
pg_test = []

[dependencies]
pgrx = "=0.12.6"
pgrx = "=0.12.7"

[dev-dependencies]
pgrx-tests = "=0.12.6"
pgrx-tests = "=0.12.7"

[profile.dev]
panic = "unwind"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-bindgen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pgrx-bindgen"
description = "additional bindgen support for pgrx"
version = "0.12.6"
version = "0.12.7"
edition = "2021"
license = "MIT"
homepage = "https://github.com/pgcentralfoundation/pgrx"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-macros"
version = "0.12.6"
version = "0.12.7"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Proc Macros for 'pgrx'"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-pg-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-config"
version = "0.12.6"
version = "0.12.7"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "A Postgres pg_config wrapper for 'pgrx'"
Expand Down
2 changes: 1 addition & 1 deletion pgrx-pg-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

[package]
name = "pgrx-pg-sys"
version = "0.12.6"
version = "0.12.7"
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
license = "MIT"
description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'"
Expand Down
71 changes: 71 additions & 0 deletions pgrx-pg-sys/src/include/pg12.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3019,6 +3019,64 @@ pub const AT_REWRITE_COLUMN_REWRITE: u32 = 4;
pub const CACHEDPLANSOURCE_MAGIC: u32 = 195726186;
pub const CACHEDPLAN_MAGIC: u32 = 953717834;
pub const CACHEDEXPR_MAGIC: u32 = 838275847;
pub const PROGRESS_VACUUM_PHASE: u32 = 0;
pub const PROGRESS_VACUUM_TOTAL_HEAP_BLKS: u32 = 1;
pub const PROGRESS_VACUUM_HEAP_BLKS_SCANNED: u32 = 2;
pub const PROGRESS_VACUUM_HEAP_BLKS_VACUUMED: u32 = 3;
pub const PROGRESS_VACUUM_NUM_INDEX_VACUUMS: u32 = 4;
pub const PROGRESS_VACUUM_MAX_DEAD_TUPLES: u32 = 5;
pub const PROGRESS_VACUUM_NUM_DEAD_TUPLES: u32 = 6;
pub const PROGRESS_VACUUM_PHASE_SCAN_HEAP: u32 = 1;
pub const PROGRESS_VACUUM_PHASE_VACUUM_INDEX: u32 = 2;
pub const PROGRESS_VACUUM_PHASE_VACUUM_HEAP: u32 = 3;
pub const PROGRESS_VACUUM_PHASE_INDEX_CLEANUP: u32 = 4;
pub const PROGRESS_VACUUM_PHASE_TRUNCATE: u32 = 5;
pub const PROGRESS_VACUUM_PHASE_FINAL_CLEANUP: u32 = 6;
pub const PROGRESS_CLUSTER_COMMAND: u32 = 0;
pub const PROGRESS_CLUSTER_PHASE: u32 = 1;
pub const PROGRESS_CLUSTER_INDEX_RELID: u32 = 2;
pub const PROGRESS_CLUSTER_HEAP_TUPLES_SCANNED: u32 = 3;
pub const PROGRESS_CLUSTER_HEAP_TUPLES_WRITTEN: u32 = 4;
pub const PROGRESS_CLUSTER_TOTAL_HEAP_BLKS: u32 = 5;
pub const PROGRESS_CLUSTER_HEAP_BLKS_SCANNED: u32 = 6;
pub const PROGRESS_CLUSTER_INDEX_REBUILD_COUNT: u32 = 7;
pub const PROGRESS_CLUSTER_PHASE_SEQ_SCAN_HEAP: u32 = 1;
pub const PROGRESS_CLUSTER_PHASE_INDEX_SCAN_HEAP: u32 = 2;
pub const PROGRESS_CLUSTER_PHASE_SORT_TUPLES: u32 = 3;
pub const PROGRESS_CLUSTER_PHASE_WRITE_NEW_HEAP: u32 = 4;
pub const PROGRESS_CLUSTER_PHASE_SWAP_REL_FILES: u32 = 5;
pub const PROGRESS_CLUSTER_PHASE_REBUILD_INDEX: u32 = 6;
pub const PROGRESS_CLUSTER_PHASE_FINAL_CLEANUP: u32 = 7;
pub const PROGRESS_CLUSTER_COMMAND_CLUSTER: u32 = 1;
pub const PROGRESS_CLUSTER_COMMAND_VACUUM_FULL: u32 = 2;
pub const PROGRESS_CREATEIDX_COMMAND: u32 = 0;
pub const PROGRESS_CREATEIDX_INDEX_OID: Oid = Oid(6);
pub const PROGRESS_CREATEIDX_ACCESS_METHOD_OID: Oid = Oid(8);
pub const PROGRESS_CREATEIDX_PHASE: u32 = 9;
pub const PROGRESS_CREATEIDX_SUBPHASE: u32 = 10;
pub const PROGRESS_CREATEIDX_TUPLES_TOTAL: u32 = 11;
pub const PROGRESS_CREATEIDX_TUPLES_DONE: u32 = 12;
pub const PROGRESS_CREATEIDX_PARTITIONS_TOTAL: u32 = 13;
pub const PROGRESS_CREATEIDX_PARTITIONS_DONE: u32 = 14;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_1: u32 = 1;
pub const PROGRESS_CREATEIDX_PHASE_BUILD: u32 = 2;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_2: u32 = 3;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN: u32 = 4;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_SORT: u32 = 5;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_TABLESCAN: u32 = 6;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_3: u32 = 7;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_4: u32 = 8;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_5: u32 = 9;
pub const PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE: u32 = 1;
pub const PROGRESS_CREATEIDX_COMMAND_CREATE: u32 = 1;
pub const PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY: u32 = 2;
pub const PROGRESS_CREATEIDX_COMMAND_REINDEX: u32 = 3;
pub const PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY: u32 = 4;
pub const PROGRESS_WAITFOR_TOTAL: u32 = 3;
pub const PROGRESS_WAITFOR_DONE: u32 = 4;
pub const PROGRESS_WAITFOR_CURRENT_PID: u32 = 5;
pub const PROGRESS_SCAN_BLOCKS_TOTAL: u32 = 15;
pub const PROGRESS_SCAN_BLOCKS_DONE: u32 = 16;
pub const XLOG_TBLSPC_CREATE: u32 = 0;
pub const XLOG_TBLSPC_DROP: u32 = 16;
pub const TRIGGER_EVENT_INSERT: u32 = 0;
Expand Down Expand Up @@ -40588,6 +40646,19 @@ extern "C" {
pub fn RecordFreeIndexPage(rel: Relation, page: BlockNumber);
pub fn RecordUsedIndexPage(rel: Relation, page: BlockNumber);
pub fn IndexFreeSpaceMapVacuum(rel: Relation);
pub fn GetRecordedFreeSpace(rel: Relation, heapBlk: BlockNumber) -> Size;
pub fn GetPageWithFreeSpace(rel: Relation, spaceNeeded: Size) -> BlockNumber;
pub fn RecordAndGetPageWithFreeSpace(
rel: Relation,
oldPage: BlockNumber,
oldSpaceAvail: Size,
spaceNeeded: Size,
) -> BlockNumber;
pub fn RecordPageWithFreeSpace(rel: Relation, heapBlk: BlockNumber, spaceAvail: Size);
pub fn XLogRecordPageWithFreeSpace(rnode: RelFileNode, heapBlk: BlockNumber, spaceAvail: Size);
pub fn FreeSpaceMapTruncateRel(rel: Relation, nblocks: BlockNumber);
pub fn FreeSpaceMapVacuum(rel: Relation);
pub fn FreeSpaceMapVacuumRange(rel: Relation, start: BlockNumber, end: BlockNumber);
pub static mut proc_exit_inprogress: bool;
pub static mut shmem_exit_inprogress: bool;
pub fn proc_exit(code: ::core::ffi::c_int) -> !;
Expand Down
4 changes: 4 additions & 0 deletions pgrx-pg-sys/src/include/pg12_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ pub enum BuiltinOid {
POLYGONARRAYOID = 1027,
POLYGONOID = 604,
POSIX_COLLATION_OID = 951,
PROGRESS_CREATEIDX_ACCESS_METHOD_OID = 8,
PROGRESS_CREATEIDX_INDEX_OID = 6,
ProcedureRelationId = 1255,
PublicationRelationId = 6104,
RECORDARRAYOID = 2287,
Expand Down Expand Up @@ -427,6 +429,8 @@ impl BuiltinOid {
1027 => Ok(BuiltinOid::POLYGONARRAYOID),
604 => Ok(BuiltinOid::POLYGONOID),
951 => Ok(BuiltinOid::POSIX_COLLATION_OID),
8 => Ok(BuiltinOid::PROGRESS_CREATEIDX_ACCESS_METHOD_OID),
6 => Ok(BuiltinOid::PROGRESS_CREATEIDX_INDEX_OID),
1255 => Ok(BuiltinOid::ProcedureRelationId),
6104 => Ok(BuiltinOid::PublicationRelationId),
2287 => Ok(BuiltinOid::RECORDARRAYOID),
Expand Down
94 changes: 94 additions & 0 deletions pgrx-pg-sys/src/include/pg13.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3054,6 +3054,87 @@ pub const AT_REWRITE_COLUMN_REWRITE: u32 = 4;
pub const CACHEDPLANSOURCE_MAGIC: u32 = 195726186;
pub const CACHEDPLAN_MAGIC: u32 = 953717834;
pub const CACHEDEXPR_MAGIC: u32 = 838275847;
pub const PROGRESS_VACUUM_PHASE: u32 = 0;
pub const PROGRESS_VACUUM_TOTAL_HEAP_BLKS: u32 = 1;
pub const PROGRESS_VACUUM_HEAP_BLKS_SCANNED: u32 = 2;
pub const PROGRESS_VACUUM_HEAP_BLKS_VACUUMED: u32 = 3;
pub const PROGRESS_VACUUM_NUM_INDEX_VACUUMS: u32 = 4;
pub const PROGRESS_VACUUM_MAX_DEAD_TUPLES: u32 = 5;
pub const PROGRESS_VACUUM_NUM_DEAD_TUPLES: u32 = 6;
pub const PROGRESS_VACUUM_PHASE_SCAN_HEAP: u32 = 1;
pub const PROGRESS_VACUUM_PHASE_VACUUM_INDEX: u32 = 2;
pub const PROGRESS_VACUUM_PHASE_VACUUM_HEAP: u32 = 3;
pub const PROGRESS_VACUUM_PHASE_INDEX_CLEANUP: u32 = 4;
pub const PROGRESS_VACUUM_PHASE_TRUNCATE: u32 = 5;
pub const PROGRESS_VACUUM_PHASE_FINAL_CLEANUP: u32 = 6;
pub const PROGRESS_ANALYZE_PHASE: u32 = 0;
pub const PROGRESS_ANALYZE_BLOCKS_TOTAL: u32 = 1;
pub const PROGRESS_ANALYZE_BLOCKS_DONE: u32 = 2;
pub const PROGRESS_ANALYZE_EXT_STATS_TOTAL: u32 = 3;
pub const PROGRESS_ANALYZE_EXT_STATS_COMPUTED: u32 = 4;
pub const PROGRESS_ANALYZE_CHILD_TABLES_TOTAL: u32 = 5;
pub const PROGRESS_ANALYZE_CHILD_TABLES_DONE: u32 = 6;
pub const PROGRESS_ANALYZE_CURRENT_CHILD_TABLE_RELID: u32 = 7;
pub const PROGRESS_ANALYZE_PHASE_ACQUIRE_SAMPLE_ROWS: u32 = 1;
pub const PROGRESS_ANALYZE_PHASE_ACQUIRE_SAMPLE_ROWS_INH: u32 = 2;
pub const PROGRESS_ANALYZE_PHASE_COMPUTE_STATS: u32 = 3;
pub const PROGRESS_ANALYZE_PHASE_COMPUTE_EXT_STATS: u32 = 4;
pub const PROGRESS_ANALYZE_PHASE_FINALIZE_ANALYZE: u32 = 5;
pub const PROGRESS_CLUSTER_COMMAND: u32 = 0;
pub const PROGRESS_CLUSTER_PHASE: u32 = 1;
pub const PROGRESS_CLUSTER_INDEX_RELID: u32 = 2;
pub const PROGRESS_CLUSTER_HEAP_TUPLES_SCANNED: u32 = 3;
pub const PROGRESS_CLUSTER_HEAP_TUPLES_WRITTEN: u32 = 4;
pub const PROGRESS_CLUSTER_TOTAL_HEAP_BLKS: u32 = 5;
pub const PROGRESS_CLUSTER_HEAP_BLKS_SCANNED: u32 = 6;
pub const PROGRESS_CLUSTER_INDEX_REBUILD_COUNT: u32 = 7;
pub const PROGRESS_CLUSTER_PHASE_SEQ_SCAN_HEAP: u32 = 1;
pub const PROGRESS_CLUSTER_PHASE_INDEX_SCAN_HEAP: u32 = 2;
pub const PROGRESS_CLUSTER_PHASE_SORT_TUPLES: u32 = 3;
pub const PROGRESS_CLUSTER_PHASE_WRITE_NEW_HEAP: u32 = 4;
pub const PROGRESS_CLUSTER_PHASE_SWAP_REL_FILES: u32 = 5;
pub const PROGRESS_CLUSTER_PHASE_REBUILD_INDEX: u32 = 6;
pub const PROGRESS_CLUSTER_PHASE_FINAL_CLEANUP: u32 = 7;
pub const PROGRESS_CLUSTER_COMMAND_CLUSTER: u32 = 1;
pub const PROGRESS_CLUSTER_COMMAND_VACUUM_FULL: u32 = 2;
pub const PROGRESS_CREATEIDX_COMMAND: u32 = 0;
pub const PROGRESS_CREATEIDX_INDEX_OID: Oid = Oid(6);
pub const PROGRESS_CREATEIDX_ACCESS_METHOD_OID: Oid = Oid(8);
pub const PROGRESS_CREATEIDX_PHASE: u32 = 9;
pub const PROGRESS_CREATEIDX_SUBPHASE: u32 = 10;
pub const PROGRESS_CREATEIDX_TUPLES_TOTAL: u32 = 11;
pub const PROGRESS_CREATEIDX_TUPLES_DONE: u32 = 12;
pub const PROGRESS_CREATEIDX_PARTITIONS_TOTAL: u32 = 13;
pub const PROGRESS_CREATEIDX_PARTITIONS_DONE: u32 = 14;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_1: u32 = 1;
pub const PROGRESS_CREATEIDX_PHASE_BUILD: u32 = 2;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_2: u32 = 3;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_IDXSCAN: u32 = 4;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_SORT: u32 = 5;
pub const PROGRESS_CREATEIDX_PHASE_VALIDATE_TABLESCAN: u32 = 6;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_3: u32 = 7;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_4: u32 = 8;
pub const PROGRESS_CREATEIDX_PHASE_WAIT_5: u32 = 9;
pub const PROGRESS_CREATEIDX_SUBPHASE_INITIALIZE: u32 = 1;
pub const PROGRESS_CREATEIDX_COMMAND_CREATE: u32 = 1;
pub const PROGRESS_CREATEIDX_COMMAND_CREATE_CONCURRENTLY: u32 = 2;
pub const PROGRESS_CREATEIDX_COMMAND_REINDEX: u32 = 3;
pub const PROGRESS_CREATEIDX_COMMAND_REINDEX_CONCURRENTLY: u32 = 4;
pub const PROGRESS_WAITFOR_TOTAL: u32 = 3;
pub const PROGRESS_WAITFOR_DONE: u32 = 4;
pub const PROGRESS_WAITFOR_CURRENT_PID: u32 = 5;
pub const PROGRESS_SCAN_BLOCKS_TOTAL: u32 = 15;
pub const PROGRESS_SCAN_BLOCKS_DONE: u32 = 16;
pub const PROGRESS_BASEBACKUP_PHASE: u32 = 0;
pub const PROGRESS_BASEBACKUP_BACKUP_TOTAL: u32 = 1;
pub const PROGRESS_BASEBACKUP_BACKUP_STREAMED: u32 = 2;
pub const PROGRESS_BASEBACKUP_TBLSPC_TOTAL: u32 = 3;
pub const PROGRESS_BASEBACKUP_TBLSPC_STREAMED: u32 = 4;
pub const PROGRESS_BASEBACKUP_PHASE_WAIT_CHECKPOINT: u32 = 1;
pub const PROGRESS_BASEBACKUP_PHASE_ESTIMATE_BACKUP_SIZE: u32 = 2;
pub const PROGRESS_BASEBACKUP_PHASE_STREAM_BACKUP: u32 = 3;
pub const PROGRESS_BASEBACKUP_PHASE_WAIT_WAL_ARCHIVE: u32 = 4;
pub const PROGRESS_BASEBACKUP_PHASE_TRANSFER_WAL: u32 = 5;
pub const XLOG_TBLSPC_CREATE: u32 = 0;
pub const XLOG_TBLSPC_DROP: u32 = 16;
pub const TRIGGER_EVENT_INSERT: u32 = 0;
Expand Down Expand Up @@ -41852,6 +41933,19 @@ extern "C" {
pub fn RecordFreeIndexPage(rel: Relation, page: BlockNumber);
pub fn RecordUsedIndexPage(rel: Relation, page: BlockNumber);
pub fn IndexFreeSpaceMapVacuum(rel: Relation);
pub fn GetRecordedFreeSpace(rel: Relation, heapBlk: BlockNumber) -> Size;
pub fn GetPageWithFreeSpace(rel: Relation, spaceNeeded: Size) -> BlockNumber;
pub fn RecordAndGetPageWithFreeSpace(
rel: Relation,
oldPage: BlockNumber,
oldSpaceAvail: Size,
spaceNeeded: Size,
) -> BlockNumber;
pub fn RecordPageWithFreeSpace(rel: Relation, heapBlk: BlockNumber, spaceAvail: Size);
pub fn XLogRecordPageWithFreeSpace(rnode: RelFileNode, heapBlk: BlockNumber, spaceAvail: Size);
pub fn FreeSpaceMapPrepareTruncateRel(rel: Relation, nblocks: BlockNumber) -> BlockNumber;
pub fn FreeSpaceMapVacuum(rel: Relation);
pub fn FreeSpaceMapVacuumRange(rel: Relation, start: BlockNumber, end: BlockNumber);
pub static mut proc_exit_inprogress: bool;
pub static mut shmem_exit_inprogress: bool;
pub fn proc_exit(code: ::core::ffi::c_int) -> !;
Expand Down
4 changes: 4 additions & 0 deletions pgrx-pg-sys/src/include/pg13_oids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ pub enum BuiltinOid {
POLYGONARRAYOID = 1027,
POLYGONOID = 604,
POSIX_COLLATION_OID = 951,
PROGRESS_CREATEIDX_ACCESS_METHOD_OID = 8,
PROGRESS_CREATEIDX_INDEX_OID = 6,
ProcedureRelationId = 1255,
PublicationRelationId = 6104,
RECORDARRAYOID = 2287,
Expand Down Expand Up @@ -443,6 +445,8 @@ impl BuiltinOid {
1027 => Ok(BuiltinOid::POLYGONARRAYOID),
604 => Ok(BuiltinOid::POLYGONOID),
951 => Ok(BuiltinOid::POSIX_COLLATION_OID),
8 => Ok(BuiltinOid::PROGRESS_CREATEIDX_ACCESS_METHOD_OID),
6 => Ok(BuiltinOid::PROGRESS_CREATEIDX_INDEX_OID),
1255 => Ok(BuiltinOid::ProcedureRelationId),
6104 => Ok(BuiltinOid::PublicationRelationId),
2287 => Ok(BuiltinOid::RECORDARRAYOID),
Expand Down
Loading

0 comments on commit 5a4ff45

Please sign in to comment.