diff --git a/pipes-postgresql-simple.cabal b/pipes-postgresql-simple.cabal
--- a/pipes-postgresql-simple.cabal
+++ b/pipes-postgresql-simple.cabal
@@ -1,5 +1,5 @@
 name: pipes-postgresql-simple
-version: 0.1.2.0
+version: 0.1.3.0
 synopsis: Convert various postgresql-simple calls to work with pipes
 description: This library provides a few Producers and Consumers that allow
   @postgresql-simple@ calls to be made within the @pipes@ framework. Currently,
diff --git a/src/Pipes/PostgreSQL/Simple.hs b/src/Pipes/PostgreSQL/Simple.hs
--- a/src/Pipes/PostgreSQL/Simple.hs
+++ b/src/Pipes/PostgreSQL/Simple.hs
@@ -91,7 +91,7 @@
 toTable c fmt tblName p0 = do
     liftIO $ Pg.copy_ c $ fromString $ concat
         [ "COPY " , tblName
-        , " FROM STDIN WITH (FORMAT " , show fmt, "\")"
+        , " FROM STDIN WITH (FORMAT " , show fmt, ")"
         ]
     let go p = do
             x <- Pipes.next p `onException`
