From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rob Sargent <robjsargent@gmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: \g filename
Date: Wed, 24 Jan 2018 12:38:52 -0800
Message-ID: <f7bccd47-cb1b-d3a7-a36f-5c22090e87bd@aklaver.com> (raw)
In-Reply-To: <B504C3FB-8BB5-42E7-9562-0916A9084E77@gmail.com>
References: <B504C3FB-8BB5-42E7-9562-0916A9084E77@gmail.com>
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
>
> ps sorry for the blank version of this same topic - or maybe zero content is rejected, hopefully.
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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: adrian.klaver@aklaver.com, robjsargent@gmail.com
Subject: Re: \g filename
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>
* 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