postgresql/contrib/postgres_fdw
Fujii Masao de87c481f6 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
2021-07-28 01:24:24 +09:00
..
expected Avoid doing catalog lookups in postgres_fdw's conversion_error_callback. 2021-07-06 12:36:13 -04:00
sql Avoid doing catalog lookups in postgres_fdw's conversion_error_callback. 2021-07-06 12:36:13 -04:00
.gitignore Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
connection.c postgres_fdw: Fix connection leak. 2020-12-28 19:59:00 +09:00
deparse.c In postgres_fdw, don't try to ship MULTIEXPR updates to remote server. 2020-01-26 14:31:08 -05:00
Makefile Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
option.c Avoid using ambiguous word "non-negative" in error messages. 2021-07-28 01:24:24 +09:00
postgres_fdw--1.0.sql Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.c Avoid doing catalog lookups in postgres_fdw's conversion_error_callback. 2021-07-06 12:36:13 -04:00
postgres_fdw.control Add postgres_fdw contrib module. 2013-02-21 05:27:16 -05:00
postgres_fdw.h pgindent run prior to branching v12. 2019-07-01 12:37:52 -04:00
shippable.c Update copyright for 2019 2019-01-02 12:44:25 -05:00