Proposal: functions get_text() or get_url() - Mailing list pgsql-hackers

From Stefan Keller
Subject Proposal: functions get_text() or get_url()
Date
Msg-id 25bc040b0905181303q48a9da0cwaa24e82559f8f19d@mail.gmail.com
Whole thread Raw
Responses Re: Proposal: functions get_text() or get_url()  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
How to insert a text file into a field in PostgreSQL?
I'd like to insert a row with fields from a local or remote text file.
I'd expect functions like get_text() or get_url() in order to do the following:
INSERT INTO collection(id, path, content) VALUES(1, '/tmp/mytext, get_text('/tmp/mytext));
AFAIK there was a get_url in libcurl but I neither find it any more. But anyway: This should be part of the core... :->
-S.
 

pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: INTERVAL data type and libpq - what format?
Next
From: Robert Haas
Date:
Subject: Re: Proposal: functions get_text() or get_url()