From: | Dawid Kuroczko <qnex42(at)gmail(dot)com> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: tablespace + RAM disk? |
Date: | 2004-11-20 09:36:38 |
Message-ID: | 758d5e7f04112001361e517820@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, 19 Nov 2004 23:18:51 -0500, David Parker
<dparker(at)tazznetworks(dot)com> wrote:
> But, I'm also still interested in the answer to my question: is there
> any reason you could not put an 8.0 tablespace on a RAM disk?
>
> I can imagine doing it by having an initdb run at startup somehow, with
> the idea that having a mix of tablespaces in a database would make this
> harder, but I haven't read enough about tablespaces yet. The problem
> with trying to mix a RAM tablespace with a persistent tablespace would
> seem to be that you would have to recreate select data files at system
> startup before you could start the database. That's why an initdb seems
> cleaner to me, but...I should stop talking and go read about tablespaces
> and memcached.
I think there might be a problem with recovery after crash. I haven't tested
it but I guess pgsql would complain that databases which existed before
crash (or even server reboot) no longer exist. And I see two options, either
it would complain loudly and continue, or simply fail... Unless there would
be option to mark database/schema/table as non-PITR-logged (since data
is expendable and can be easily recreated)... :)
Having tablespaces on RAM disks (like tmpfs), hmm, it could be useful,
say to put TEMPORARY tables there. Since they will be gone nonetheless,
its a nice place for them.
Side question: Do TEMPORARY tables operations end up in PITR log?
Regards,
Dawid
PS: To pgmemchache I go!
From | Date | Subject | |
---|---|---|---|
Next Message | Markus Schaber | 2004-11-20 14:17:10 | Index usage for sorted query |
Previous Message | Tom Lane | 2004-11-20 05:19:46 | Re: help needed -- sequential scan problem |