Re: [BUGS] Nasty tsvector can make dumps unrestorable - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [BUGS] Nasty tsvector can make dumps unrestorable
Date
Msg-id 200711100355.lAA3tF416292@momjian.us
Whole thread Raw
In response to Re: [BUGS] Nasty tsvector can make dumps unrestorable  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan wrote:
> > While the COPY will load into the table, this doesn't:
> >
> >     test=> INSERT INTO Foo(bar) VALUES (E'''''x');
> >     ERROR:  syntax error in tsvector: "''x"
> >
> > I am confused.
> >
> >   
> 
> 
> These two are not equivalent. What happens if you try this?
> 
>    INSERT INTO Foo(bar) VALUES (E'''''''x''');
test=>    INSERT INTO Foo(bar) VALUES (E'''''''x''');INSERT 0 1test=> select * from foo;  bar------- '''x'(1 row)

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://postgres.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [BUGS] Nasty tsvector can make dumps unrestorable
Next
From: "rcolmegna@tiscali.it"
Date:
Subject: data access automatic filter