From 892dbf94dc3cc2370c76c973df8c2fd0a50b0cea Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Mon, 18 Sep 2023 16:45:13 -0700 Subject: [PATCH] Add deprecation notices for anyone who slips through --- pgrx-pg-sys/src/cshim.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pgrx-pg-sys/src/cshim.rs b/pgrx-pg-sys/src/cshim.rs index 4fd911991e..36ebe2cac6 100644 --- a/pgrx-pg-sys/src/cshim.rs +++ b/pgrx-pg-sys/src/cshim.rs @@ -1,4 +1,5 @@ #![cfg(feature = "cshim")] +#![allow(deprecated)] use crate as pg_sys; use core::ffi; @@ -10,6 +11,13 @@ extern "C" { pub fn pgrx_list_nth_oid(list: *mut pg_sys::List, nth: i32) -> pg_sys::Oid; pub fn pgrx_list_nth_cell(list: *mut pg_sys::List, nth: i32) -> *mut pg_sys::ListCell; + #[link_name = "pgrx_planner_rt_fetch"] + #[deprecated(since = "0.11", note = "use pgrx::pg_sys::planner_rt_fetch")] + pub fn planner_rt_fetch( + index: pg_sys::Index, + root: *mut pg_sys::PlannerInfo, + ) -> *mut pg_sys::RangeTblEntry; + #[link_name = "pgrx_SpinLockInit"] pub fn SpinLockInit(lock: *mut pg_sys::slock_t); #[link_name = "pgrx_SpinLockAcquire"] @@ -25,6 +33,7 @@ extern "C" { /// ((RangeTblEntry *) list_nth(rangetable, (rangetable_index)-1)) /// ``` #[inline] +#[deprecated(since = "0.11", note = "use pgrx::pg_sys::rt_fetch")] pub unsafe fn rt_fetch( index: super::Index, range_table: *mut super::List,