[−][src]Struct postgres_parser::sys::IndexStmt
Create Index Statement
This represents creation of an index and/or an associated constraint. If isconstraint is true, we should create a pg_constraint entry along with the index. But if indexOid isn't InvalidOid, we are not creating an index, just a UNIQUE/PKEY constraint using an existing index. isconstraint must always be true in this case, and the fields describing the index properties are empty.
Fields
type_: NodeTagidxname: *mut c_charrelation: *mut RangeVarname of new index, or NULL for default
accessMethod: *mut c_charrelation to build index on
tableSpace: *mut c_charname of access method (eg. btree)
indexParams: *mut Listtablespace, or NULL for default
indexIncludingParams: *mut Listcolumns to index: a list of IndexElem
options: *mut Listadditional columns to index: a list of IndexElem
whereClause: *mut NodeWITH clause options: a list of DefElem
excludeOpNames: *mut Listqualification (partialindex predicate)
idxcomment: *mut c_charexclusion operator names, or NIL if none
indexOid: Oidcomment to apply to index, or NULL
oldNode: OidOID of an existing index, if any
unique: boolrelfilenode of existing storage, if any
primary: boolis index unique?
isconstraint: boolis index a primary key?
deferrable: boolis it for a pkey/unique constraint?
initdeferred: boolis the constraint DEFERRABLE?
transformed: boolis the constraint INITIALLY DEFERRED?
concurrent: booltrue when transformIndexStmt is finished
if_not_exists: boolshould this be a concurrent index build?
reset_default_tblspc: booljust do nothing if index already exists?
Trait Implementations
impl Debug for IndexStmt[src]
impl Default for IndexStmt[src]
impl Eq for IndexStmt[src]
impl Hash for IndexStmt[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<IndexStmt> for IndexStmt[src]
impl StructuralEq for IndexStmt[src]
impl StructuralPartialEq for IndexStmt[src]
Auto Trait Implementations
impl RefUnwindSafe for IndexStmt
impl !Send for IndexStmt
impl !Sync for IndexStmt
impl Unpin for IndexStmt
impl UnwindSafe for IndexStmt
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,