Re: \g filename - Mailing list pgsql-general

From Rob Sargent
Subject Re: \g filename
Date
Msg-id 748c4316-b336-dac0-d18a-7274c613de6f@gmail.com
Whole thread Raw
In response to Re: \g filename  (Adrian Klaver <adrian.klaver@aklaver.com>)
List pgsql-general
On 01/24/2018 01:38 PM, Adrian Klaver wrote:
> On 01/24/2018 12:30 PM, Rob Sargent wrote:
>> I just ran a query (select myfunction() \g bad/filename) which took 
>> almost an hour and a half then told me “no such file or directory” 
>> since I had scrogged the path. Could this path not be checked prior 
>> to actual execution of the query?
>
> Maybe?:
>
>
> test_(aklaver)> \o pg_test/some_file.txt
> pg_test/some_file.txt: No such file or directory

Ah yes, place the onus squarely on the user :)



pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: \g filename
Next
From: Julio Cesar Tenganan Daza
Date:
Subject: Using Token (JWT) authentication mechanism in Postgres