Re: [GENERAL] Import SVG file

2005-02-01 Thread Alvaro Herrera
On Tue, Feb 01, 2005 at 04:48:10PM +, Phil Endecott wrote: Hi, > > Have I to do some byte-stuffing before the import? > > Yes, you will have to do the necessary escaping. I think that the > postgres C library has code to do this, and others have mentioned the > possibilities with other la

Re: [GENERAL] Import SVG file

2005-02-01 Thread Phil Endecott
Hi Miguel, > how can I import a SVG file to a row?? The main problem is > that it has many postgres scape symbols. Can I use the > 'text' type for that? I would probably choose to use 'bytea' rather than 'text' because of the character set issues. The SVG, being XML, describes its own character

Re: [GENERAL] Import SVG file

2005-01-28 Thread Richard Huxton
Miguel Angel Tribaldos Hervas wrote: I want to do the import from the psql client. I try to find something like that: INSERT INTO "controller" (notes, enabled, diagram, ...) VALUES ('Example controller', TRUE, load_svg('controller.svg'), ...) with diagram of type TEXT, and diagram field correc

Re: [GENERAL] Import SVG file

2005-01-28 Thread Miguel Angel Tribaldos Hervas
I want to do the import from the psql client. I try to find something like that: INSERT INTO "controller" (notes, enabled, diagram, ...) VALUES ('Example controller', TRUE, load_svg('controller.svg'), ...) with diagram of type TEXT, and diagram field correctly escaped. Best regards. --

Re: [GENERAL] Import SVG file

2005-01-28 Thread Miguel Angel Tribaldos Hervas
I want to do the import from the psql client. ... Something like that: -- ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

Re: [GENERAL] Import SVG file

2005-01-28 Thread Richard Huxton
Miguel Angel Tribaldos Hervas wrote: Hi, how can I import a SVG file to a row?? The main problem is that it has many postgres scape symbols. Can I utilize the 'text' type for that? Have I to do some byte-stuffing before the import? If you want to create a text-file with a COPY or INSERT statement a