Re: proposal: psql \setfileref

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gilles Darold <gilles(dot)darold(at)dalibo(dot)com>, Daniel Verite <daniel(at)manitou-mail(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal: psql \setfileref
Date: 2016-11-15 15:44:05
Message-ID: CAFj8pRDFyhx+HuecaBqnBsW9iZGyDodxUVw1A4RG0BdX79gRvg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2016-11-15 16:41 GMT+01:00 Corey Huinker <corey(dot)huinker(at)gmail(dot)com>:

>
> On Sun, Nov 13, 2016 at 1:46 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
>
>> r - read file without any modification
>> rq - read file, escape as literal and use outer quotes
>> rb - read binary file - transform to hex code string
>> rbq - read binary file, transform to hex code string and use outer quotes
>>
>> Usage:
>
>
> I am not asking for this feature now, but do you see any barriers to later
> adding x/xq/xb/xbq equivalents for executing a shell command?
>

any other new commands can be appended simply - this is really generic

Regards

Pavel

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-11-15 15:44:06 Re: Parallel tuplesort (for parallel B-Tree index creation)
Previous Message Corey Huinker 2016-11-15 15:41:20 Re: proposal: psql \setfileref