Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwsWo-000400-DR for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Sep 2018 17:20:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwsWk-0003il-Te for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Sep 2018 17:20:38 +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.89) (envelope-from ) id 1fwsWk-0003ie-NT for pgsql-bugs@lists.postgresql.org; Mon, 03 Sep 2018 17:20:38 +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 1fwsWg-0002u7-F0 for pgsql-bugs@postgresql.org; Mon, 03 Sep 2018 17:20:37 +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 w83HKTwF026091; Mon, 3 Sep 2018 13:20:29 -0400 From: Tom Lane To: =?iso-8859-1?Q?S=E9bastien_DELOBEL?= cc: "pgsql-bugs@postgresql.org" Subject: Re: example of json_to_record(json) not working In-reply-to: References: Comments: In-reply-to =?iso-8859-1?Q?S=E9bastien_DELOBEL?= message dated "Mon, 03 Sep 2018 14:34:51 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26089.1535995229.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 03 Sep 2018 13:20:29 -0400 Message-ID: <26090.1535995229@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =3D?iso-8859-1?Q?S=3DE9bastien_DELOBEL?=3D writes: > When you execute the example of the function "json_to_record(json)" in t= he documentation https://www.postgresql.org/docs/10/static/functions-json.= html > ... > I have this result : > ERROR: type "myrowtype" does not exist That example, and several others on the same page, assume that you've created a suitable user-defined composite type "myrowtype". I don't think removing that aspect of the example would be an improvement. regards, tom lane