From: Rob Sargent <robjsargent@gmail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: \g filename
Date: Wed, 24 Jan 2018 13:42:11 -0700
Message-ID: <748c4316-b336-dac0-d18a-7274c613de6f@gmail.com> (raw)
In-Reply-To: <f7bccd47-cb1b-d3a7-a36f-5c22090e87bd@aklaver.com>
References: <B504C3FB-8BB5-42E7-9562-0916A9084E77@gmail.com>
<f7bccd47-cb1b-d3a7-a36f-5c22090e87bd@aklaver.com>
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 :)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: robjsargent@gmail.com, adrian.klaver@aklaver.com
Subject: Re: \g filename
In-Reply-To: <748c4316-b336-dac0-d18a-7274c613de6f@gmail.com>
References: <B504C3FB-8BB5-42E7-9562-0916A9084E77@gmail.com> <f7bccd47-cb1b-d3a7-a36f-5c22090e87bd@aklaver.com> <748c4316-b336-dac0-d18a-7274c613de6f@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox