Create a new operator - postgres docs
Arguments:
operator_name
[Name] - name of the new operatoroptions
[object] - options:procedure
[Name] - name of procedure performing operationleft
[Name] - type of left argumentright
[Name] - type of right argumentcommutator
[Name] - name of commutative operatornegator
[Name] - name of negating operatorrestrict
[Name] - name of restriction procedurejoin
[Name] - name of join procedurehashes
[boolean] - addsHASHES
clausemerges
[boolean] - addsMERGES
clause
Reverse Operation: dropOperator
Drop a operator - postgres docs
Arguments:
operator_name
[Name] - name of the operator to dropdrop_options
[object] - options:
Create a new operator class - postgres docs
Arguments:
operator_class_name
[Name] - name of the new operator classtype
[string] - data type of the new operator classindex_method
[Name] - name of the index method of operator classoperator_list
[array] - of operator objectsoptions
[object] - options:default
[boolean] - addsDEFAULT
clausefamily
[string] - type of left argument
Reverse Operation: dropOperatorClass
Drop a operator class - postgres docs
Arguments:
operator_class_name
[Name] - name of the operator class to dropindex_method
[Name] - name of the index method of operator classdrop_options
[object] - options:ifExists
[boolean] - drops schema only if it existscascade
[boolean] - drops also dependent objects
Rename a operator class - postgres docs
Arguments:
old_operator_class_name
[Name] - old name of the operator classindex_method
[Name] - name of the index method of operator classnew_operator_class_name
[Name] - new name of the operator class
Create a new operator family - postgres docs
Arguments:
operator_family_name
[Name] - name of the new operator familyindex_method
[Name] - name of the index method of operator family
Reverse Operation: dropOperatorFamily
Drop a operator family - postgres docs
Arguments:
operator_family_name
[Name] - name of the operator family to dropindex_method
[Name] - name of the index method of operator familydrop_options
[object] - options:ifExists
[boolean] - drops schema only if it existscascade
[boolean] - drops also dependent objects
Rename a operator family - postgres docs
Arguments:
old_operator_family_name
[Name] - old name of the operator familyindex_method
[Name] - name of the index method of operator familynew_operator_family_name
[Name] - new name of the operator family
Rename a operator family - postgres docs
Arguments:
operator_family_name
[Name] - name of the operator familyindex_method
[Name] - name of the index method of operator familyoperator_list
[array] - of operator objects
Rename a operator family - postgres docs
Arguments:
operator_family_name
[Name] - name of the operator familyindex_method
[Name] - name of the index method of operator familyoperator_list
[array] - of operator objects
Some functions for defining operators take as parameter operator_list
which is array of objects with following structure:
type
[string] -function
oroperator
number
[number] - indexname
[Name] - name of operator or procedureparams
[array] - list of argument types of operator or procedure