Proposal: functions get_text() or get_url()

From: Stefan Keller <sfkeller(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Proposal: functions get_text() or get_url()
Date: 2009-05-18 20:03:16
Message-ID: 25bc040b0905181303q48a9da0cwaa24e82559f8f19d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-05-18 20:50:07 Re: Proposal: functions get_text() or get_url()
Previous Message Merlin Moncure 2009-05-18 19:12:42 Re: INTERVAL data type and libpq - what format?