Re: postgres_fdw - should we tighten up batch_size, fetch_size options against non-numeric values?
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-05-19T05:34:31Z
Lists: pgsql-hackers
Attachments
- v2-0001-Tighten-up-batch_size-fetch_size-options-against-.patch (application/octet-stream) patch v2-0001
On Wed, May 19, 2021 at 8:28 AM Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > >>> I agree with throwing an error for non-numeric junk though. > >>> Allowing that on the grounds of backwards compatibility > >>> seems like too much of a stretch. > >> > >> +1. > > > > +1. > > +1 Thanks all for your inputs. PSA which uses parse_int for batch_size/fech_size and parse_real for fdw_startup_cost and fdw_tuple_cost. With Regards, Bharath Rupireddy. EnterpriseDB: http://www.enterprisedb.com
Commits
-
postgres_fdw: Tighten up allowed values for batch_size, fetch_size options.
- 4173477b3841 14.0 landed
- d854720df6df 15.0 landed
-
doc: Add type information for postgres_fdw parameters.
- 61d599ede742 15.0 cited