Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks a lot! How can I make the query independent from a specific domain? Is there something like t.json->[0] possible? I mean to query the first array entry without specifying domain name like example.tld. Commented Aug 14, 2020 at 11:57
  • @a_horse_with_no_name i get "ERROR: cannot call jsonb_to_recordset on a non-array" Commented Aug 14, 2020 at 12:08
  • @nullpointr . . . (1) I would suggest that you ask a new question. (2) The simplest method is to include the domain in the array, rather than having it be a key. Commented Aug 14, 2020 at 12:44