composite
A composite type bundles several fields. A column can use it, and (col).field reads one field.
task
Create a type money_amt(cents int, cur text), a table prices(id, p money_amt) and insert (1, 500 EUR).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A composite type bundles several fields. A column can use it, and (col).field reads one field.
Create a type money_amt(cents int, cur text), a table prices(id, p money_amt) and insert (1, 500 EUR).