Inserting file content into column

Поиск
Список
Период
Сортировка
От Moravec Jan
Тема Inserting file content into column
Дата
Msg-id D2BB392CF0C67542891FD639B93325761D1DED@pex2.corp
обсуждение исходный текст
Ответы Re: Inserting file content into column  (Noel Faux <noel.faux@med.monash.edu.au>)
Список pgsql-novice
Hello,
 
Is there a built-in function that reads the contents of a (textual) file which could then be inserted into a given
(varchar)column. What I am after is something like:
 
 
insert into cert ( cert_id,...., x509_data ) values ( nextval('seq_cert'), ...., load_file('./ca/mycert.pem') );
 
I need to do that from a DB init SQL script rather then from an application.
 
Thanks you,
Jan Moravec
 
 

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Display large object from database
Следующее
От: Noel Faux
Дата:
Сообщение: Re: Inserting file content into column