pub struct AlterSystem {
pub action: AlterSystemAction,
pub meta: Meta,
}Expand description
A PostgreSQL ALTER SYSTEM { SET <name> {= | TO} <value> | RESET <name> | RESET ALL }
statement (AlterSystemStmt), gated by
StatementDdlGates::alter_system.
ALTER SYSTEM writes and clears the server-wide persisted configuration (PostgreSQL’s
postgresql.auto.conf), not a session parameter — but its grammar is a thin wrapper over
the very generic_set / generic_reset productions the session SET / RESET use, so
the setting-name / value axis is shared verbatim rather than re-minted. The SET form is a
dotted var_name plus the = / TO separator (SetAssignment) and a var_list-or-
DEFAULT value (SetValue); the RESET form is the var_name-or-ALL target
(ConfigParameter).
Unlike the session SET, ALTER SYSTEM SET admits no SESSION / LOCAL scope (a scope
keyword is a reject) and no SET FROM CURRENT form — the wrapper is exactly
generic_set / generic_reset, measured against pg_query.
Fields§
§action: AlterSystemActionThe change applied to the server-wide configuration — a SET assignment or a RESET.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl Clone for AlterSystem
impl Clone for AlterSystem
Source§fn clone(&self) -> AlterSystem
fn clone(&self) -> AlterSystem
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlterSystem
impl Debug for AlterSystem
Source§impl<'de> Deserialize<'de> for AlterSystem
impl<'de> Deserialize<'de> for AlterSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AlterSystem
Source§impl Hash for AlterSystem
impl Hash for AlterSystem
Source§impl PartialEq for AlterSystem
impl PartialEq for AlterSystem
Source§impl Render for AlterSystem
impl Render for AlterSystem
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for AlterSystem
impl Serialize for AlterSystem
impl StructuralPartialEq for AlterSystem
Auto Trait Implementations§
impl Freeze for AlterSystem
impl RefUnwindSafe for AlterSystem
impl Send for AlterSystem
impl Sync for AlterSystem
impl Unpin for AlterSystem
impl UnsafeUnpin for AlterSystem
impl UnwindSafe for AlterSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.