agora inbox for pgsql-bugs@postgresql.org
help / color / mirror / Atom feedFrom: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: yishundinesh@gmail.com
Subject: BUG #19643: Output of jsonb_populate_recordset not consistent with documentation description
Date: Fri, 28 Aug 2026 12:42:44 +0000
Message-ID: <19643-eadf5dc7e134dd3e@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 19643
Logged by: Balaji Venkatesan
Email address: yishundinesh@gmail.com
PostgreSQL version: 18.6
Operating system: Ubuntu
Description:
As per the documentation jsonb_populate_record "Expands the object in
from_json to a row whose columns match the record type defined by base".
The example given the documentation is working fine, but if I replace
null::myrow with Row(('a'::text,'b'::text), the output discards
from_json(second argument completely)
First argument's value is being used instead of using it as a key
Eg:
select * from
jsonb_populate_recordset(ROW('a'::text,'b'::text),'[{"a":"test","b":"55"}]')
as (a text, b text)
Output::
a,b
Expected output:
test,55
view thread (2+ messages) latest in thread
Message-ID: <19643-eadf5dc7e134dd3e@postgresql.org>
Permalink: ../19643-eadf5dc7e134dd3e@postgresql.org/
Also on: postgresql.org/message-id/19643-eadf5dc7e134dd3e@postgresql.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, yishundinesh@gmail.com
Subject: Re: BUG #19643: Output of jsonb_populate_recordset not consistent with documentation description
In-Reply-To: <19643-eadf5dc7e134dd3e@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox