Re: Import SVG file

Поиск
Список
Период
Сортировка
От Miguel Angel Tribaldos Hervas
Тема Re: Import SVG file
Дата
Msg-id 1106907991.41fa13573ccbe@webmail.upv.es
обсуждение исходный текст
Ответ на Import SVG file  (Miguel Angel Tribaldos Hervas <mitriher@teleco.upv.es>)
Ответы Re: Import SVG file  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
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.
--
Miguel A. Tribaldos


>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 and
>then use psql -f ... you'll need to perform the usual escaping. If
>you're going via Perl's DBI or similar you can let it handle those
>details for you. Do you have a client system in mind?


В списке pgsql-general по дате отправления:

Предыдущее
От: Miguel Angel Tribaldos Hervas
Дата:
Сообщение: Re: Import SVG file
Следующее
От: sid tow
Дата:
Сообщение: How to get back the current count of a auto incrementing number.