CREATE TABLE test_numeric_mul_rscale
(
    var1ndigits integer,
    var2ndigits integer,
    var1dscale integer,
    var2dscale integer,
    rscale_adjustment integer,
    var1 numeric,
    var2 numeric,
    expected numeric
);

\copy test_numeric_mul_rscale from test_numeric_mul_rscale.dump;

SELECT
    *
FROM
    test_numeric_mul_rscale,
    numeric_mul_rscale(var1, var2, rscale_adjustment)
WHERE numeric_mul_rscale IS DISTINCT FROM expected;
