pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Avoid using ambiguous word "non-negative" in error messages.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:28 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:28 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0e1275fb073cbbff2185f4067d67785e56941e50

Modified Files
--------------
contrib/postgres_fdw/option.c           |  9 ++++++---
doc/src/sgml/sources.sgml               | 10 ++++++++++
src/backend/partitioning/partbounds.c   |  4 ++--
src/backend/utils/adt/tsquery_op.c      |  2 +-
src/test/modules/test_shm_mq/test.c     | 10 +++++-----
src/test/regress/expected/hash_part.out |  4 ++--
6 files changed, 26 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:29 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/fd90f6ba7a75f51d14dac27219bb3755b893e251

Modified Files
--------------
contrib/postgres_fdw/option.c           |  9 ++++++---
doc/src/sgml/sources.sgml               | 10 ++++++++++
src/backend/partitioning/partbounds.c   |  4 ++--
src/backend/utils/adt/tsquery_op.c      |  2 +-
src/test/modules/test_shm_mq/test.c     | 10 +++++-----
src/test/regress/expected/hash_part.out |  4 ++--
6 files changed, 26 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:29 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/92913fc290f3adb3fe937485474a11ac6708e4b0

Modified Files
--------------
contrib/postgres_fdw/option.c           | 13 ++++++++-----
doc/src/sgml/sources.sgml               | 10 ++++++++++
src/backend/partitioning/partbounds.c   |  4 ++--
src/backend/utils/adt/tsquery_op.c      |  2 +-
src/test/modules/test_shm_mq/test.c     | 10 +++++-----
src/test/regress/expected/hash_part.out |  4 ++--
6 files changed, 28 insertions(+), 15 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:29 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/de87c481f635953e84e7d3b404e15700301bcdac

Modified Files
--------------
contrib/postgres_fdw/option.c           | 13 ++++++++-----
doc/src/sgml/sources.sgml               | 10 ++++++++++
src/backend/partitioning/partbounds.c   |  4 ++--
src/backend/utils/adt/tsquery_op.c      |  2 +-
src/test/modules/test_shm_mq/test.c     | 10 +++++-----
src/test/regress/expected/hash_part.out |  4 ++--
6 files changed, 28 insertions(+), 15 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:30 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/42e6b5ccb777a8d18ecc26140d4044af5bccc9b3

Modified Files
--------------
contrib/postgres_fdw/option.c           | 13 ++++++++-----
doc/src/sgml/sources.sgml               | 10 ++++++++++
src/backend/partitioning/partbounds.c   |  4 ++--
src/backend/utils/adt/tsquery_op.c      |  2 +-
src/test/modules/test_shm_mq/test.c     | 10 +++++-----
src/test/regress/expected/hash_part.out |  4 ++--
6 files changed, 28 insertions(+), 15 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:30 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a84f95ffddbf9bfcf20f7e3b463e10ba1ec0b9f5

Modified Files
--------------
contrib/postgres_fdw/option.c       | 13 ++++++++-----
doc/src/sgml/sources.sgml           | 10 ++++++++++
src/backend/utils/adt/tsquery_op.c  |  2 +-
src/test/modules/test_shm_mq/test.c | 10 +++++-----
4 files changed, 24 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Avoid using ambiguous word "non-negative" in error messages.
@ 2021-07-27 16:30 Fujii Masao <fujii@postgresql.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Fujii Masao @ 2021-07-27 16:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid using ambiguous word "non-negative" in error messages.

The error messages using the word "non-negative" are confusing
because it's ambiguous about whether it accepts zero or not.
This commit improves those error messages by replacing it with
less ambiguous word like "greater than zero" or
"greater than or equal to zero".

Also this commit added the note about the word "non-negative" to
the error message style guide, to help writing the new error messages.

When postgres_fdw option fetch_size was set to zero, previously
the error message "fetch_size requires a non-negative integer value"
was reported. This error message was outright buggy. Therefore
back-patch to all supported versions where such buggy error message
could be thrown.

Reported-by: Hou Zhijie
Author: Bharath Rupireddy
Reviewed-by: Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/OS0PR01MB5716415335A06B489F1B3A8194569@OS0PR01MB5716.jpnprd01.prod.outlook.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/78c21d79d72aa38cfe4a16b232aaf9d723b20378

Modified Files
--------------
contrib/postgres_fdw/option.c       | 13 ++++++++-----
doc/src/sgml/sources.sgml           | 10 ++++++++++
src/backend/utils/adt/tsquery_op.c  |  2 +-
src/test/modules/test_shm_mq/test.c | 10 +++++-----
4 files changed, 24 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-07-27 16:30 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 16:28 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:29 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:29 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:29 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:30 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:30 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>
2021-07-27 16:30 pgsql: Avoid using ambiguous word "non-negative" in error messages. Fujii Masao <fujii@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox