From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Jerry Sievers <gsievers19(at)comcast(dot)net>, Mark Dilger <hornschnorter(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Use of non-restart-safe storage by temp_tablespaces |
Date: | 2017-06-06 02:38:43 |
Message-ID: | 20170606023843.hcwq7hvegiokzkdf@alap3.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2017-06-05 22:34:17 -0400, Bruce Momjian wrote:
> On Mon, Jun 5, 2017 at 04:38:32PM -0500, Jerry Sievers wrote:
> > The SAN snaps capture the entire pgdata and WAL pg_xlog area but there
> > is no attempt to copy the NVME device when the snaps are made.
> >
> > There's an event trigger plus batch job now running tou avoid this risk.
> >
> > We realize too that there are implications here if a backup is
> > instantiated and PITR is done.
> >
> > Just FYI that there could be others running like this ignorant of the
> > potential gotchas.
>
> Yes, if we implement the TODO you will create a TEMPORARY tablespace
> that can't contain non-temporary and/or non-unlogged tables.
FWIW, allowing UNLOGGED tables, rather than just TEMPORARY ones,
increases the complexity of that project noticeably. For TEMPORARY you
basically don't need to do much but to recreate the structure inside the
tablespace at start - fairly simple. But for UNLOGGED you need to find
a way to recreate the relevant file and init forks - otherwise we might
not notice what needs to be reset at a crash restart, and we might error
out when executing selects etc. and then the table's not there.
Presumably recreating files & init forks that at first table access is
doable, but it's not entirely trivial to do locking wise.
- Andres
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2017-06-06 02:41:08 | Re: Use of non-restart-safe storage by temp_tablespaces |
Previous Message | Bruce Momjian | 2017-06-06 02:34:17 | Re: Use of non-restart-safe storage by temp_tablespaces |