PATCH: Exclude temp relations from base backup

From: David Steele <david(at)pgmasters(dot)net>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Adam Brightwell <adam(dot)brightwell(at)crunchydata(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Subject: PATCH: Exclude temp relations from base backup
Date: 2018-02-28 15:55:10
Message-ID: 5ea4d26a-a453-c1b7-eff9-5a3ef8f8aceb@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

This is a follow-up patch from the exclude unlogged relations discussion
[1].

The patch excludes temporary relations during a base backup using the
existing looks_like_temp_rel_name() function for identification.

It shares code to identify database directories from [1], so for now
that has been duplicated in this patch to make it independent. I'll
rebase depending on what gets committed first.

Thanks,
--
-David
david(at)pgmasters(dot)net

[1]
https://www.postgresql.org/message-id/04791bab-cb04-ba43-e9c0-664a4c1ffb2c%40pgmasters.net

Attachment Content-Type Size
backup-exclude-temp-rel-v1.patch text/plain 7.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2018-02-28 15:59:22 Re: server crash in nodeAppend.c
Previous Message Robert Haas 2018-02-28 15:54:11 Re: Let's remove DSM_INPL_NONE.