Re: [HACKERS] Exclude pg_internal.init from base backup - Mailing list pgsql-hackers

From Petr Jelinek
Subject Re: [HACKERS] Exclude pg_internal.init from base backup
Date
Msg-id 4b11d98a-f446-d9c1-eb67-49c126c58523@2ndquadrant.com
Whole thread Raw
In response to [HACKERS] Exclude pg_internal.init from base backup  (David Steele <david@pgmasters.net>)
Responses Re: [HACKERS] Exclude pg_internal.init from base backup  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Hi,

On 02/09/17 21:08, David Steele wrote:
> Hackers,
> 
> The cache in pg_internal.init was reused in days of yore but has been
> rebuilt on postmaster startup since v8.1.  It appears there is no reason
> for this file to be backed up.
> 

Makes sense.

> I also moved the RELCACHE_INIT_FILENAME constant to relcache.h to avoid
> duplicating the string.

+1

> +++ b/doc/src/sgml/protocol.sgml
> @@ -2384,6 +2384,11 @@ The commands accepted in walsender mode are:
>         </listitem>
>         <listitem>
>          <para>
> +         <filename>pg_internal.init</>
> +        </para>
> +       </listitem>
> +       <listitem>
> +        <para>

Not specific problem to this patch, but I wonder if it should be made
more clear that those files (there are couple above of what you added)
are skipped no matter which directory they reside in.

--  Petr Jelinek                  http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training &
Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Re: [HACKERS] Skip unneeded temp file in 'make html'
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] Re: PANIC: invalid index offnum: 186 when processingBRIN indexes in VACUUM