$$ LANGUAGE SQL;
With these functions, we can generate ptoassigneend_us_extract, which is the final output of all the extraction stepsin Section 2.2.1, with the following code:
CREATE TABLE ptoassigneend_us_ AS
SELECT *, ExtractPostcode(city) postcode_city,