Re: Questions about 2 databases.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jellej(at)pacbell(dot)net
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Questions about 2 databases.
Date: 2005-03-11 20:33:42
Message-ID: 5055.1110573222@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

jelle <jellej(at)pacbell(dot)net> writes:
> 1) on a single 7.4.6 postgres instance does each database have it own WAL
> file or is that shared? Is it the same on 8.0.x?

Shared.

> 2) what's the high performance way of moving 200 rows between similar
> tables on different databases? Does it matter if the databases are
> on the same or seperate postgres instances?

COPY would be my recommendation. For a no-programming-effort solution
you could just pipe the output of pg_dump --data-only -t mytable
into psql. Not sure if it's worth developing a custom application to
replace that.

> My web app does lots of inserts that aren't read until a session is
> complete. The plan is to put the heavy insert session onto a ramdisk based
> pg-db and transfer the relevant data to the master pg-db upon session
> completion. Currently running 7.4.6.

Unless you have a large proportion of sessions that are abandoned and
hence never need be transferred to the main database at all, this seems
like a dead waste of effort :-(. The work to put the data into the main
database isn't lessened at all; you've just added extra work to manage
the buffer database.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Lou O'Quin 2005-03-11 20:35:03 Re: Query performance
Previous Message Tom Lane 2005-03-11 20:21:12 Re: Query performance