Re: please inform data_directory

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Peter Krauss <ppkrauss(at)gmail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: please inform data_directory
Date: 2018-10-11 19:51:27
Message-ID: CAKFQuwYOW2fnocoK2=zwbB=Y=zJU0inkhA9tMsfJ4XXsDNTdHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Thu, Oct 11, 2018 at 12:43 PM Peter Krauss <ppkrauss(at)gmail(dot)com> wrote:

>
> The page https://www.postgresql.org/docs/10/static/functions-admin.html
> need this information, is like a "pg_read_file Guide".
>

Applies to all:

"The functions shown in Table 9.88 provide native access to files on the
machine hosting the server. Only files within the database cluster
directory and the log_directory can be accessed. Use a relative path for
files in the cluster directory, and a path matching the log_directory
configuration setting for log files. Use of these functions is restricted
to superusers except where stated otherwise."

Applies to pg_read_file:

"pg_read_file returns part of a text file, starting at the given offset,
returning at most length bytes (less if the end of file is reached first).
If offset is negative, it is relative to the end of the file. If offset and
length are omitted, the entire file is returned. The bytes read from the
file are interpreted as a string in the server encoding; an error is thrown
if they are not valid in that encoding."

There is nothing unclear there and by the time one gets to this part of the
documentation its reasonably assumed they understand "data directory";
being verbose on that point is not an improvement. For the rare person
that gets confused these lists are available to obtain clarity. But aside
from the one comment I've already made - and this is very minor in nature -
I'm not seeing anything obvious short-comings here.

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2018-10-11 21:09:34 Re: Ambiguous usage of 'any' in explanation
Previous Message Bruce Momjian 2018-10-11 19:24:31 Re: please inform data_directory