Re: BUG #15940: json_populate_recordset fails with ERROR: record type has not been registered
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Dmitry Dolgov <9erthalion6@gmail.com>, yarexeray@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2019-08-09T02:35:05Z
Lists: pgsql-bugs
On Tue, Aug 06, 2019 at 02:53:45PM -0500, Merlin Moncure wrote: > For posterity I agree that OP was essentially exploiting undefined, or > at least poorly defined, behavior. For my money, I'd advise using > this function for cases where you don't want to use an in place type, > just a column list: If I were to change something here, that would be this error string exposed to the user. With the current error, there is no real way that the user knows what is wrong and why he/she should not do that. Could it be possible to add some recommendation for example on top of an error "cannot do that because blah"? -- Michael
Commits
-
Restore json{b}_populate_record{set}'s ability to take type info from AS.
- e136a0d8ca31 13.0 landed
- cdc8d371e27d 12.0 landed
- 2b24cf91a8e2 11.6 landed
-
Support domains over composite types.
- 37a795a60b4f 11.0 cited