Re: printing oid with %d

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers@postgresql.org, Andrew Dunstan <andrew@dunslane.net>
Date: 2020-07-28T14:35:54Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> Good catch.  Yep, Oids are unsigned.  We don't backpatch such things
> usually, do we?  Particularly, this one should not be triggerable
> normally because no code paths should call JsonEncodeDateTime() with
> an unsupported type Oid.

Yeah, given that it should be an unreachable case, there's likely
no need to back-patch.

			regards, tom lane



Commits

  1. Fix incorrect print format in json.c

  2. Centralize json and jsonb handling of datetime types