By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
array_as_text1 | array_as_text2 |
---|---|
{orderid,product,address} | {orderid,product,address} |
SELECT 1
unnest |
---|
orderid |
product |
address |
SELECT 3
ERROR: function unnest(unknown) is not unique LINE 2: select unnest('{"orderid","product","address"}'); ^ HINT: Could not choose a best candidate function. You might need to add explicit type casts.
ERROR: syntax error at or near "[" LINE 2: select unnest(['orderid', 'product', 'address']::VARCHAR(100... ^
ERROR: syntax error at or near "[" LINE 2: select unnest(['orderid', 'product', 'address']); ^