SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET edb_redwood_date = off;
SET default_with_rowids = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
CREATE TABLE sales (
date character varying(10),
amount numeric
)
PARTITION BY RANGE(date)
(
PARTITION q1_2012 VALUES LESS THAN ('2012-04-01'),
PARTITION q2_2012 VALUES LESS THAN ('2012-06-01'),
PARTITION q3_2012 VALUES LESS THAN ('2012-08-01'),
PARTITION q4_2012 VALUES LESS THAN ('2013-12-01'),
PARTITION q4_2014 VALUES LESS THAN ('2015-01-01'),
PARTITION q1_2015 VALUES LESS THAN ('2015-01-04'),
PARTITION q2_2015 VALUES LESS THAN ('2015-12-30')
);
ALTER TABLE sales OWNER TO mig;
--
-- Data for Name: sales; Type: TABLE DATA; Schema: mig; Owner: mig
--