Re: example of json_to_record(json) not working

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sébastien DELOBEL <sdelobel(at)hotmail(dot)com>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: example of json_to_record(json) not working
Date: 2018-09-03 17:20:29
Message-ID: 26090.1535995229@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?iso-8859-1?Q?S=E9bastien_DELOBEL?= <sdelobel(at)hotmail(dot)com> writes:
> When you execute the example of the function "json_to_record(json)" in the 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2018-09-03 17:34:59 Re: example of json_to_record(json) not working
Previous Message Alvaro Herrera 2018-09-03 16:13:17 Re: BUG #15362: llbeta3: ./configure; in x86_64-w64-mingw32-gcc 8.2.0 wrong options "-V" and "-qversion"