pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@postgreSQL.org
Cc: marc@bloodnok.com
Cc: pgsql-bugs@postgreSQL.org
Subject: Re: [BUGS] BUG #11867: Strange behaviour with composite types after resetting database tablespace
Date: Thu, 6 Nov 2014 15:21:10 -0600
Message-ID: <545BE646.7060808@BlueTreble.com> (raw)
In-Reply-To: <19835.1415119551@sss.pgh.pa.us>
References: <20141104014957.23088.78673@wrigleys.postgresql.org>
	<2382.1415070484@sss.pgh.pa.us>
	<19835.1415119551@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 11/4/14, 10:45 AM, Tom Lane wrote:
> So it's safe as things stand; but this seems a bit, um, rickety.  Should
> we insert a DropRelFileNodesAllBuffers call into ATExecSetTableSpace to
> make it safer?  It's kind of annoying to have to scan the buffer pool
> twice, but I'm afraid that sometime in the future somebody will try to get
> clever about optimizing away the end-of-transaction buffer pool scan, and
> break this case.  Or maybe I'm just worrying too much.

We could possibly remember what relations have been moved to different tablespaces in a transaction and avoid the call in that case, but that seems rather silly.

If there's any non-trivial actual data involved then presumably the buffer scan won't be noticed amidst all the IO, so this would only be an issue if you're playing games with mostly empty tables, and only then if you've got really large shared buffers. I can't actually come up with any real use case for that.

So +1 for doing the safe thing...
-- 
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com


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



view thread (7+ messages)  latest in thread

Message-ID: <545BE646.7060808@BlueTreble.com>
Permalink:  ../545BE646.7060808@BlueTreble.com/
Also on:    postgresql.org/message-id/545BE646.7060808@BlueTreble.com

 · 

reply

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-bugs@postgresql.org
  Cc: Jim.Nasby@BlueTreble.com, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org, marc@bloodnok.com
  Subject: Re: [BUGS] BUG #11867: Strange behaviour with composite types after resetting database tablespace
  In-Reply-To: <545BE646.7060808@BlueTreble.com>
  References: <20141104014957.23088.78673@wrigleys.postgresql.org> <2382.1415070484@sss.pgh.pa.us> <19835.1415119551@sss.pgh.pa.us> <545BE646.7060808@BlueTreble.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