title: Adding Foreign key constraint without checking existing data in Postgres
body: <pre><code>ALTER TABLE &lt;table name&gt; WITH NOCHECK
      ADD CONSTRAINT attachments_user_id_fkey FOREIGN KEY (user_id)
      REFERENCES public.users (id) MATCH SIMPLE
      ON UPDATE NO ACTION
      ON DELETE NO ACTION;
  </code></pre>
  
  <p>The above query is throwing the following error
  ERROR:  syntax error at or near "WITH NOCHECK"</p>