Skip to content

Commit

Permalink
Deprecate pgrx::hooks without replacement (#1752)
Browse files Browse the repository at this point in the history
Even if we could fix this with internal refactors, I think it's a
sufficiently bad pattern, and sufficiently hard to reason about the
soundness of it, that we should just tell people to drop this API.
  • Loading branch information
workingjubilee authored Aug 20, 2024
1 parent 1b2a5db commit 1f85733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pgrx/src/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 1f85733

Please sign in to comment.