Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Category index908
to_numberto_number
Data Type Formatting Functions
10
convert string to numeric
to_number ( text, text ) → numeric convert string to numeric
11
12
13
Converts string to numeric according to the given …Functions · Data Type Formatting Functions
to_octto_oct
String Functions And Operators
17
Converts the number to its equivalent two's complement octal representation.
to_oct ( integer ) → text Converts the number to its equivalent two's co…Functions · String Functions And Operators
to_regclassto_regclass
System Information Functions And Operators
10
get the OID of the named relation
to_regclass ( rel_name ) → regclass get the OID of the named relation
11
12
13
Translates a textua…Functions · System Information Functions And Operators
to_regcollationto_regcollation
System Information Functions And Operators
13
Translates a textual collation name to its OID. A similar result is obtained by casting the string to type regcollation (see Sec…Functions · System Information Functions And Operators
to_regdatabaseto_regdatabase
System Information Functions And Operators
19
Translates a textual database name to its OID. A similar result is obtained by casting the string to type regdatabase (see Sectio…Functions · System Information Functions And Operators
to_regnamespaceto_regnamespace
System Information Functions And Operators
10
get the OID of the named schema
to_regnamespace ( schema_name ) → regnamespace get the OID of the named schema
11
12
13
Translat…Functions · System Information Functions And Operators
to_regoperto_regoper
System Information Functions And Operators
10
get the OID of the named operator
to_regoper ( operator_name ) → regoper get the OID of the named operator
11
12
13
Translates a text…Functions · System Information Functions And Operators
to_regoperatorto_regoperator
System Information Functions And Operators
10
get the OID of the named operator
to_regoperator ( operator_name ) → regoperator get the OID of the named operator
11
12
13
Trans…Functions · System Information Functions And Operators
to_regprocto_regproc
System Information Functions And Operators
10
get the OID of the named function
to_regproc ( func_name ) → regproc get the OID of the named function
11
12
13
Translates a textual …Functions · System Information Functions And Operators
to_regprocedureto_regprocedure
System Information Functions And Operators
10
get the OID of the named function
to_regprocedure ( func_name ) → regprocedure get the OID of the named function
11
12
13
Transl…Functions · System Information Functions And Operators
to_regroleto_regrole
System Information Functions And Operators
10
get the OID of the named role
to_regrole ( role_name ) → regrole get the OID of the named role
11
12
13
Translates a textual role nam…Functions · System Information Functions And Operators
to_regtypeto_regtype
System Information Functions And Operators
10
get the OID of the named type
to_regtype ( type_name ) → regtype get the OID of the named type
11
12
13
Translates a textual type nam…Functions · System Information Functions And Operators
to_regtypemodto_regtypemod
System Information Functions And Operators
17
Parses a string of text, extracts a potential type name from it, and translates its type modifier, if any. A syntax error in the s…Functions · System Information Functions And Operators
to_timestampto_timestamp
Data Type Formatting Functions
10
convert string to time stamp
to_timestamp ( text, text ) → timestamp with time zone convert string to time stamp
to_timestamp ( double precisio…Functions · Data Type Formatting Functions
to_tsqueryto_tsquery
Text Search Functions And Operators
10
normalize words and convert to tsquery
to_tsquery ( [ config regconfig , ] query text ) → tsquery normalize words and convert to tsquery
11
…Functions · Text Search Functions And Operators
to_tsvectorto_tsvector
Text Search Functions And Operators
10
reduce document text to tsvector
to_tsvector ( [ config regconfig , ] document text ) → tsvector reduce document text to tsvector
to_tsvect…Functions · Text Search Functions And Operators
transaction_timestamptransaction_timestamp
Date/Time Functions And Operators
10
Current date and time (start of current transaction); see Section 9.9.4
transaction_timestamp ( ) → timestamp with time zone Curren…Functions · Date/Time Functions And Operators
translatetranslate
String Functions And Operators
10
Any character in string that matches a character in the from set is replaced by the corresponding character in the to set. If from is longer than …Functions · String Functions And Operators
trimtrim
String Functions And Operators
10
Remove the longest string containing only characters from characters (a space by default) from the start, end, or both ends (both is the default) of st…Functions · String Functions And Operators
trim_arraytrim_array
Array Functions And Operators
14
Trims an array by removing the last n elements. If the array is multidimensional, only the first dimension is trimmed.
trim_array ( array anyarray…Functions · Array Functions And Operators
trim_scaletrim_scale
Mathematical Functions And Operators
13
Reduces the value's scale (number of fractional decimal digits) by removing trailing zeroes
trim_scale ( numeric ) → numeric Reduces the va…Functions · Mathematical Functions And Operators
trunctrunc
Mathematical Functions And Operators
10
truncate toward zero
trunc ( dp or numeric ) → (same as input) truncate toward zero
trunc ( v numeric, s int ) → numeric truncate to s decimal p…Functions · Mathematical Functions And Operators
ts_debugts_debug
Text Search Functions And Operators
10
test a configuration
ts_debug ( [ config regconfig, ] document text, OUT alias text, OUT description text, OUT token text, OUT dictionaries re…Functions · Text Search Functions And Operators
ts_deletets_delete
Text Search Functions And Operators
10
remove given lexeme from vector
ts_delete ( vector tsvector, lexeme text ) → tsvector remove given lexeme from vector
ts_delete ( vector tsve…Functions · Text Search Functions And Operators
ts_filterts_filter
Text Search Functions And Operators
10
select only elements with given weights from vector
ts_filter ( vector tsvector, weights "char"[] ) → tsvector select only elements with give…Functions · Text Search Functions And Operators
ts_headlinets_headline
Text Search Functions And Operators
10
display a query match
ts_headline ( [ config regconfig, ] document text, query tsquery [, options text ] ) → text display a query match
ts_…Functions · Text Search Functions And Operators
ts_lexizets_lexize
Text Search Functions And Operators
10
test a dictionary
ts_lexize ( dict regdictionary, token text ) → text[] test a dictionary
11
12
13
Returns an array of replacement lexemes if…Functions · Text Search Functions And Operators
ts_parsets_parse
Text Search Functions And Operators
10
test a parser
ts_parse ( parser_name text, document text, OUT tokid integer, OUT token text ) → setof record test a parser
ts_parse ( parser_o…Functions · Text Search Functions And Operators
ts_rankts_rank
Text Search Functions And Operators
10
rank document for query
ts_rank ( [ weights float4[], ] vector tsvector, query tsquery [, normalization integer ] ) → float4 rank document for …Functions · Text Search Functions And Operators
ts_rank_cdts_rank_cd
Text Search Functions And Operators
10
rank document for query using cover density
ts_rank_cd ( [ weights float4[], ] vector tsvector, query tsquery [, normalization integer ] ) →…Functions · Text Search Functions And Operators
ts_rewritets_rewrite
Text Search Functions And Operators
10
replace target with substitute within query
ts_rewrite ( query tsquery, target tsquery, substitute tsquery ) → tsquery replace target with s…Functions · Text Search Functions And Operators
ts_statts_stat
Text Search Functions And Operators
10
get statistics of a tsvector column
ts_stat ( sqlquery text, [ weights text, ] OUT word text, OUT ndoc integer, OUT nentry integer ) → setof re…Functions · Text Search Functions And Operators
ts_token_typets_token_type
Text Search Functions And Operators
10
get token types defined by parser
ts_token_type ( parser_name text, OUT tokid integer, OUT alias text, OUT description text ) → setof rec…Functions · Text Search Functions And Operators
tsquery_phrasetsquery_phrase
Text Search Functions And Operators
10
make query that searches for query1 followed by query2 (same as <-> operator)
tsquery_phrase ( query1 tsquery, query2 tsquery ) → tsquer…Functions · Text Search Functions And Operators
tsvector_to_arraytsvector_to_array
Text Search Functions And Operators
10
convert tsvector to array of lexemes
tsvector_to_array ( tsvector ) → text[] convert tsvector to array of lexemes
11
12
13
Converts a…Functions · Text Search Functions And Operators
tsvector_update_triggertsvector_update_trigger
Trigger Functions
10
trigger function for automatic tsvector column update
tsvector_update_trigger ( ) → trigger trigger function for automatic tsvector column update…Functions · Trigger Functions
tsvector_update_trigger_columntsvector_update_trigger_column
Trigger Functions
10
trigger function for automatic tsvector column update
tsvector_update_trigger_column ( ) → trigger trigger function for automatic tsvector…Functions · Trigger Functions
txid_currenttxid_current
System Information Functions And Operators
10
get current transaction ID, assigning a new one if the current transaction does not have one
txid_current ( ) → bigint get current …Functions · System Information Functions And Operators
txid_current_if_assignedtxid_current_if_assigned
System Information Functions And Operators
10
same as txid_current() but returns null instead of assigning a new transaction ID if none is already assigned
txid_curr…Functions · System Information Functions And Operators
txid_current_snapshottxid_current_snapshot
System Information Functions And Operators
10
get current snapshot
txid_current_snapshot ( ) → txid_snapshot get current snapshot
11
12
13
See pg_current_snapshot().
tx…Functions · System Information Functions And Operators
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open