pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Deduplicate "invalid input syntax" messages for various types.
4+ messages / 2 participants
[nested] [flat]

* pgsql: Deduplicate "invalid input syntax" messages for various types.
@ 2018-07-22 22:30 Andres Freund <andres@anarazel.de>
  2018-07-23 00:49 ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 4+ messages in thread

From: Andres Freund @ 2018-07-22 22:30 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Deduplicate "invalid input syntax" messages for various types.

Previously a lot of the error messages referenced the type in the
error message itself. That requires that the message is translated
separately for each type.

Note that currently a few smallint cases continue to reference the
integer, rather than smallint, type. A later patch will create a
separate routine for 16bit input.

Author: Andres Freund
Discussion: https://postgr.es/m/20180707200158.wpqkd7rjr4jxq5g7@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3522d0eaba5a976f09a48810dd25dff6ab3565df

Modified Files
--------------
contrib/dblink/expected/dblink.out                   |  2 +-
contrib/postgres_fdw/expected/postgres_fdw.out       |  8 ++++----
doc/src/sgml/xtypes.sgml                             |  4 ++--
src/backend/utils/adt/int8.c                         |  4 ++--
src/backend/utils/adt/numutils.c                     | 12 ++++++------
src/backend/utils/adt/timestamp.c                    |  4 ++--
src/pl/plpython/expected/plpython_subtransaction.out |  4 ++--
src/pl/plpython/expected/plpython_types.out          |  2 +-
src/pl/tcl/expected/pltcl_subxact.out                |  6 +++---
src/test/regress/expected/aggregates.out             |  2 +-
src/test/regress/expected/alter_table.out            |  2 +-
src/test/regress/expected/copy2.out                  |  2 +-
src/test/regress/expected/int2.out                   | 14 +++++++-------
src/test/regress/expected/int4.out                   | 14 +++++++-------
src/test/regress/expected/int8.out                   | 10 +++++-----
src/test/regress/expected/plpgsql.out                |  4 ++--
src/test/regress/expected/select_parallel.out        |  2 +-
src/test/regress/expected/timestamptz.out            |  2 +-
src/test/regress/regress.c                           |  4 ++--
src/tutorial/complex.c                               |  4 ++--
20 files changed, 53 insertions(+), 53 deletions(-)



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

* Re: pgsql: Deduplicate "invalid input syntax" messages for various types.
  2018-07-22 22:30 pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
@ 2018-07-23 00:49 ` Michael Paquier <michael@paquier.xyz>
  2018-07-23 00:53   ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Paquier @ 2018-07-23 00:49 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers@lists.postgresql.org

On Sun, Jul 22, 2018 at 10:30:20PM +0000, Andres Freund wrote:
> Deduplicate "invalid input syntax" messages for various types.
> 
> Previously a lot of the error messages referenced the type in the
> error message itself. That requires that the message is translated
> separately for each type.
> 
> Note that currently a few smallint cases continue to reference the
> integer, rather than smallint, type. A later patch will create a
> separate routine for 16bit input.

A couple of alternate outputs have been forgotten here (int8 has some
extra ones), causing make check to turn red on Windows, and plcheck to
turn red on macos.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

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

* Re: pgsql: Deduplicate "invalid input syntax" messages for various types.
  2018-07-22 22:30 pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
  2018-07-23 00:49 ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Michael Paquier <michael@paquier.xyz>
@ 2018-07-23 00:53   ` Andres Freund <andres@anarazel.de>
  2018-07-23 01:02     ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 4+ messages in thread

From: Andres Freund @ 2018-07-23 00:53 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org

On 2018-07-23 09:49:58 +0900, Michael Paquier wrote:
> On Sun, Jul 22, 2018 at 10:30:20PM +0000, Andres Freund wrote:
> > Deduplicate "invalid input syntax" messages for various types.
> > 
> > Previously a lot of the error messages referenced the type in the
> > error message itself. That requires that the message is translated
> > separately for each type.
> > 
> > Note that currently a few smallint cases continue to reference the
> > integer, rather than smallint, type. A later patch will create a
> > separate routine for 16bit input.
> 
> A couple of alternate outputs have been forgotten here (int8 has some
> extra ones), causing make check to turn red on Windows, and plcheck to
> turn red on macos.

Yea, I noticed. I pushed a blind fix. Hope that fixes it, but I'll
re-check. Took me a while because I had to re-run check-world a couple
times because you continued to push things ;)

Greetings,

Andres Freund




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

* Re: pgsql: Deduplicate "invalid input syntax" messages for various types.
  2018-07-22 22:30 pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
  2018-07-23 00:49 ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Michael Paquier <michael@paquier.xyz>
  2018-07-23 00:53   ` Re: pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
@ 2018-07-23 01:02     ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2018-07-23 01:02 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: pgsql-committers@lists.postgresql.org

On Sun, Jul 22, 2018 at 05:53:36PM -0700, Andres Freund wrote:
> Yea, I noticed. I pushed a blind fix. Hope that fixes it, but I'll
> re-check. Took me a while because I had to re-run check-world a couple
> times because you continued to push things ;)

I had exactly the same flow pattern ;p
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

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


end of thread, other threads:[~2018-07-23 01:02 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-22 22:30 pgsql: Deduplicate "invalid input syntax" messages for various types. Andres Freund <andres@anarazel.de>
2018-07-23 00:49 ` Michael Paquier <michael@paquier.xyz>
2018-07-23 00:53   ` Andres Freund <andres@anarazel.de>
2018-07-23 01:02     ` Michael Paquier <michael@paquier.xyz>

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