From a21727209978a28f469a67fbf9ebd59ef32d1d3e Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Thu, 4 Jul 2024 19:33:25 -0700 Subject: [PATCH] Deprecate pgrx::hooks without replacement --- pgrx/src/hooks.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pgrx/src/hooks.rs b/pgrx/src/hooks.rs index e5ac46a44..c054c1fe4 100644 --- a/pgrx/src/hooks.rs +++ b/pgrx/src/hooks.rs @@ -9,6 +9,10 @@ //LICENSE Use of this source code is governed by the MIT license that can be found in the LICENSE file. //! A trait and registration system for hooking Postgres internal operations such as its planner and executor #![allow(clippy::unit_arg)] +#![deprecated( + since = "0.12.1", + note = "currently always UB, use FFI + pointers to `static UnsafeCell`" +)] use crate as pgrx; // for #[pg_guard] support from within ourself use crate::prelude::*; use crate::{void_mut_ptr, PgList};