I am new to postgres. I am trying to make the following query dynamic for different tables.
SELECT DISTINCT jsonb_object_keys(elements -> \'elements\') AS