Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emhkM-0002lP-Dc for pgsql-interfaces@arkaria.postgresql.org; Fri, 16 Feb 2018 15:16:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emhkL-0001Zz-3Q for pgsql-interfaces@arkaria.postgresql.org; Fri, 16 Feb 2018 15:16:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1emhkK-0001Zq-UR for pgsql-interfaces@lists.postgresql.org; Fri, 16 Feb 2018 15:16:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emhkI-0003fp-0i for pgsql-interfaces@lists.postgresql.org; Fri, 16 Feb 2018 15:16:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w1GFFqQI013940; Fri, 16 Feb 2018 10:15:52 -0500 From: Tom Lane To: Sebastien FLAESCH cc: pgsql-interfaces@lists.postgresql.org Subject: Re: Type scale returned by PQfmod() 65531 for time/timestamp output parameter? In-reply-to: References: <093e1214-7057-f80c-5c3c-74076b7bb555@4js.com> <7537.1518711940@sss.pgh.pa.us> Comments: In-reply-to Sebastien FLAESCH message dated "Fri, 16 Feb 2018 09:56:05 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13938.1518794152.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 16 Feb 2018 10:15:52 -0500 Message-ID: <13939.1518794152@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sebastien FLAESCH writes: > Would be nice however to have some clear documentation about PQfmod() in= terpretation... > What means exactly 65531/0xFFFB? You could try running it through the typmodout function for the column's datatype. I don't offhand know of any built-in types for which that would be a really plausible typmod, though. Are you sure your client code isn't mistakenly narrowing it to int16 somewhere? regards, tom lane