Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f02GjDL90407; Tue, 2 Jan 2001 11:45:13 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id f02Gij412705; Tue, 2 Jan 2001 11:44:45 -0500 (EST) To: "mdavis@sevainc.com" cc: "'pgsql-admin@postgresql.org'" , "'pgsql-general@postgresql.org'" Subject: Re: pg_dump/psql < db.out issue In-reply-to: <01C07466.38039920.mdavis@sevainc.com> References: <01C07466.38039920.mdavis@sevainc.com> Comments: In-reply-to Michael Davis message dated "Tue, 02 Jan 2001 02:46:27 -0700" Date: Tue, 02 Jan 2001 11:44:45 -0500 Message-ID: <12702.978453885@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200101/7 X-Sequence-Number: 377 Michael Davis writes: > I have several tables with text fields that contain single quotes ('). > Pg_dump exports these tables and the single quotes (') okay. Psql, > however, will not import the data into the tables because of the single > quote (') in one of the columns in one of the records. Huh? That's worked just fine for a long time. What version are you running? play=> select * from foo; f1 ---------- I'm here (1 row) play=> \q $ pg_dump -t foo play >quote.sql $ cat quote.sql \connect - tgl CREATE TABLE "foo" ( "f1" text ); COPY "foo" FROM stdin; I'm here \. $ psql play Welcome ... play=> drop table foo; DROP play=> \i quote.sql You are now connected as new user tgl. CREATE play=> select * from foo; f1 ---------- I'm here (1 row) play=> regards, tom lane