public inbox for [email protected]help / color / mirror / Atom feed
[PATCH 6/6] 0003 review 23+ messages / 2 participants [nested] [flat]
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* [PATCH 6/6] 0003 review @ 2021-02-15 15:36 Tomas Vondra <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Tomas Vondra @ 2021-02-15 15:36 UTC (permalink / raw) --- src/test/regress/input/copy.source | 4 ++-- src/test/regress/output/copy.source | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index ddde33e7cc..4ee1b26326 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -204,7 +204,7 @@ drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set @@ -221,7 +221,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index 60f4206aa1..8ebfb7ae81 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -167,7 +167,7 @@ select * from parted_copytest where b = 2; drop table parted_copytest; -- -- progress reporting --- +-- -- setup -- reuse employer datatype, that has a small sized data set create table progress_reporting ( @@ -181,7 +181,7 @@ create function notice_after_progress_reporting() returns trigger AS $$ declare report record; begin - -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to + -- We cannot expect 'pid' nor 'relid' to be consistent over runs due to -- variance in system process ids, and concurrency in runs of tests. -- Additionally, due to the usage of this test in pg_regress, the 'datid' -- also is not consistent between runs. -- 2.26.2 --------------DA8D60BF026F7ACE69A9AEE5-- ^ permalink raw reply [nested|flat] 23+ messages in thread
* numeric.c: Should MUL_GUARD_DIGITS be increased from 2 to 3? @ 2024-07-03 07:35 Joel Jacobson <[email protected]> 0 siblings, 0 replies; 23+ messages in thread From: Joel Jacobson @ 2024-07-03 07:35 UTC (permalink / raw) To: pgsql-hackers Hello hackers, I have discovered a peculiar behavior in mul_var() when it is called with rscale=0, but the input variables have many decimal digits, resulting in a product with a .5 decimal part. Given that no decimals are requested by the caller, I would expect the result to be rounded up. However, it is instead truncated or rounded down. To investigate this further, I added an SQL-callable function, numeric_mul_patched(), which takes rscale_adjustment as a third input parameter. This allows calling mul_var() with varying rscale values. Here is an example demonstrating the issue: SELECT 5.51574061794 * 0.99715659165; 5.5000571150105152442010 -- exact result SELECT numeric_mul_patched(5.51574061794,0.99715659165,-22); The output debug information before and after modifying MUL_GUARD_DIGITS from 2 to 3 is as follows: -#define MUL_GUARD_DIGITS 2 +#define MUL_GUARD_DIGITS 3 -make_result(): NUMERIC w=0 d=11 POS 0005 5157 4061 7940 +make_result(): NUMERIC w=0 d=11 POS 0005 5157 4061 7940 -make_result(): NUMERIC w=-1 d=11 POS 9971 5659 1650 +make_result(): NUMERIC w=-1 d=11 POS 9971 5659 1650 -before round_var: VAR w=1 d=0 POS 0000 0005 4999 8742 +before round_var: VAR w=1 d=0 POS 0000 0005 5000 5710 3944 -after round_var: VAR w=1 d=0 POS 0000 0005 +after round_var: VAR w=1 d=0 POS 0000 0006 -make_result(): NUMERIC w=0 d=0 POS 0005 +make_result(): NUMERIC w=0 d=0 POS 0006 numeric_mul_patched --------------------- - 5 + 6 (1 row) As shown above, changing MUL_GUARD_DIGITS from 2 to 3 corrects the rounding error, ensuring the correct result of 6 instead of 5. Although this is likely only a potential issue as current callers of mul_var() don't use it in this specific way, it would be beneficial to fix it for correctness and ensure mul_var() adheres to its contract. I encountered this issue while working on an optimization of mul_var() in a different thread. Initially, I thought there was an error in my code due to the different result, but I later realized it was a rounding error in the original code. Not submitting a patch yet, since I might have misunderstood something here. Maybe this is all fine after all. Guidance appreciated. Regards, Joel ^ permalink raw reply [nested|flat] 23+ messages in thread
end of thread, other threads:[~2024-07-03 07:35 UTC | newest] Thread overview: 23+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2021-02-15 15:36 [PATCH 6/6] 0003 review Tomas Vondra <[email protected]> 2024-07-03 07:35 numeric.c: Should MUL_GUARD_DIGITS be increased from 2 to 3? Joel Jacobson <[email protected]>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox