Re: Using JSONB with nested key-value structures, and skipping/wildcarding the key

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Using JSONB with nested key-value structures, and skipping/wildcarding the key
Date: 2020-06-02 07:37:19
Message-ID: 0d9a4455-3146-7aee-f4ee-732927f55a47@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> One question: as a novice here, I think I understand the right hand
> side of your JOIN "... k(value)" is shorthand for:
>
> ... AS table_name(column_name)
>
> except that I don't see any clues in the docs that
> jsonb_object_keys() is a "table function".> Can you kindly clarify?

The clue is in the column "return type" which states: "setof text" for jsonb_object_keys()
A function returning "setof" is the same as a "table function"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2020-06-02 08:22:14 Re: Oracle vs. PostgreSQL - a comment
Previous Message Shaheed Haque 2020-06-02 07:30:36 Re: Using JSONB with nested key-value structures, and skipping/wildcarding the key