Saltar a contenido

Polyfills on Db2

A polyfill is how Provisa gives a PostgreSQL client PostgreSQL's behaviour on Db2 (dialect db2), as a serving engine or as a source a statement is sent to directly. Each feature has a read polyfill, how its values and operations are computed there, and a write polyfill, how its values reach it; each states its limitations.

This page lists every feature that has a polyfill or a limitation on Db2. A feature Db2 does natively with no difference from PostgreSQL is left out and counted. The conformance runs check the omission: a feature left out that answers otherwise than PostgreSQL fails the run.

When Db2 is a serving engine reading a source it attaches directly, it may push work into that source, with the source's semantics, so a result can depend on the pair; the cases known are fixed by hints, listed under each source.

Rules on this page: 410, of which 142 are only the name of a rewrite function. A rule is printed as the translator runs it: the PostgreSQL pattern, its holes written $name (typed with ::type), then the dialect's replacement.

234 of the grid's 625 features are native on Db2 and left out.

FeatureRead polyfillRead limitationsWrite polyfillWrite limitations
array_ndims
The number of an array's dimensions.
array_ndims($a::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_ndims($a::anyarray). 0A000 array_ndims() has no form on db2
array_dims
The text of an array's dimensions, such as [1:2][1:3].
array_dims($a::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_dims($a::anyarray). 0A000 array_dims() has no form on db2
array_lower
The lower bound of a dimension: 1, as a list's index starts there.
array_lower($a::anyarray, $d::integer)
=>
refused (its error is under the limitations)
  • Refused: array_lower($a::anyarray, $d::integer). 0A000 array_lower() has no form on db2
array_upper
The upper bound of a dimension: its length.
array_upper($a::anyarray, $d::integer)
=>
refused (its error is under the limitations)
  • Refused: array_upper($a::anyarray, $d::integer). 0A000 array_upper() has no form on db2
array_length
The length of a dimension; NULL for a dimension the array does not have.
array_length($a::anyarray, 1)
=>
refused (its error is under the limitations)
array_length($a::anyarray, $d::integer)
=>
refused (its error is under the limitations)
  • Refused: array_length($a::anyarray, 1). 0A000 array_length() has no form on db2
  • Refused: array_length($a::anyarray, $d::integer). 0A000 array_length() has no form on db2
array_fill
An array of a value repeated to the dimensions given.
array_fill($v::anyelement, $dims::integer[])
=>
refused (its error is under the limitations)
array_fill($v::anyelement, $dims::integer[], $lower_bounds::integer[])
=>
refused (its error is under the limitations)
  • Refused: array_fill($v::anyelement, $dims::integer[]). 0A000 array_fill() has no form on db2
  • Refused: array_fill($v::anyelement, $dims::integer[], $lower_bounds::integer[]). 0A000 array_fill() has no form on db2
array_eq
Two arrays equal, a NULL element equal to a NULL element.
array_eq($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_eq($a::anyarray, $b::anyarray). 0A000 array_eq() has no form on db2
array_ne
Two arrays not equal, a NULL element equal to a NULL element.
array_ne($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_ne($a::anyarray, $b::anyarray). 0A000 array_ne() has no form on db2
array_position
The position of the first element equal to a value, a NULL equal to a NULL; NULL for none.
array_position($a::anycompatiblearray, $v::anycompatible)
=>
refused (its error is under the limitations)
array_position($a::anycompatiblearray, $v::anycompatible, $s::integer)
=>
refused (its error is under the limitations)
  • Refused: array_position($a::anycompatiblearray, $v::anycompatible). 0A000 array_position() has no form on db2
  • Refused: array_position($a::anycompatiblearray, $v::anycompatible, $s::integer). 0A000 array_position() has no form on db2
array_positions
The positions of every element equal to a value, a NULL equal to a NULL.
array_positions($a::anycompatiblearray, $v::anycompatible)
=>
refused (its error is under the limitations)
  • Refused: array_positions($a::anycompatiblearray, $v::anycompatible). 0A000 array_positions() has no form on db2
array_replace
Each element equal to a value replaced by another, a NULL equal to a NULL.
array_replace($a::anycompatiblearray, $v::anycompatible, $w::anycompatible)
=>
refused (its error is under the limitations)
  • Refused: array_replace($a::anycompatiblearray, $v::anycompatible, $w::anycompatible). 0A000 array_replace() has no form on db2
array_sample
A number of an array's elements, chosen at random.
array_sample($a::anyarray, $n::integer)
=>
refused (its error is under the limitations)
  • Refused: array_sample($a::anyarray, $n::integer). 0A000 array_sample() has no form on db2
array_shuffle
An array's elements in a random order.
array_shuffle($a::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_shuffle($a::anyarray). 0A000 array_shuffle() has no form on db2
trim_array
An array without its last elements.
trim_array($a::anyarray, $n::integer)
=>
refused (its error is under the limitations)
  • Refused: trim_array($a::anyarray, $n::integer). 0A000 trim_array() has no form on db2
generate_subscripts
The subscripts of a dimension, as rows, in either order.
generate_subscripts($a::anyarray, $d::integer, $reverse::boolean)
=>
refused (its error is under the limitations)
generate_subscripts($a::anyarray, $d::integer)
=>
refused (its error is under the limitations)
  • Refused: generate_subscripts($a::anyarray, $d::integer, $reverse::boolean). 0A000 generate_subscripts() has no form on db2
  • Refused: generate_subscripts($a::anyarray, $d::integer). 0A000 generate_subscripts() has no form on db2
array_append
An array with an element added at its end; a NULL array is read as an empty one.
array_append(NULL::anycompatiblearray, $v::anycompatible)
=>
refused (its error is under the limitations)
array_append($a::anycompatiblearray, $v::anycompatible)
=>
refused (its error is under the limitations)
  • Refused: array_append(NULL::anycompatiblearray, $v::anycompatible). 0A000 array_append() has no form on db2
  • Refused: array_append($a::anycompatiblearray, $v::anycompatible). 0A000 array_append() has no form on db2
array_prepend
An array with an element added at its start; a NULL array is read as an empty one.
array_prepend($v::anycompatible, NULL::anycompatiblearray)
=>
refused (its error is under the limitations)
array_prepend($v::anycompatible, $a::anycompatiblearray)
=>
refused (its error is under the limitations)
  • Refused: array_prepend($v::anycompatible, NULL::anycompatiblearray). 0A000 array_prepend() has no form on db2
  • Refused: array_prepend($v::anycompatible, $a::anycompatiblearray). 0A000 array_prepend() has no form on db2
array_cat
Two arrays concatenated; a NULL array is the other one, and two NULL arrays are NULL.
array_cat(NULL::anycompatiblearray, $b::anycompatiblearray)
=>
refused (its error is under the limitations)
array_cat($a::anycompatiblearray, NULL::anycompatiblearray)
=>
refused (its error is under the limitations)
array_cat($a::anycompatiblearray, $b::anycompatiblearray)
=>
refused (its error is under the limitations)
  • Refused: array_cat(NULL::anycompatiblearray, $b::anycompatiblearray). 0A000 array_cat() has no form on db2
  • Refused: array_cat($a::anycompatiblearray, NULL::anycompatiblearray). 0A000 array_cat() has no form on db2
  • Refused: array_cat($a::anycompatiblearray, $b::anycompatiblearray). 0A000 array_cat() has no form on db2
array_lt
One array before another, a NULL element after any value.
array_lt($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_lt($a::anyarray, $b::anyarray). 0A000 array_lt() has no form on db2
array_le
One array before or equal to another, a NULL element after any value.
array_le($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_le($a::anyarray, $b::anyarray). 0A000 array_le() has no form on db2
array_gt
One array after another, a NULL element after any value.
array_gt($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_gt($a::anyarray, $b::anyarray). 0A000 array_gt() has no form on db2
array_ge
One array after or equal to another, a NULL element after any value.
array_ge($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_ge($a::anyarray, $b::anyarray). 0A000 array_ge() has no form on db2
array_larger
The larger of two arrays, a NULL element after any value.
array_larger($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_larger($a::anyarray, $b::anyarray). 0A000 array_larger() has no form on db2
array_smaller
The smaller of two arrays, a NULL element after any value.
array_smaller($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: array_smaller($a::anyarray, $b::anyarray). 0A000 array_smaller() has no form on db2
btarraycmp
btree's comparison of two arrays: -1, 0 or 1, a NULL element after any value.
btarraycmp($a::anyarray, $b::anyarray)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (anyarray, anyarray). 0A000 array has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (anyarray, anyarray). 0A000 the type int[] has no form on Db2 that gives PostgreSQL's answer
arraycontains
Whether an array holds every element of another; a NULL element of the other is held by none.
arraycontains($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: arraycontains($a::anyarray, $b::anyarray). 0A000 arraycontains() has no form on db2
arraycontained
Whether every element of an array is held by another; a NULL element is held by none.
arraycontained($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: arraycontained($a::anyarray, $b::anyarray). 0A000 arraycontained() has no form on db2
arrayoverlap
Whether two arrays hold an element in common; a NULL element is in common with none.
arrayoverlap($a::anyarray, $b::anyarray)
=>
refused (its error is under the limitations)
  • Refused: arrayoverlap($a::anyarray, $b::anyarray). 0A000 arrayoverlap() has no form on db2
array_remove
An array without each element equal to a value, a NULL equal to a NULL.
array_remove($a::anycompatiblearray, $v::anycompatible)
=>
refused (its error is under the limitations)
  • Refused: array_remove($a::anycompatiblearray, $v::anycompatible). 0A000 array_remove() has no form on db2
pg_timezone_names
The zones of the tz database, each with its abbreviation, offset and daylight flag now.
pg_timezone_names()
=>
refused (its error is under the limitations)
  • Refused: pg_timezone_names(). 0A000 pg_timezone_names() has no form on db2
timezone
A value at a zone; a zone written as a POSIX offset ('+05:30') is that many hours west of UTC.
timezone($z::text, $v)
=>
refused (its error is under the limitations)
  • Refused: timezone($z::text, $v). 0A000 timezone has no form on Db2 that gives PostgreSQL's answer
record_eq
Two records equal, a NULL field equal to a NULL field.
record_eq($a, $b)
=>
($a) = ($b)
record_ne
Two records not equal, a NULL field equal to a NULL field.
record_ne($a, $b)
=>
($a) <> ($b)
record_image_eq
Two records of equal images, a NULL field equal to a NULL field.
record_image_eq($a, $b)
=>
($a) = ($b)
record_image_ne
Two records of images not equal, a NULL field equal to a NULL field.
record_image_ne($a, $b)
=>
($a) <> ($b)
record_lt
One record before another.
record_lt($a, $b)
=>
($a) < ($b)
record_le
One record before or equal to another.
record_le($a, $b)
=>
($a) <= ($b)
record_gt
One record after another.
record_gt($a, $b)
=>
($a) > ($b)
record_ge
One record after or equal to another.
record_ge($a, $b)
=>
($a) >= ($b)
record_image_lt
One record image before another.
record_image_lt($a, $b)
=>
($a) < ($b)
record_image_le
One record image before or equal to another.
record_image_le($a, $b)
=>
($a) <= ($b)
record_image_gt
One record image after another.
record_image_gt($a, $b)
=>
($a) > ($b)
record_image_ge
One record image after or equal to another.
record_image_ge($a, $b)
=>
($a) >= ($b)
money_text
money's text, as cash_out writes it: $1,234.50, NULL for a NULL.
money_text($v)
=>
refused (its error is under the limitations)
  • Refused: money_text($v). XX000 cast to text on a money column needs money's own semantics, which db2 neither has nor emulates; it is not answered over the column's text form
interval_in
interval_in of a NULL: PostgreSQL's NULL of interval; of a constant, its interval.
interval_in(NULL, $o, $t)
=>
refused (its error is under the limitations)
interval_in($v, NULL, $t)
=>
refused (its error is under the limitations)
interval_in($v, $o, NULL)
=>
refused (its error is under the limitations)
interval_in('infinity', $o, $t)
=>
refused (its error is under the limitations)
interval_in('-infinity', $o, $t)
=>
refused (its error is under the limitations)
  • Refused: interval_in(NULL, $o, $t). 0A000 interval_in does not read this value
  • Refused: interval_in($v, NULL, $t). 0A000 interval_in does not read this value
  • Refused: interval_in($v, $o, NULL). 0A000 interval_in does not read this value
  • Refused: interval_in('infinity', $o, $t). 0A000 interval_in does not read this value
  • Refused: interval_in('-infinity', $o, $t). 0A000 interval_in does not read this value
  • A NULL of interval would be described as text: the call is refused. 0A000 interval_in does not read this value
  • A constant is folded to its text, which pgwire describes as interval; infinity, which pgwire has no interval value of, is refused. 0A000 interval_in does not read this value
jsonb_in
jsonb_in of a NULL: PostgreSQL's NULL of jsonb.
jsonb_in(NULL)
=>
refused (its error is under the limitations)
  • Refused: jsonb_in(NULL). 0A000 jsonb_in does not read this value
  • A NULL of jsonb would be described as text: the call is refused. 0A000 jsonb_in does not read this value
xid8in
xid8in of a NULL: PostgreSQL's NULL of xid8.
xid8in(NULL)
=>
refused (its error is under the limitations)
  • Refused: xid8in(NULL). 0A000 xid8in does not read this value
  • A NULL of xid8 would be described as text: the call is refused. 0A000 xid8in does not read this value
regexp_replace
The first match replaced, or every one with the g flag; i and c set the case.
regexp_replace($s, $p, $r, $f::text)
=>
refused (its error is under the limitations)
  • Refused: regexp_replace($s, $p, $r, $f::text). 0A000 regexp_replace has no form on Db2 that gives PostgreSQL's answer
pg_collation_for
The collation a COLLATE clause gives a value, as quote_ident writes its name.
pg_collation_for($v::text COLLATE "default")
=>
'"default"'
pg_collation_for($v::character COLLATE "default")
=>
'"default"'
pg_collation_for($v::name COLLATE "default")
=>
'"default"'
pg_collation_for($v::text COLLATE "C")
=>
'"C"'
pg_collation_for($v::character COLLATE "C")
=>
'"C"'
pg_collation_for($v::name COLLATE "C")
=>
'"C"'
pg_collation_for($v::text COLLATE "POSIX")
=>
'"POSIX"'
pg_collation_for($v::character COLLATE "POSIX")
=>
'"POSIX"'
pg_collation_for($v::name COLLATE "POSIX")
=>
'"POSIX"'
pg_collation_for($v::text COLLATE "ucs_basic")
=>
'ucs_basic'
pg_collation_for($v::character COLLATE "ucs_basic")
=>
'ucs_basic'
pg_collation_for($v::name COLLATE "ucs_basic")
=>
'ucs_basic'
pg_collation_for($v::text COLLATE ucs_basic)
=>
'ucs_basic'
pg_collation_for($v::character COLLATE ucs_basic)
=>
'ucs_basic'
pg_collation_for($v::name COLLATE ucs_basic)
=>
'ucs_basic'
pg_collation_for($v::text COLLATE "unicode")
=>
'unicode'
pg_collation_for($v::character COLLATE "unicode")
=>
'unicode'
pg_collation_for($v::name COLLATE "unicode")
=>
'unicode'
pg_collation_for($v::text COLLATE unicode)
=>
'unicode'
pg_collation_for($v::character COLLATE unicode)
=>
'unicode'
pg_collation_for($v::name COLLATE unicode)
=>
'unicode'
pg_collation_for($v::text COLLATE "pg_c_utf8")
=>
'pg_c_utf8'
pg_collation_for($v::character COLLATE "pg_c_utf8")
=>
'pg_c_utf8'
pg_collation_for($v::name COLLATE "pg_c_utf8")
=>
'pg_c_utf8'
pg_collation_for($v::text COLLATE pg_c_utf8)
=>
'pg_c_utf8'
pg_collation_for($v::character COLLATE pg_c_utf8)
=>
'pg_c_utf8'
pg_collation_for($v::name COLLATE pg_c_utf8)
=>
'pg_c_utf8'
pg_collation_for($v COLLATE $c)
=>
refused (its error is under the limitations)
  • Refused: pg_collation_for($v COLLATE $c). 0A000 pg_collation_for does not read this value
  • Only the built-in collations (default, C, POSIX, ucs_basic, unicode, pg_c_utf8) of a text, character or name value: any other COLLATE is refused. 0A000 pg_collation_for does not read this value
macaddr_and
The bitwise AND of two MAC addresses.
macaddr_and($a, $b)
=>
refused (its error is under the limitations)
  • Refused: macaddr_and($a, $b). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
macaddr_or
The bitwise OR of two MAC addresses.
macaddr_or($a, $b)
=>
refused (its error is under the limitations)
  • Refused: macaddr_or($a, $b). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
macaddr_not
The bitwise NOT of a MAC address.
macaddr_not($a)
=>
refused (its error is under the limitations)
  • Refused: macaddr_not($a). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
trunc
A MAC address with its last three (macaddr) or five (macaddr8) bytes set to zero.
trunc($m)
=>
refused (its error is under the limitations)
  • Refused: trunc($m). 0A000 trunc has no form on Db2 that gives PostgreSQL's answer
int2int4_sum
The sum of avg(smallint) and avg(integer)'s {count, sum} state.
int2int4_sum($a)
=>
refused (its error is under the limitations)
  • Refused: int2int4_sum($a). 0A000 int2int4_sum() has no form on db2
int2_sum
A step of an integer sum, in a bigint that wraps past its range.
int2_sum($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int2_sum($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
int4_sum
A step of an integer sum, in a bigint that wraps past its range.
int4_sum($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int4_sum($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
int8shl
A bigint shifted left, its count taken modulo 64, the result wrapping.
int8shl($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int8shl($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
int2shr
A smallint shifted right, its sign kept, its count taken modulo 32.
int2shr($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int2shr($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
int4shr
A integer shifted right, its sign kept, its count taken modulo 32.
int4shr($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int4shr($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
int8shr
A bigint shifted right, its sign kept, its count taken modulo 64.
int8shr($a, $b)
=>
refused (its error is under the limitations)
  • Refused: int8shr($a, $b). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
factorial
The product of the integers from 1 to n.
factorial($n)
=>
refused (its error is under the limitations)
  • Refused: factorial($n). 0A000 factorial has no form on Db2 that gives PostgreSQL's answer
numeric
An integer as a numeric.
numeric($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (real), (smallint). 0A000 numeric has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (double precision), (jsonb), (real). 0A000 numeric() has no form on db2
bool
An integer as a truth value: false for 0.
bool($v)
=>
refused (its error is under the limitations)
  • Refused: bool($v). 0A000 bool has no form on Db2 that gives PostgreSQL's answer
oid
A bigint as an oid.
oid($v)
=>
refused (its error is under the limitations)
  • Refused: oid($v). 0A000 oid has no form on Db2 that gives PostgreSQL's answer
random
A uniform random integer between two bounds, both included.
random($lo, $hi)
=>
refused (its error is under the limitations)
  • Refused: random($lo, $hi). 0A000 rand has no form on Db2 that gives PostgreSQL's answer
int2
A jsonb number as smallint.
int2($v)
=>
refused (its error is under the limitations)
  • Refused: int2($v). 0A000 int2() has no form on db2
int4
A jsonb number as integer.
int4($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of ("char"), (bigint), (bit), (double precision), (jsonb), (numeric), (real), (smallint). 0A000 int4() has no form on db2
int8
A jsonb number as bigint, and an oid as a bigint.
int8($v)
=>
refused (its error is under the limitations)
  • Refused: int8($v). 0A000 int8() has no form on db2
float8
A jsonb number as double precision.
float8($v)
=>
refused (its error is under the limitations)
  • Refused: float8($v). 0A000 float8() has no form on db2
float4
A jsonb number as real.
float4($v)
=>
refused (its error is under the limitations)
  • Refused: float4($v). 0A000 float4() has no form on db2
float4eq
Whether a real is equal to a real, NaN after every other value.
float4eq($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4ne
Whether a real is not equal to a real, NaN after every other value.
float4ne($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4lt
Whether a real is less than a real, NaN after every other value.
float4lt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4le
Whether a real is less than or equal to a real, NaN after every other value.
float4le($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4gt
Whether a real is greater than a real, NaN after every other value.
float4gt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4ge
Whether a real is greater than or equal to a real, NaN after every other value.
float4ge($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8eq
Whether a double is equal to a double, NaN after every other value.
float8eq($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8ne
Whether a double is not equal to a double, NaN after every other value.
float8ne($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8lt
Whether a double is less than a double, NaN after every other value.
float8lt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8le
Whether a double is less than or equal to a double, NaN after every other value.
float8le($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8gt
Whether a double is greater than a double, NaN after every other value.
float8gt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8ge
Whether a double is greater than or equal to a double, NaN after every other value.
float8ge($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48eq
Whether a real is equal to a double, NaN after every other value.
float48eq($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48ne
Whether a real is not equal to a double, NaN after every other value.
float48ne($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48lt
Whether a real is less than a double, NaN after every other value.
float48lt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48le
Whether a real is less than or equal to a double, NaN after every other value.
float48le($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48gt
Whether a real is greater than a double, NaN after every other value.
float48gt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float48ge
Whether a real is greater than or equal to a double, NaN after every other value.
float48ge($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84eq
Whether a double is equal to a real, NaN after every other value.
float84eq($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84ne
Whether a double is not equal to a real, NaN after every other value.
float84ne($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84lt
Whether a double is less than a real, NaN after every other value.
float84lt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84le
Whether a double is less than or equal to a real, NaN after every other value.
float84le($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84gt
Whether a double is greater than a real, NaN after every other value.
float84gt($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float84ge
Whether a double is greater than or equal to a real, NaN after every other value.
float84ge($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4larger
The greater of two floats, NaN after every other value.
float4larger($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float4smaller
The less of two floats, NaN after every other value.
float4smaller($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8larger
The greater of two floats, NaN after every other value.
float8larger($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
float8smaller
The less of two floats, NaN after every other value.
float8smaller($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
acos
The arc cosine of a value from -1 to 1.
acos($x)
=>
refused (its error is under the limitations)
  • Refused: acos($x). 0A000 acos has no form on Db2 that gives PostgreSQL's answer
asin
The arc sine of a value from -1 to 1.
asin($x)
=>
refused (its error is under the limitations)
  • Refused: asin($x). 0A000 asin has no form on Db2 that gives PostgreSQL's answer
atanh
The inverse hyperbolic tangent of a value from -1 to 1.
atanh($x)
=>
refused (its error is under the limitations)
  • Refused: atanh($x). 0A000 ln has no form on Db2 that gives PostgreSQL's answer
acosh
The inverse hyperbolic cosine of a value of 1 or more.
acosh($x)
=>
refused (its error is under the limitations)
  • Refused: acosh($x). 0A000 ln has no form on Db2 that gives PostgreSQL's answer
sin
The sine of a finite value.
sin($x)
=>
refused (its error is under the limitations)
  • Refused: sin($x). 0A000 sin has no form on Db2 that gives PostgreSQL's answer
cos
The cosine of a finite value.
cos($x)
=>
refused (its error is under the limitations)
  • Refused: cos($x). 0A000 cos has no form on Db2 that gives PostgreSQL's answer
tan
The tangent of a finite value.
tan($x)
=>
refused (its error is under the limitations)
  • Refused: tan($x). 0A000 tan has no form on Db2 that gives PostgreSQL's answer
cot
The cotangent of a finite value.
cot($x)
=>
refused (its error is under the limitations)
  • Refused: cot($x). 0A000 tan has no form on Db2 that gives PostgreSQL's answer
sqrt
The square root of a value of zero or more.
sqrt($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision), (numeric). 0A000 sqrt has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 sqrt() has no form on db2
log
The base 10 logarithm of a value above zero.
log($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision), (numeric). 0A000 log has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 log() has no form on db2
log10
The base 10 logarithm of a value above zero.
log10($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision), (numeric). 0A000 log has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 log10() has no form on db2
exp
e raised to a power; 22003 where a finite power overflows or underflows.
exp($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision), (numeric). 0A000 exp has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 exp() has no form on db2
ln
The natural logarithm of a value above zero.
ln($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision), (numeric). 0A000 ln has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 ln() has no form on db2
tanh
The hyperbolic tangent.
tanh($x)
=>
refused (its error is under the limitations)
  • Refused: tanh($x). 0A000 tanh has no form on Db2 that gives PostgreSQL's answer
power
A value raised to a power.
power($x, $y)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (double precision, double precision), (numeric, numeric), (double precision, double precision), (numeric, numeric). 0A000 power has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric, numeric), (numeric, numeric). 0A000 power() has no form on db2
pow
A value raised to a power.
pow($x, $y)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
degrees
Radians as degrees.
degrees($x)
=>
refused (its error is under the limitations)
  • Refused: degrees($x). 0A000 degrees has no form on Db2 that gives PostgreSQL's answer
sind
The sin of an angle in degrees, exact at 0, 30, 45, 60 and 90 as PostgreSQL's.
sind($x)
=>
refused (its error is under the limitations)
  • Refused: sind($x). 0A000 sind() has no form on db2
cosd
The cos of an angle in degrees, exact at 0, 30, 45, 60 and 90 as PostgreSQL's.
cosd($x)
=>
refused (its error is under the limitations)
  • Refused: cosd($x). 0A000 cosd() has no form on db2
tand
The tan of an angle in degrees, exact at 0, 30, 45, 60 and 90 as PostgreSQL's.
tand($x)
=>
refused (its error is under the limitations)
  • Refused: tand($x). 0A000 tand() has no form on db2
cotd
The cot of an angle in degrees, exact at 0, 30, 45, 60 and 90 as PostgreSQL's.
cotd($x)
=>
refused (its error is under the limitations)
  • Refused: cotd($x). 0A000 cotd() has no form on db2
sign
The sign of a value: -1, 0 or 1; 0 of NaN.
sign($x)
=>
refused (its error is under the limitations)
  • Refused: sign($x). 0A000 sign has no form on Db2 that gives PostgreSQL's answer
abs
The absolute value; of an integer type's least value, out of range.
abs($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (integer), (smallint). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 numeric without a precision of at most 31 has no form on Db2 that gives PostgreSQL's answer
lcm
The least common multiple of two integers; out of range past the type.
lcm($a, $b)
=>
refused (its error is under the limitations)
  • Refused: lcm($a, $b). 0A000 lcm has no form on Db2 that gives PostgreSQL's answer
chr
The character of a code point, as its UTF-8 bytes.
chr($x)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (integer), (text). 0A000 char has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (integer), (text), (integer). 0A000 chr has no form on Db2 that gives PostgreSQL's answer
in_range
Whether a value is within an offset of a base: a window frame's bound.
in_range($v, $b, $o, $s, $l)
=>
refused (its error is under the limitations)
  • Refused: in_range($v, $b, $o, $s, $l). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
regr_sxx
The sum of squares of the independent variable.
regr_sxx($y, $x)
=>
refused (its error is under the limitations)
  • Refused: regr_sxx($y, $x). 0A000 variance_pop has no form on Db2 that gives PostgreSQL's answer
regr_syy
The sum of squares of the dependent variable.
regr_syy($y, $x)
=>
refused (its error is under the limitations)
  • Refused: regr_syy($y, $x). 0A000 variance_pop has no form on Db2 that gives PostgreSQL's answer
regr_slope
The slope of the least-squares line.
regr_slope($y, $x)
=>
refused (its error is under the limitations)
  • Refused: regr_slope($y, $x). 0A000 variance_pop has no form on Db2 that gives PostgreSQL's answer
regr_intercept
The y-intercept of the least-squares line.
regr_intercept($y, $x)
=>
refused (its error is under the limitations)
  • Refused: regr_intercept($y, $x). 0A000 variance_pop has no form on Db2 that gives PostgreSQL's answer
regr_r2
The square of the correlation coefficient.
regr_r2($y, $x)
=>
refused (its error is under the limitations)
  • Refused: regr_r2($y, $x). 0A000 power has no form on Db2 that gives PostgreSQL's answer
corr
The correlation coefficient.
corr($y, $x)
=>
refused (its error is under the limitations)
  • Refused: corr($y, $x). 0A000 corr has no form on Db2 that gives PostgreSQL's answer
date_mi
The days from one date to another.
date_mi($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_mi($a, $b). 0A000 date_mi() has no form on db2
date_pli
A date moved forward by a number of days.
date_pli($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_pli($a, $b). 0A000 date_pli() has no form on db2
date_mii
A date moved back by a number of days.
date_mii($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_mii($a, $b). 0A000 date_mii() has no form on db2
integer_pl_date
A number of days plus a date (+).
integer_pl_date($n, $d)
=>
refused (its error is under the limitations)
  • Refused: integer_pl_date($n, $d). 0A000 integer_pl_date() has no form on db2
make_date
A date of a year, a month and a day.
make_date($y, $m, $d)
=>
refused (its error is under the limitations)
  • Refused: make_date($y, $m, $d). 0A000 make_date has no form on Db2 that gives PostgreSQL's answer
transaction_timestamp
The time the transaction began: now(), as Provisa answers it.
transaction_timestamp()
=>
refused (its error is under the limitations)
  • Refused: transaction_timestamp(). 0A000 transaction_timestamp has no form on Db2 that gives PostgreSQL's answer
clock_timestamp
The time now, read as the statement runs.
clock_timestamp()
=>
refused (its error is under the limitations)
  • Refused: clock_timestamp(). 0A000 clock_timestamp() has no form on db2
to_char(timestamp, text)
A timestamp's or an instant's text in a template.
to_char($a, $b)
=>
refused (its error is under the limitations)
  • Refused: to_char($a, $b). 0A000 time_to_str has no form on Db2 that gives PostgreSQL's answer
postgresql_fdw_validator
Whether the options of a foreign-data wrapper are valid: 22004 for an option array holding a NULL element, else 42601 invalid option naming the first option the catalog does not list.
  • Refused with 0A000 by name: the engine has no form of the array filter the validator's form is written with. 0A000 array_length() has no form on db2
mxid_age
The age of a multixact id: INT_MAX for 0, and 1 less it, as Provisa makes no multixact.
mxid_age($x)
=>
refused (its error is under the limitations)
  • Refused: mxid_age($x). 0A000 mxid_age() has no form on db2
pg_char_to_encoding
An encoding's number by any of PostgreSQL's names of it; -1 for a name of none.
pg_char_to_encoding($n)
=>
refused (its error is under the limitations)
  • Refused: pg_char_to_encoding($n). 0A000 pg_char_to_encoding() has no form on db2
pg_size_pretty
A bigint count of bytes in the largest unit below its limit, as dbsize.c writes it.
pg_size_pretty($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (numeric). 0A000 pg_size_pretty has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (numeric). 0A000 pg_size_pretty() has no form on db2
pg_encoding_max_length
The most bytes of a character of an encoding, by its number.
pg_encoding_max_length($v)
=>
refused (its error is under the limitations)
  • Refused: pg_encoding_max_length($v). 0A000 pg_encoding_max_length() has no form on db2
jsonb_exists
Whether a text is a top-level key, a string element, or the scalar string of a jsonb.
jsonb_exists($v, $k)
=>
refused (its error is under the limitations)
  • Refused: jsonb_exists($v, $k). 0A000 jsonb_exists() has no form on db2
jsonb_exists_any
Whether any text of an array is a top-level key or string element of a jsonb.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_exists_all
Whether every text of an array is a top-level key or string element of a jsonb.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object_keys
An object's distinct keys, in jsonb's order: the shorter first, then by bytes.
jsonb_object_keys($v)
=>
refused (its error is under the limitations)
  • Refused: jsonb_object_keys($v). 0A000 jsonb_object_keys() has no form on db2
json_object_keys
An object's keys as written, a repeated key each time.
json_object_keys($v)
=>
refused (its error is under the limitations)
  • Refused: json_object_keys($v). 0A000 json_object_keys() has no form on db2
to_json
A value as its JSON.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
to_jsonb
A value as its JSON.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_build_array
A JSON array of the values given.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_build_array
A JSON array of the values given.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
row_to_json
A record as a JSON object of its fields.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
array_to_json
An array as a JSON array.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_agg
A JSON array of an aggregate's values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_agg_strict
A JSON array of an aggregate's values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_agg_strict
A JSON array of an aggregate's values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_array_elements
A row of each element of an array.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_array_elements_text
A row of each element of an array.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_array_elements
A row of each element of an array.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_array_elements_text
A row of each element of an array.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_each
A record of each member of an object.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_each_text
A record of each member of an object.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_each
A record of each member of an object.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_each_text
A record of each member of an object.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_extract_path
The value at a path.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_extract_path_text
The value at a path.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_extract_path
The value at a path.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_extract_path_text
The value at a path.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_object_agg
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_object_agg_strict
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_object_agg_unique
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_object_agg_unique_strict
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object_agg
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object_agg_strict
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object_agg_unique
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object_agg_unique_strict
A JSON object of an aggregate's keys and values.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_concat
Two jsonb values joined.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_delete
A jsonb value without a key, an index or keys.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
json_strip_nulls
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_cmp
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_contained
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_contains
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_delete_path
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_eq
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_ge
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_gt
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_hash
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_hash_extended
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_insert
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_le
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_lt
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_ne
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_object
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_exists
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_exists_opr
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_exists_tz
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_match
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_match_opr
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_match_tz
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query_array
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query_array_tz
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query_first
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query_first_tz
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_path_query_tz
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_pretty
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_set
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_set_lax
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
jsonb_strip_nulls
A json or jsonb function computed of literal arguments.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
array_agg
The values of an aggregate as an array, a NULL kept; NULL of no rows.
array_agg($a)
=>
refused (its error is under the limitations)
  • Refused: array_agg($a). 0A000 array_agg has no form on Db2 that gives PostgreSQL's answer
date_trunc
The start of a unit of a timestamp.
date_trunc($u, $t)
=>
refused (its error is under the limitations)
date_trunc($u, $t, $z)
=>
refused (its error is under the limitations)
  • Refused: date_trunc($u, $t). 0A000 timestamp_trunc has no form on Db2 that gives PostgreSQL's answer
  • Refused: date_trunc($u, $t, $z). 0A000 timestamp_trunc has no form on Db2 that gives PostgreSQL's answer
ntile
The bucket of a row in a window, as an integer.
function provisa.transpiler.polyfill.clickhouse.bucketed: ntile over a window, as PostgreSQL's integer: every engine's is a bigint. On ClickHouse a
numeric_mod
The remainder of one numeric divided by another, at the larger scale of the two.
numeric_mod($a, $b)
=>
refused (its error is under the limitations)
  • Refused: numeric_mod($a, $b). 0A000 numeric_mod() has no form on db2
spg_poly_quad_compress
A polygon's bounding box, as the SP-GiST quad tree's compress function answers it.
spg_poly_quad_compress($v)
=>
refused (its error is under the limitations)
  • Refused: spg_poly_quad_compress($v). 0A000 spg_poly_quad_compress() has no form on db2
avg
The mean of a group's values.
avg($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (interval), (numeric), (real), (smallint). 0A000 avg has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bigint), (integer), (interval), (numeric), (smallint). 0A000 avg() has no form on db2
variance
The sample variance of a group's values.
variance($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (numeric), (real), (smallint), (bigint), (double precision), (integer), (numeric), (real), (smallint). 0A000 variance has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bigint), (integer), (numeric), (smallint), (bigint), (integer), (numeric), (smallint). 0A000 variance() has no form on db2
var_samp
The sample variance of a group's values.
var_samp($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
var_pop
The population variance of a group's values.
var_pop($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (integer), (numeric), (smallint). 0A000 var_pop() has no form on db2
  • Refused for a call of (bigint), (double precision), (integer), (numeric), (real), (smallint). 0A000 variance_pop has no form on Db2 that gives PostgreSQL's answer
stddev
The sample standard deviation of a group's values.
stddev($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (numeric), (real), (smallint). 0A000 stddev has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bigint), (integer), (numeric), (smallint). 0A000 stddev() has no form on db2
stddev_samp
The sample standard deviation of a group's values.
stddev_samp($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (numeric), (real), (smallint). 0A000 stddev_samp has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bigint), (integer), (numeric), (smallint). 0A000 stddev_samp() has no form on db2
stddev_pop
The population standard deviation of a group's values.
stddev_pop($v)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bigint), (double precision), (integer), (numeric), (real), (smallint). 0A000 stddev_pop has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bigint), (integer), (numeric), (smallint). 0A000 stddev_pop() has no form on db2
xid8eq
Two xid8 values equal.
xid8eq($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8eq($a, $b). 0A000 xid8eq() has no form on db2
xid8ne
Two xid8 values not equal.
xid8ne($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8ne($a, $b). 0A000 xid8ne() has no form on db2
xid8lt
One xid8 before another.
xid8lt($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8lt($a, $b). 0A000 xid8lt() has no form on db2
xid8le
One xid8 before or equal to another.
xid8le($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8le($a, $b). 0A000 xid8le() has no form on db2
xid8gt
One xid8 after another.
xid8gt($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8gt($a, $b). 0A000 xid8gt() has no form on db2
xid8ge
One xid8 after or equal to another.
xid8ge($a, $b)
=>
refused (its error is under the limitations)
  • Refused: xid8ge($a, $b). 0A000 xid8ge() has no form on db2
xid8send
An xid8's binary form.
xid8send($v)
=>
refused (its error is under the limitations)
  • Refused: xid8send($v). 0A000 xid8send() has no form on db2
pg_snapshot_xmin
A snapshot's earliest active id.
pg_snapshot_xmin($s)
=>
refused (its error is under the limitations)
  • Refused: pg_snapshot_xmin($s). 0A000 pg_snapshot_xmin() has no form on db2
pg_snapshot_xmax
A snapshot's first unassigned id.
pg_snapshot_xmax($s)
=>
refused (its error is under the limitations)
  • Refused: pg_snapshot_xmax($s). 0A000 pg_snapshot_xmax() has no form on db2
pg_snapshot_xip
A snapshot's in-progress ids, as rows.
pg_snapshot_xip($s)
=>
refused (its error is under the limitations)
  • Refused: pg_snapshot_xip($s). 0A000 pg_snapshot_xip() has no form on db2
pg_snapshot_send
A snapshot's binary form.
pg_snapshot_send($s)
=>
refused (its error is under the limitations)
  • Refused: pg_snapshot_send($s). 0A000 pg_snapshot_send() has no form on db2
txid_snapshot_xmin
A snapshot's earliest active id.
txid_snapshot_xmin($s)
=>
refused (its error is under the limitations)
  • Refused: txid_snapshot_xmin($s). 0A000 txid_snapshot_xmin() has no form on db2
txid_snapshot_xmax
A snapshot's first unassigned id.
txid_snapshot_xmax($s)
=>
refused (its error is under the limitations)
  • Refused: txid_snapshot_xmax($s). 0A000 txid_snapshot_xmax() has no form on db2
txid_snapshot_xip
A snapshot's in-progress ids, as rows.
txid_snapshot_xip($s)
=>
refused (its error is under the limitations)
  • Refused: txid_snapshot_xip($s). 0A000 txid_snapshot_xip() has no form on db2
txid_snapshot_send
A snapshot's binary form.
txid_snapshot_send($s)
=>
refused (its error is under the limitations)
  • Refused: txid_snapshot_send($s). 0A000 txid_snapshot_send() has no form on db2
pg_visible_in_snapshot
Whether a transaction id is visible in a snapshot.
pg_visible_in_snapshot($x, $s)
=>
refused (its error is under the limitations)
  • Refused: pg_visible_in_snapshot($x, $s). 0A000 pg_visible_in_snapshot() has no form on db2
txid_visible_in_snapshot
Whether a transaction id is visible in a snapshot.
txid_visible_in_snapshot($x, $s)
=>
refused (its error is under the limitations)
  • Refused: txid_visible_in_snapshot($x, $s). 0A000 txid_visible_in_snapshot() has no form on db2
to_hex
An integer's hexadecimal digits.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
to_oct
An integer's octal digits.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
to_bin
An integer's binary digits.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
isfinite(interval)
Whether an interval is finite.
isfinite($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (interval). 0A000 the type interval has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (timestamp with time zone). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
overlaps(timestamp, interval, timestamp, interval)
Whether two periods overlap, an end of either given as an interval from its start: overlaps(timestamp, interval, timestamp, interval), (timestamp, interval, timestamp, timestamp), (timestamp, timestamp, timestamp, interval), the same of times of day, and overlaps of four times of day (overlaps_time).
overlaps($a, $b, $c, $d)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
timestamptz_eq
Whether an instant equals an instant.
timestamptz_eq($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_eq($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ne
Whether an instant differs from an instant.
timestamptz_ne($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ne($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_lt
Whether an instant is before an instant.
timestamptz_lt($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_lt($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_le
Whether an instant is not after an instant.
timestamptz_le($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_le($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_gt
Whether an instant is after an instant.
timestamptz_gt($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_gt($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ge
Whether an instant is not before an instant.
timestamptz_ge($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ge($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_cmp
btree's comparison of an instant and an instant: -1, 0 or 1.
timestamptz_cmp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_cmp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_larger
The later of an instant and an instant.
timestamptz_larger($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_larger($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_smaller
The earlier of an instant and an instant.
timestamptz_smaller($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_smaller($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_eq_date
Whether an instant equals a date.
timestamptz_eq_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_eq_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ne_date
Whether an instant differs from a date.
timestamptz_ne_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ne_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_lt_date
Whether an instant is before a date.
timestamptz_lt_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_lt_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_le_date
Whether an instant is not after a date.
timestamptz_le_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_le_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_gt_date
Whether an instant is after a date.
timestamptz_gt_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_gt_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ge_date
Whether an instant is not before a date.
timestamptz_ge_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ge_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_cmp_date
btree's comparison of an instant and a date: -1, 0 or 1.
timestamptz_cmp_date($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_cmp_date($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_eq_timestamptz
Whether a date equals an instant.
date_eq_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_eq_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_ne_timestamptz
Whether a date differs from an instant.
date_ne_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_ne_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_lt_timestamptz
Whether a date is before an instant.
date_lt_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_lt_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_le_timestamptz
Whether a date is not after an instant.
date_le_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_le_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_gt_timestamptz
Whether a date is after an instant.
date_gt_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_gt_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_ge_timestamptz
Whether a date is not before an instant.
date_ge_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_ge_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
date_cmp_timestamptz
btree's comparison of a date and an instant: -1, 0 or 1.
date_cmp_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: date_cmp_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_eq_timestamp
Whether an instant equals a timestamp.
timestamptz_eq_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_eq_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ne_timestamp
Whether an instant differs from a timestamp.
timestamptz_ne_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ne_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_lt_timestamp
Whether an instant is before a timestamp.
timestamptz_lt_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_lt_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_le_timestamp
Whether an instant is not after a timestamp.
timestamptz_le_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_le_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_gt_timestamp
Whether an instant is after a timestamp.
timestamptz_gt_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_gt_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_ge_timestamp
Whether an instant is not before a timestamp.
timestamptz_ge_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_ge_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamptz_cmp_timestamp
btree's comparison of an instant and a timestamp: -1, 0 or 1.
timestamptz_cmp_timestamp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamptz_cmp_timestamp($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_eq_timestamptz
Whether a timestamp equals an instant.
timestamp_eq_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_eq_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_ne_timestamptz
Whether a timestamp differs from an instant.
timestamp_ne_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_ne_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_lt_timestamptz
Whether a timestamp is before an instant.
timestamp_lt_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_lt_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_le_timestamptz
Whether a timestamp is not after an instant.
timestamp_le_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_le_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_gt_timestamptz
Whether a timestamp is after an instant.
timestamp_gt_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_gt_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_ge_timestamptz
Whether a timestamp is not before an instant.
timestamp_ge_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_ge_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
timestamp_cmp_timestamptz
btree's comparison of a timestamp and an instant: -1, 0 or 1.
timestamp_cmp_timestamptz($a, $b)
=>
refused (its error is under the limitations)
  • Refused: timestamp_cmp_timestamptz($a, $b). 0A000 the type timestamptz has no form on Db2 that gives PostgreSQL's answer
isfinite(timestamptz)
Whether an instant is finite.
isfinite($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
timestamp(timestamptz)
An instant's wall time in the session's zone.
timestamp($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (timestamp with time zone). 0A000 attimezone has no form on Db2 that gives PostgreSQL's answer
overlaps(timestamptz)
Whether two periods of instants overlap.
overlaps($a, $b, $c, $d)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
timezone(timestamptz)
An instant's wall time in the session's zone.
timezone($a)
=>
refused (its error is under the limitations)
  • Refused: timezone($a). 0A000 timezone has no form on Db2 that gives PostgreSQL's answer
timestamptz(timestamptz, integer)
An instant rounded to a number of digits of a second.
timestamptz($a, $n)
=>
refused (its error is under the limitations)
  • Refused: timestamptz($a, $n). 0A000 timestamptz() has no form on db2
area(shape)
PostgreSQL's box_area, circle_area, path_area.
area($a)
=>
refused (its error is under the limitations)
  • Refused: area($a). 0A000 area() has no form on db2
center(shape)
PostgreSQL's circle_center.
center($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (circle). 0A000 center() has no form on db2
  • Refused for a call of (box). 0A000 point() has no form on db2
circle_center(shape)
PostgreSQL's circle_center.
circle_center($a)
=>
refused (its error is under the limitations)
  • Refused: circle_center($a). 0A000 center() has no form on db2
diagonal(shape)
PostgreSQL's box_diagonal.
diagonal($a)
=>
refused (its error is under the limitations)
  • Refused: diagonal($a). 0A000 diagonal() has no form on db2
height(shape)
PostgreSQL's box_height.
height($a)
=>
refused (its error is under the limitations)
  • Refused: height($a). 0A000 height() has no form on db2
width(shape)
PostgreSQL's box_width.
width($a)
=>
refused (its error is under the limitations)
  • Refused: width($a). 0A000 width() has no form on db2
radius(shape)
PostgreSQL's circle_radius.
radius($a)
=>
refused (its error is under the limitations)
  • Refused: radius($a). 0A000 radius() has no form on db2
isclosed(shape)
PostgreSQL's path_isclosed.
isclosed($a)
=>
refused (its error is under the limitations)
  • Refused: isclosed($a). 0A000 isclosed() has no form on db2
isopen(shape)
PostgreSQL's path_isopen.
isopen($a)
=>
refused (its error is under the limitations)
  • Refused: isopen($a). 0A000 isopen() has no form on db2
ishorizontal(shape, shape)
PostgreSQL's point_horiz.
ishorizontal($a, $b)
=>
refused (its error is under the limitations)
  • Refused: ishorizontal($a, $b). 0A000 ishorizontal() has no form on db2
isvertical(shape, shape)
PostgreSQL's point_vert.
isvertical($a, $b)
=>
refused (its error is under the limitations)
  • Refused: isvertical($a, $b). 0A000 isvertical() has no form on db2
ishorizontal(shape)
PostgreSQL's line_horizontal, lseg_horizontal.
ishorizontal($a)
=>
refused (its error is under the limitations)
  • Refused: ishorizontal($a). 0A000 ishorizontal() has no form on db2
isvertical(shape)
PostgreSQL's line_vertical, lseg_vertical.
isvertical($a)
=>
refused (its error is under the limitations)
  • Refused: isvertical($a). 0A000 isvertical() has no form on db2
isparallel(shape, shape)
PostgreSQL's line_parallel, lseg_parallel.
isparallel($a, $b)
=>
refused (its error is under the limitations)
  • Refused: isparallel($a, $b). 0A000 isparallel() has no form on db2
isperp(shape, shape)
PostgreSQL's line_perp, lseg_perp.
isperp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: isperp($a, $b). 0A000 isperp() has no form on db2
line_horizontal(shape)
PostgreSQL's line_horizontal.
line_horizontal($a)
=>
refused (its error is under the limitations)
  • Refused: line_horizontal($a). 0A000 ishorizontal() has no form on db2
line_vertical(shape)
PostgreSQL's line_vertical.
line_vertical($a)
=>
refused (its error is under the limitations)
  • Refused: line_vertical($a). 0A000 isvertical() has no form on db2
line_parallel(shape, shape)
PostgreSQL's line_parallel.
line_parallel($a, $b)
=>
refused (its error is under the limitations)
  • Refused: line_parallel($a, $b). 0A000 isparallel() has no form on db2
line_perp(shape, shape)
PostgreSQL's line_perp.
line_perp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: line_perp($a, $b). 0A000 isperp() has no form on db2
lseg_horizontal(shape)
PostgreSQL's lseg_horizontal.
lseg_horizontal($a)
=>
refused (its error is under the limitations)
  • Refused: lseg_horizontal($a). 0A000 ishorizontal() has no form on db2
lseg_vertical(shape)
PostgreSQL's lseg_vertical.
lseg_vertical($a)
=>
refused (its error is under the limitations)
  • Refused: lseg_vertical($a). 0A000 isvertical() has no form on db2
lseg_parallel(shape, shape)
PostgreSQL's lseg_parallel.
lseg_parallel($a, $b)
=>
refused (its error is under the limitations)
  • Refused: lseg_parallel($a, $b). 0A000 isparallel() has no form on db2
lseg_perp(shape, shape)
PostgreSQL's lseg_perp.
lseg_perp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: lseg_perp($a, $b). 0A000 isperp() has no form on db2
lseg_length(shape)
PostgreSQL's lseg_length.
lseg_length($a)
=>
refused (its error is under the limitations)
  • Refused: lseg_length($a). 0A000 length() has no form on db2
path_length(shape)
PostgreSQL's path_length.
path_length($a)
=>
refused (its error is under the limitations)
  • Refused: path_length($a). 0A000 length() has no form on db2
pt_contained_circle(shape, shape)
PostgreSQL's pt_contained_circle.
pt_contained_circle($a, $b)
=>
refused (its error is under the limitations)
  • Refused: pt_contained_circle($a, $b). 0A000 pt_contained_circle() has no form on db2
pt_contained_poly(shape, shape)
PostgreSQL's pt_contained_poly.
pt_contained_poly($a, $b)
=>
refused (its error is under the limitations)
  • Refused: pt_contained_poly($a, $b). 0A000 pt_contained_poly() has no form on db2
btrim
Text without the characters of a set at its start and end.
btrim($t::text, $c::text)
=>
refused (its error is under the limitations)
  • Refused: btrim($t::text, $c::text). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
ltrim
Text without the characters of a set at its start.
ltrim($t::text, $c::text)
=>
refused (its error is under the limitations)
  • Refused: ltrim($t::text, $c::text). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
rtrim
Text without the characters of a set at its end.
rtrim($t::text, $c::text)
=>
refused (its error is under the limitations)
  • Refused: rtrim($t::text, $c::text). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
translate
Each character found in a set replaced by the one at its place in another, or dropped.
translate($t::text, $f::text, $r::text)
=>
refused (its error is under the limitations)
  • Refused: translate($t::text, $f::text, $r::text). 0A000 translate has no form on Db2 that gives PostgreSQL's answer
overlay
Text with a replacement put in place of a count of its characters from a start.
overlay($t::text, $r::text, $p::integer, $n::integer)
=>
refused (its error is under the limitations)
overlay($t::text, $r::text, $p::integer)
=>
refused (its error is under the limitations)
  • Refused: overlay($t::text, $r::text, $p::integer, $n::integer). 0A000 overlay has no form on Db2 that gives PostgreSQL's answer
  • Refused: overlay($t::text, $r::text, $p::integer). 0A000 overlay has no form on Db2 that gives PostgreSQL's answer
string_to_array
Text split at each delimiter into an array; a piece equal to a third argument is NULL.
string_to_array($s::text, $d::text)
=>
refused (its error is under the limitations)
string_to_array($s::text, $d::text, $n::text)
=>
refused (its error is under the limitations)
  • Refused: string_to_array($s::text, $d::text). 0A000 string_to_array has no form on Db2 that gives PostgreSQL's answer
  • Refused: string_to_array($s::text, $d::text, $n::text). 0A000 string_to_array has no form on Db2 that gives PostgreSQL's answer
varchar
Text cast to character varying of a declared length (its typmod).
varchar($s, $m, $e)
=>
refused (its error is under the limitations)
varchar($s::name)
=>
refused (its error is under the limitations)
  • Refused: varchar($s, $m, $e). 0A000 varchar has no form on Db2 that gives PostgreSQL's answer
  • Refused: varchar($s::name). 0A000 varchar has no form on Db2 that gives PostgreSQL's answer
bpchar
Text cast to character of a declared length (its typmod), padded with spaces.
bpchar($s, $m, $e)
=>
refused (its error is under the limitations)
  • Refused: bpchar($s, $m, $e). 0A000 bpchar has no form on Db2 that gives PostgreSQL's answer
nameconcatoid
A name and an oid joined by an underscore, the name cut to fit a name's 63 bytes.
nameconcatoid($n, $o)
=>
refused (its error is under the limitations)
  • Refused: nameconcatoid($n, $o). 0A000 left has no form on Db2 that gives PostgreSQL's answer
left
The first characters of a text; a negative count all but the last.
left($t::text, $n::integer)
=>
refused (its error is under the limitations)
  • Refused: left($t::text, $n::integer). 0A000 left has no form on Db2 that gives PostgreSQL's answer
right
The last characters of a text; a negative count all but the first.
right($t::text, $n::integer)
=>
refused (its error is under the limitations)
  • Refused: right($t::text, $n::integer). 0A000 right has no form on Db2 that gives PostgreSQL's answer
reverse
A text's characters in reverse order.
reverse($t::text)
=>
refused (its error is under the limitations)
  • Refused: reverse($t::text). 0A000 reverse has no form on Db2 that gives PostgreSQL's answer
substr
A text's characters from a position, for a count.
substr($t::text, $s::integer)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
substr($t::text, $s::integer, $l::integer)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (text, integer), (text, integer) with an argument the statement says is of that type, not a NULL. 0A000 substring with a start that is not a literal of at least 1 has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (text, integer, integer), (text, integer, integer) with an argument the statement says is of that type, not a NULL. 0A000 substring with a start that is not a literal of at least 1 has no form on Db2 that gives PostgreSQL's answer
lpad
A text filled on the left to a count of characters.
lpad($t::text, $n::integer)
=>
refused (its error is under the limitations)
lpad($t::text, $n::integer, $f::text)
=>
refused (its error is under the limitations)
  • Refused: lpad($t::text, $n::integer). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
  • Refused: lpad($t::text, $n::integer, $f::text). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
rpad
A text filled on the right to a count of characters.
rpad($t::text, $n::integer)
=>
refused (its error is under the limitations)
rpad($t::text, $n::integer, $f::text)
=>
refused (its error is under the limitations)
  • Refused: rpad($t::text, $n::integer). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
  • Refused: rpad($t::text, $n::integer, $f::text). 0A000 pad has no form on Db2 that gives PostgreSQL's answer
ascii
The code point of a text's first character.
ascii($t::text)
=>
refused (its error is under the limitations)
  • Refused: ascii($t::text). 0A000 ascii has no form on Db2 that gives PostgreSQL's answer
btnamecmp
btree's comparison of two names: strncmp's difference of their first differing bytes.
btnamecmp($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
btnametextcmp
btree's comparison of a name and a text: memcmp's difference of their first differing bytes.
btnametextcmp($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
bttextnamecmp
btree's comparison of a text and a name: memcmp's difference of their first differing bytes.
bttextnamecmp($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
bttext_pattern_cmp
btree's byte-order comparison of two texts: memcmp's difference of their first differing bytes.
bttext_pattern_cmp($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
gin_cmp_tslexeme
GIN's comparison of two lexemes: memcmp's difference of their first differing bytes.
gin_cmp_tslexeme($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
gin_compare_jsonb
GIN's comparison of two jsonb keys' texts: memcmp's difference of their first differing bytes.
gin_compare_jsonb($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
byteacmp
btree's comparison of two byte strings: memcmp's difference of their first differing bytes.
byteacmp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: byteacmp($a, $b). 0A000 the type bytea has no form on Db2 that gives PostgreSQL's answer
btbpchar_pattern_cmp
btree's byte-order comparison of two character strings, trailing spaces as padding: memcmp's difference of their first differing bytes.
btbpchar_pattern_cmp($a, $b)
=>
refused (its error is under the limitations)
  • Refused: btbpchar_pattern_cmp($a, $b). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
octet_length(bytea)
A bytea's number of bytes.
octet_length($a)
=>
refused (its error is under the limitations)
  • Refused: octet_length($a). 0A000 octet_length has no form on Db2 that gives PostgreSQL's answer
length(bytea)
A bytea's number of bytes.
length($a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (lseg), (path), (tsvector). 0A000 length() has no form on db2
  • Refused for a call of (bit). 0A000 the type bit has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bytea). 0A000 the type bytea has no form on Db2 that gives PostgreSQL's answer
bit_length(bytea)
A bytea's number of bits.
bit_length($a)
=>
refused (its error is under the limitations)
  • Refused: bit_length($a). 0A000 octet_length has no form on Db2 that gives PostgreSQL's answer
bit_count(bytea)
The number of a bytea's bits that are set.
bit_count($a)
=>
refused (its error is under the limitations)
  • Refused: bit_count($a). 0A000 bit_count has no form on Db2 that gives PostgreSQL's answer
byteacat(bytea, bytea)
Two byteas, one after the other.
byteacat($a, $b)
=>
refused (its error is under the limitations)
  • Refused: byteacat($a, $b). 0A000 the type bytea has no form on Db2 that gives PostgreSQL's answer
btrim(bytea, bytea)
A bytea less the bytes of a set at its start and its end.
btrim($a, $b)
=>
refused (its error is under the limitations)
trim(both $b from $a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused: btrim($a, $b). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
ltrim(bytea, bytea)
A bytea less the bytes of a set at its start.
ltrim($a, $b)
=>
refused (its error is under the limitations)
  • Refused: ltrim($a, $b). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
rtrim(bytea, bytea)
A bytea less the bytes of a set at its end.
rtrim($a, $b)
=>
refused (its error is under the limitations)
  • Refused: rtrim($a, $b). 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
get_bit(bytea, bigint)
A bit of a bytea, the first the low bit of its first byte.
get_bit($a, $n)
=>
refused (its error is under the limitations)
  • Refused: get_bit($a, $n). 0A000 getbit has no form on Db2 that gives PostgreSQL's answer
set_bit(bytea, bigint, integer)
A bytea with one of its bits set to 0 or 1.
set_bit($a, $n, $v)
=>
refused (its error is under the limitations)
  • Refused: set_bit($a, $n, $v). 0A000 set_bit has no form on Db2 that gives PostgreSQL's answer
get_byte(bytea, integer)
A byte of a bytea.
get_byte($a, $n)
=>
refused (its error is under the limitations)
  • Refused: get_byte($a, $n). 0A000 get_byte() has no form on db2
set_byte(bytea, integer, integer)
A bytea with one of its bytes replaced.
set_byte($a, $n, $v)
=>
refused (its error is under the limitations)
  • Refused: set_byte($a, $n, $v). 0A000 set_byte() has no form on db2
like(bytea, bytea)
Whether a bytea matches a LIKE pattern.
$a LIKE $b
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
bytealike(bytea, bytea)
Whether a bytea matches a LIKE pattern.
bytealike($a, $b)
=>
refused (its error is under the limitations)
  • Refused: bytealike($a, $b). 0A000 bytealike() has no form on db2
notlike(bytea, bytea)
Whether a bytea does not match a LIKE pattern.
notlike($a, $b)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
$a NOT LIKE $b
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bytea, bytea). 0A000 the type bytea has no form on Db2 that gives PostgreSQL's answer
byteanlike(bytea, bytea)
Whether a bytea does not match a LIKE pattern.
byteanlike($a, $b)
=>
refused (its error is under the limitations)
  • Refused: byteanlike($a, $b). 0A000 byteanlike() has no form on db2
like_escape(bytea, bytea)
A LIKE pattern with its escape byte written as a backslash.
like_escape($a, $b)
=>
refused (its error is under the limitations)
  • Refused: like_escape($a, $b). 0A000 like_escape has no form on Db2 that gives PostgreSQL's answer
overlay(bytea, bytea, integer)
A bytea with a part of it replaced by another.
overlay($a, $b, $s)
=>
refused (its error is under the limitations)
overlay($a, $b, $s, $l)
=>
refused (its error is under the limitations)
  • Refused: overlay($a, $b, $s). 0A000 overlay has no form on Db2 that gives PostgreSQL's answer
  • Refused: overlay($a, $b, $s, $l). 0A000 overlay has no form on Db2 that gives PostgreSQL's answer
position(bytea, bytea)
Where a bytea first holds another, from 1; 0 where it does not.
position($b in $a)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
substr(bytea, integer)
A part of a bytea, from a byte and for a number of bytes.
substr($a, $s)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
substr($a, $s, $l)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bytea, integer), (bit, integer), (bytea, integer), (text, text). 0A000 substring with a start that is not a literal of at least 1 has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bit, integer). 0A000 the type bit has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bytea, integer, integer), (bit, integer, integer), (bytea, integer, integer), (text, text, text). 0A000 substring with a start that is not a literal of at least 1 has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bit, integer, integer). 0A000 the type bit has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bytea, integer, integer), (bytea, integer, integer). 0A000 unhex has no form on Db2 that gives PostgreSQL's answer
encode(bytea, text)
A bytea's text in hex, base64 or escape form.
encode($a, $f)
=>
function provisa.transpiler.polyfill.trino.kept: The old table's form (provisa.transpiler.function_macros): this row writes Trino's only.
  • Refused for a call of (bytea, text). 0A000 encode has no form on Db2 that gives PostgreSQL's answer
  • Refused for a call of (bytea, text). 0A000 encode() has no form on db2
a construct with no exact form
Any construct the engine's form is not known to agree with PostgreSQL on.
  • A construct not listed as having a form that gives PostgreSQL's answer is refused by name before any SQL is written. 0A000 {construct} has no form on Db2 that gives PostgreSQL's answer
avg of an integer
avg(a).
  • Db2's AVG of an integer column is an integer (truncated); PostgreSQL's is numeric. 0A000 avg has no form on Db2 that gives PostgreSQL's answer
greatest of a NULL
greatest(a, b).
  • It returns NULL for any NULL argument; PostgreSQL skips it. 0A000 greatest has no form on Db2 that gives PostgreSQL's answer
least of a NULL
least(a, b).
  • It returns NULL for any NULL argument; PostgreSQL skips it. 0A000 least has no form on Db2 that gives PostgreSQL's answer
concat of a NULL
concat(a, b).
  • It returns NULL for any NULL argument; PostgreSQL skips it. 0A000 concat has no form on Db2 that gives PostgreSQL's answer
round's result type
round(a, n).
  • Its result type follows its arguments; PostgreSQL's does not. 0A000 round has no form on Db2 that gives PostgreSQL's answer
power's result type
power(a, b).
  • Its result type follows its arguments; PostgreSQL's does not. 0A000 power has no form on Db2 that gives PostgreSQL's answer
an interval
a + INTERVAL '1 day'.
  • It has no interval type; a labeled duration keeps a date a date. 0A000 interval has no form on Db2 that gives PostgreSQL's answer
date_trunc on an exact engine
date_trunc('month', d).
  • It has no interval type; a labeled duration keeps a date a date. 0A000 timestamp_trunc has no form on Db2 that gives PostgreSQL's answer
current_date in the session's zone
CURRENT_DATE.
  • Its clock is the server's zone, not the session's. 0A000 current_date has no form on Db2 that gives PostgreSQL's answer
current_timestamp in the session's zone
now(), CURRENT_TIMESTAMP.
  • Its clock is the server's zone, not the session's. 0A000 current_timestamp has no form on Db2 that gives PostgreSQL's answer
a POSIX regular expression
a ~ 'x'.
  • Db2's REGEXP_LIKE is ICU's syntax, not PostgreSQL's. 0A000 regexp_like has no form on Db2 that gives PostgreSQL's answer
a type with no exact form
A value of a type the engine holds no PostgreSQL value of.
  • Db2 holds boolean, smallint, integer, bigint, real, double precision, numeric with a precision, varchar, char, text, date and timestamp with PostgreSQL's values. Its time has no fractional seconds; it has no timestamptz, bytea, uuid, JSON or arrays. 0A000 the type {type} has no form on Db2 that gives PostgreSQL's answer
numeric without a precision
CAST(a AS numeric).
  • Db2's default DECIMAL is DECIMAL(5,0), and its largest precision 31. 0A000 numeric without a precision of at most {max} has no form on Db2 that gives PostgreSQL's answer
a string type longer than the engine's longest
CAST(a AS varchar(n)) past the engine's longest.
  • Db2's longest VARCHAR is 8168 characters. 0A000 {kind} longer than {max} has no form on Db2 that gives PostgreSQL's answer
try_cast on an exact engine
TRY_CAST(a AS t).
  • A conversion that fails gives NULL there; PostgreSQL has none. 0A000 try_cast has no form on Db2 that gives PostgreSQL's answer
an integer cast of a fraction
CAST(a AS integer) of a value not known to be integral.
  • It truncates a fraction (CAST(2.5 AS INTEGER) is 2); PostgreSQL rounds (3). A value known to be integral (a literal, a count, integer arithmetic, and an integer column where the compiler supplies the column types) is cast as written (provisa/core/sql_integral.py). 0A000 a cast to an integer type of a value that may have a fraction has no form on Db2 that gives PostgreSQL's answer
octet_length on an exact engine
octet_length(a).
  • Its byte length of a string is of its own encoding, not PostgreSQL's UTF-8. 0A000 octet_length has no form on Db2 that gives PostgreSQL's answer
substring from a computed start
substring(a FROM s) where s is not a literal of at least 1.
  • Its substring of a start below 1 is not PostgreSQL's. 0A000 substring with a start that is not a literal of at least 1 has no form on Db2 that gives PostgreSQL's answer
substring of a computed length
substring(a FROM 1 FOR n) where n is not a literal.
  • Its substring of a negative length is not PostgreSQL's error. 0A000 substring with a length that is not a literal has no form on Db2 that gives PostgreSQL's answer
strpos from a position
A position search from a given position or occurrence.
  • PostgreSQL's strpos has no start or occurrence. 0A000 strpos from a position has no form on Db2 that gives PostgreSQL's answer
trim of other characters
trim(BOTH 'x' FROM a).
  • Its trim of a character set is not PostgreSQL's. 0A000 trim of characters other than spaces has no form on Db2 that gives PostgreSQL's answer
extract of another field
extract(f FROM d) of a field the engine numbers otherwise.
  • Db2 reads year, month, day, hour, minute and second with PostgreSQL's numbering; any other field is refused. 0A000 extract of {field} has no form on Db2 that gives PostgreSQL's answer
ceil to decimals
ceil(a, n).
  • PostgreSQL's ceil takes no decimals. 0A000 ceil to decimals has no form on Db2 that gives PostgreSQL's answer
floor to decimals
floor(a, n).
  • PostgreSQL's floor takes no decimals. 0A000 floor to decimals has no form on Db2 that gives PostgreSQL's answer
distinct on
SELECT DISTINCT ON (a) ...
  • It has no DISTINCT ON. 0A000 distinct on has no form on Db2 that gives PostgreSQL's answer
with recursive
WITH RECURSIVE ...
  • Its recursive common table expressions are not written as PostgreSQL's. 0A000 with recursive has no form on Db2 that gives PostgreSQL's answer
an escape of more than one character
a LIKE b ESCAPE e where e is not one character.
  • Its ESCAPE takes one character. 0A000 an escape that is not one character has no form on Db2 that gives PostgreSQL's answer
a named parameter
A parameter by name.
  • Its driver's parameters are positional markers (?) only. 0A000 a named parameter has no form on Db2 that gives PostgreSQL's answer
a parameter in LIMIT or OFFSET
LIMIT $1, OFFSET $1.
  • Its paging clause is written in another order than PostgreSQL's, so a positional marker there binds another parameter. 0A000 a parameter in LIMIT or OFFSET has no form on Db2 that gives PostgreSQL's answer
parameters out of order
$2 before $1, or a parameter used twice.
  • Each $n is written as a positional marker (?), so parameters must appear once each, in order. 0A000 parameters not each used once in order has no form on Db2 that gives PostgreSQL's answer
text's bound
text and an unbounded varchar.
  • A cast to text, and an unbounded varchar, is VARCHAR(8168 CODEUNITS32), Db2's longest: a longer value raises.
string comparison
a = b, a < b of strings.
  • String equality ignores trailing blanks: 'a' = 'a ' is true.