title: Why cannot create partitioning table
body: <p>I'm trying to create simple table with partitions.</p>
  
  <p>this is my command:</p>
  
  <pre><code>CREATE TABLE measurement (
      city_id         int not null,
      logdate         date not null,
      peaktemp        int,
      unitsales       int
  ) PARTITION BY RANGE (logdate);
  </code></pre>
  
  <p>this is the error I got:</p>
  
  <blockquote>
    <p>SQL Error [42601]: ERROR: syntax error at or near "PARTITION"</p>
  </blockquote>
  
  <p>Unable to understand with is the problem..</p>
  
  <p>I am using PostgreSQL 9.6.3</p>