On 10/11/13 02:38, Alban Hertroys
wrote:
The second methods have different characteristics... -- test.sql CREATE TABLE t1 ( id SERIAL PRIMARY KEY, payload text ); -- method 1 INSERT INTO t1 (payload) VALUES (E'This is the first part \\n And this is the second'); -- method 2 INSERT INTO t1 (payload) VALUES ('This is line 1. This is line 2.'); TABLE t1; ######## results: gavin=> \i test.sql DROP TABLE psql:SQL.sql:8: NOTICE: CREATE TABLE will create implicit sequence "t1_id_seq" for serial column "t1.id" psql:SQL.sql:8: NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "t1_pkey" for table "t1" CREATE TABLE INSERT 0 1 INSERT 0 1 id | payload ----+-------------------------------------------------- 1 | This is the first part \n And this is the second 2 | This is line 1. + | This is line 2. (2 rows) Cheers, Gavin |