Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pgrx-pg-sys/include/pg19.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
#include "storage/itemptr.h"
#include "storage/lmgr.h"
#include "storage/lwlock.h"
#include "storage/proc.h"
#include "storage/procarray.h"
#include "storage/relfilelocator.h"
#include "storage/smgr.h"
Expand Down Expand Up @@ -215,7 +216,9 @@
#include "utils/catcache.h"
#include "utils/syscache.h"
#include "utils/tuplestore.h"
#include "utils/tuplesort.h"
#include "utils/typcache.h"
#include "utils/wait_event.h"
#include "utils/rangetypes.h"
#include "utils/rel.h"
#include "utils/varlena.h"
12 changes: 12 additions & 0 deletions pgrx-pg-sys/src/include.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,18 @@ mod internal {
/// We keep the alias so version-portable code can still say `pg_sys::bits8`.
pub type bits8 = u8;

/// PG19 turned `BufferLockMode` into an enum; bindgen emits module-scoped constants.
/// Re-export at the crate root for code written against older pgrx bindings.
pub const BUFFER_LOCK_UNLOCK: u32 = crate::pg19::BufferLockMode::BUFFER_LOCK_UNLOCK;
pub const BUFFER_LOCK_SHARE: u32 = crate::pg19::BufferLockMode::BUFFER_LOCK_SHARE;
pub const BUFFER_LOCK_EXCLUSIVE: u32 = crate::pg19::BufferLockMode::BUFFER_LOCK_EXCLUSIVE;

/// PG19 renamed `PageSetChecksumInplace` to `PageSetChecksum`.
#[inline]
pub unsafe fn PageSetChecksumInplace(page: crate::Page, blkno: crate::BlockNumber) {
crate::pg19::PageSetChecksum(page, blkno);
}

/// # Safety
///
/// This function wraps Postgres' internal `IndexBuildHeapScan` method, and therefore, is
Expand Down
Loading
Loading